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

201 строка
7.3 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 16
  18. versionName "2.1.1"
  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", "MP_APPID", '"wx358f1c471740cb95"'
  69. // buildConfigField "String", "BASE_URL", '"http://192.168.69.99:9009"'
  70. // buildConfigField "String", "M_URL", '"http://192.168.69.99:8098"'
  71. // buildConfigField "String", "APP_NAME", '"家校互通(测试)"'
  72. }
  73. debug {
  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.112:8098"'
  82. // buildConfigField "String", "BASE_URL", '"https://oa.qbjjyyun.net/api"'
  83. buildConfigField "String", "OA_URL", '"https://oa.live.educlouddata.com"'
  84. // buildConfigField "String", "OA_URL", '"http://192.168.69.114:3000"'
  85. buildConfigField "String", "M_URL", '"https://m.live.educlouddata.com/"'
  86. buildConfigField "String", "BASE_URL", '"https://oa.live.educlouddata.com/api"'
  87. buildConfigField "String", "APP_NAME", '"一体化平台(开发)"'
  88. buildConfigField "String", "MP_APPID", '"wxbb397ddae71bb14c"'
  89. }
  90. yzx_test {
  91. minifyEnabled false
  92. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  93. debuggable true
  94. signingConfig signingConfigs.release
  95. // 移除无用的resource文件
  96. // shrinkResources false
  97. buildConfigField "String", "BASE_URL", '"http://192.168.69.99:9009"'
  98. buildConfigField "String", "M_URL", '"http://192.168.69.99:8098"'
  99. buildConfigField "String", "APP_NAME", '"家校互通(测试)"'
  100. buildConfigField "String", "MP_APPID", '"wxbb397ddae71bb14c"'
  101. }
  102. applicationVariants.all { variant ->
  103. variant.outputs.all { output ->
  104. def fileName
  105. fileName = "Yzx_${variant.versionName}.apk"
  106. output.outputFileName = fileName
  107. }
  108. }
  109. }
  110. lintOptions {
  111. checkReleaseBuilds false
  112. // Or, if you prefer, you can continue to check for errors in release builds,
  113. // but continue the build even when errors are found:
  114. abortOnError false
  115. }
  116. compileOptions {
  117. sourceCompatibility JavaVersion.VERSION_1_8
  118. targetCompatibility JavaVersion.VERSION_1_8
  119. }
  120. }
  121. //greendao{
  122. // schemaVersion 4
  123. // daoPackage 'com.yzx.webebook.model.gen'
  124. // targetGenDir 'src/main/java'
  125. //}
  126. repositories {
  127. maven {
  128. url 'https://dl.bintray.com/qichuan/maven/'
  129. }
  130. }
  131. dependencies {
  132. implementation fileTree(dir: 'libs', include: ['*.jar'])
  133. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  134. implementation "org.jetbrains.anko:anko:$anko_version"
  135. // 基础依赖包,必须要依赖
  136. implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
  137. // fragment快速实现(可选)
  138. implementation 'com.gyf.immersionbar:immersionbar-components:3.0.0'
  139. // kotlin扩展(可选)
  140. implementation 'com.gyf.immersionbar:immersionbar-ktx:3.0.0'
  141. implementation 'androidx.appcompat:appcompat:1.1.0'
  142. implementation 'com.google.android.material:material:1.1.0'
  143. implementation 'androidx.core:core-ktx:1.2.0'
  144. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  145. testImplementation 'junit:junit:4.12'
  146. androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  147. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  148. implementation 'com.github.bumptech.glide:glide:4.11.0'
  149. implementation 'com.lzy.net:okgo:3.0.4'
  150. implementation 'com.blankj:utilcodex:1.30.5'
  151. implementation 'com.google.code.gson:gson:2.8.6'
  152. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  153. implementation 'com.github.AlexLiuSheng:CheckVersionLib:2.4.1_androidx'
  154. // 友盟统计SDK
  155. implementation 'com.umeng.umsdk:common:9.3.6' // 必选
  156. implementation 'com.umeng.umsdk:asms:1.2.1' // 必选
  157. implementation 'com.github.thomhurst:RoundImageView:1.0.2'
  158. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
  159. // implementation 'org.apache.weex:sdk:0.28.0'
  160. // implementation 'com.alibaba:fastjson:1.1.46.android'
  161. //ORM Database
  162. // implementation deps.greendao.runtime
  163. // testImplementation deps.testing.junit
  164. //RxJava
  165. // implementation deps.reactivex.rxandroid
  166. // implementation deps.reactivex.rxjava2
  167. implementation 'es.voghdev.pdfviewpager:library:1.1.2'
  168. implementation 'io.github.h07000223:flycoTabLayout:3.0.0'
  169. implementation 'com.qmuiteam:qmui:2.0.0-alpha10'
  170. api 'com.tencent.tbs:tbssdk:44181'
  171. implementation 'com.github.HuanTanSheng:EasyPhotos:3.1.5'
  172. implementation("org.greenrobot:eventbus:3.3.1")
  173. implementation 'com.github.chrisbanes:PhotoView:2.0.0'
  174. }