电子班牌
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

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