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

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