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

172 строки
6.1 KiB

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