电子屏项目
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

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