电子屏项目
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

131 строка
5.0 KiB

  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. android {
  5. compileSdkVersion 30
  6. buildToolsVersion "30.0.3"
  7. defaultConfig {
  8. applicationId "com.yzx.webebook"
  9. minSdkVersion 26
  10. targetSdkVersion 30
  11. versionCode 3
  12. versionName "2.0.1"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. }
  15. signingConfigs {
  16. yzx {
  17. keyAlias ALIAS_NAME
  18. keyPassword ALIAS_PWD
  19. storeFile file(KEY_PATH)
  20. storePassword KEY_PWD
  21. v2SigningEnabled false
  22. }
  23. release {
  24. storeFile file("../buildKey/wenote.jks")
  25. keyAlias 'wetao'
  26. keyPassword 'lhb@123'
  27. storePassword 'lhb@123'
  28. v2SigningEnabled false
  29. }
  30. debug {
  31. storeFile file("../buildKey/wenote.jks")
  32. keyAlias 'wetao'
  33. keyPassword 'lhb@123'
  34. storePassword 'lhb@123'
  35. v2SigningEnabled false
  36. }
  37. }
  38. buildTypes {
  39. release {
  40. minifyEnabled false
  41. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  42. // zipAlignEnabled true
  43. // debuggable false
  44. signingConfig signingConfigs.release
  45. // 移除无用的resource文件
  46. // shrinkResources false
  47. buildConfigField "String", "BASE_URL", '"https://oa.qbjjyyun.net/api"'
  48. buildConfigField "String", "M_URL", '"https://m.qbjjyyun.net"'
  49. buildConfigField "String", "APP_NAME", '"家校互通"'
  50. // buildConfigField "String", "BASE_URL", '"http://192.168.69.99:9009"'
  51. // buildConfigField "String", "M_URL", '"http://192.168.69.99:8098"'
  52. // buildConfigField "String", "APP_NAME", '"家校互通(测试)"'
  53. }
  54. debug {
  55. minifyEnabled false
  56. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  57. // debuggable true
  58. signingConfig signingConfigs.release
  59. // 移除无用的resource文件
  60. // shrinkResources false
  61. buildConfigField "String", "BASE_URL", '"http://192.168.69.99:9009"'
  62. buildConfigField "String", "M_URL", '"http://192.168.69.112:8098"'
  63. buildConfigField "String", "APP_NAME", '"家校互通(开发)"'
  64. }
  65. yzx_test {
  66. minifyEnabled false
  67. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  68. debuggable true
  69. signingConfig signingConfigs.release
  70. // 移除无用的resource文件
  71. // shrinkResources false
  72. buildConfigField "String", "BASE_URL", '"http://192.168.69.99:9009"'
  73. buildConfigField "String", "M_URL", '"http://192.168.69.99:8098"'
  74. buildConfigField "String", "APP_NAME", '"家校互通(测试)"'
  75. }
  76. applicationVariants.all { variant ->
  77. variant.outputs.all { output ->
  78. def fileName
  79. fileName = "Yzx_${variant.versionName}.apk"
  80. output.outputFileName = fileName
  81. }
  82. }
  83. }
  84. lintOptions {
  85. checkReleaseBuilds false
  86. // Or, if you prefer, you can continue to check for errors in release builds,
  87. // but continue the build even when errors are found:
  88. abortOnError false
  89. }
  90. }
  91. dependencies {
  92. implementation fileTree(dir: 'libs', include: ['*.jar'])
  93. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  94. implementation "org.jetbrains.anko:anko:$anko_version"
  95. // 基础依赖包,必须要依赖
  96. implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
  97. // fragment快速实现(可选)
  98. implementation 'com.gyf.immersionbar:immersionbar-components:3.0.0'
  99. // kotlin扩展(可选)
  100. implementation 'com.gyf.immersionbar:immersionbar-ktx:3.0.0'
  101. implementation 'androidx.appcompat:appcompat:1.1.0'
  102. implementation 'com.google.android.material:material:1.1.0'
  103. implementation 'androidx.core:core-ktx:1.2.0'
  104. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  105. testImplementation 'junit:junit:4.12'
  106. androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  107. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  108. implementation files('libs/wenote.jar')
  109. implementation 'com.github.bumptech.glide:glide:4.11.0'
  110. implementation 'com.lzy.net:okgo:3.0.4'
  111. implementation 'com.blankj:utilcodex:1.30.5'
  112. implementation 'com.google.code.gson:gson:2.8.6'
  113. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  114. implementation 'com.github.AlexLiuSheng:CheckVersionLib:2.4.1_androidx'
  115. // 友盟统计SDK
  116. implementation 'com.umeng.umsdk:common:9.3.6' // 必选
  117. implementation 'com.umeng.umsdk:asms:1.2.1' // 必选
  118. implementation 'com.github.thomhurst:RoundImageView:1.0.2'
  119. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
  120. }