build.gradle 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. // id 'kotlin-parcelize'
  5. id 'kotlin-android'
  6. // id 'kotlin-android-extensions'
  7. }
  8. apply plugin: 'kotlin-kapt'
  9. apply plugin: 'kotlin-android-extensions'
  10. android {
  11. compileSdk 31
  12. defaultConfig {
  13. minSdk 21
  14. targetSdk 30
  15. versionCode 1
  16. versionName "1.0"
  17. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. buildConfigField "String", "BASE_SERVER_URL", RELEASE_BASE_URL
  24. buildConfigField "String", "BASE_URL_H5", RELEASE_BASE_URL_H5
  25. buildConfigField "String", "BASE_URL_H5_STUDENT", RELEASE_BASE_URL_H5_STUDENT
  26. buildConfigField "String", "RESOURCE_BASE_URL", RELEASE_RESOURCE_BASE_URL
  27. }
  28. debug {
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  31. buildConfigField "String", "BASE_SERVER_URL", TEST_BASE_URL
  32. buildConfigField "String", "BASE_URL_H5", TEST_BASE_URL_H5
  33. buildConfigField "String", "BASE_URL_H5_STUDENT", TEST_BASE_URL_H5_STUDENT
  34. buildConfigField "String", "RESOURCE_BASE_URL", TEST_RESOURCE_BASE_URL
  35. }
  36. preRelease{
  37. debuggable true
  38. minifyEnabled false
  39. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  40. buildConfigField "String", "BASE_SERVER_URL", DEV_BASE_URL
  41. buildConfigField "String", "BASE_URL_H5", DEV_BASE_URL_H5
  42. buildConfigField "String", "BASE_URL_H5_STUDENT", DEV_BASE_URL_H5_STUDENT
  43. buildConfigField "String", "RESOURCE_BASE_URL", DEV_RESOURCE_BASE_URL
  44. }
  45. }
  46. compileOptions {
  47. sourceCompatibility JavaVersion.VERSION_1_8
  48. targetCompatibility JavaVersion.VERSION_1_8
  49. }
  50. kotlinOptions {
  51. jvmTarget = '1.8'
  52. }
  53. buildFeatures {
  54. viewBinding = true
  55. }
  56. sourceSets {
  57. main {
  58. jniLibs.srcDirs = ['libs']
  59. }
  60. }
  61. }
  62. kapt {
  63. arguments {
  64. arg("AROUTER_MODULE_NAME", project.getName())
  65. }
  66. }
  67. dependencies {
  68. api fileTree(dir: 'libs', include: ['*.jar'])
  69. testImplementation 'junit:junit:4.13.2'
  70. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  71. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  72. implementation 'androidx.core:core-ktx:1.6.0'
  73. implementation 'androidx.appcompat:appcompat:1.3.0'
  74. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  75. //kotlin
  76. api 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.1'
  77. api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$rootProject.ext.android.kotlin_version"
  78. api "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8"
  79. //recyclerview
  80. implementation("androidx.recyclerview:recyclerview:1.2.1")
  81. // For control over item selection of both touch and mouse driven selection
  82. implementation("androidx.recyclerview:recyclerview-selection:1.1.0")
  83. implementation 'com.alibaba:arouter-api:1.5.2'
  84. kapt 'com.alibaba:arouter-compiler:1.5.2'
  85. //RxLifecycle
  86. api 'com.trello.rxlifecycle4:rxlifecycle-android-lifecycle-kotlin:4.0.2'
  87. api 'com.trello.rxlifecycle4:rxlifecycle-components:4.0.2'
  88. //Glide
  89. // implementation "com.github.bumptech.glide:glide:$glide_version"
  90. api 'jp.wasabeef:glide-transformations:4.3.0'
  91. api "com.github.bumptech.glide:glide:$rootProject.ext.android.glide_version"
  92. kapt "com.github.bumptech.glide:compiler:$rootProject.ext.android.glide_version"
  93. //Banner
  94. api 'io.github.youth5201314:banner:2.2.2'
  95. // BottomNavigation
  96. api 'com.ashokvarma.android:bottom-navigation-bar:2.2.0'
  97. // implementation("io.reactivex.rxjava3:rxkotlin:3.x.y")
  98. // // RxKotlin and RxAndroid
  99. //// implementation "io.reactivex:rxkotlin:$rx_kotlin_version"
  100. // implementation 'com.github.ReactiveX:RxKotlin:3.x-SNAPSHOT'
  101. // compile "io.reactivex:rxkotlin:$rx_kotlin_version"
  102. implementation("io.reactivex.rxjava3:rxkotlin:3.0.0")
  103. // compile "io.reactivex:rxandroid:${rx_android_version}"
  104. implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
  105. // Because RxAndroid releases are few and far between, it is recommended you also
  106. // explicitly depend on RxJava's latest version for bug fixes and new features.
  107. // (see https://github.com/ReactiveX/RxJava/releases for latest 3.x.x version)
  108. implementation 'io.reactivex.rxjava3:rxjava:3.0.0'
  109. //Retrofit
  110. api("com.squareup.okhttp3:okhttp:$rootProject.ext.android.ok_http_version")
  111. api "com.squareup.okhttp3:logging-interceptor:$rootProject.ext.android.ok_http_version"
  112. api "com.squareup.retrofit2:retrofit:$rootProject.ext.android.retrofit_version"
  113. api "com.squareup.retrofit2:converter-gson:$rootProject.ext.android.retrofit_version"
  114. api "com.squareup.retrofit2:adapter-rxjava:$rootProject.ext.android.retrofit_version"
  115. api "com.squareup.retrofit2:adapter-rxjava3:2.9.0"
  116. //MulitStateView
  117. api "com.github.Kennyc1012:MultiStateView:$rootProject.ext.android.multi_state_view_version"
  118. api "com.alibaba:arouter-api:$rootProject.ext.android.arouter_api_version"
  119. kapt "com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version"
  120. api "com.haibin:calendarview:3.7.1"
  121. api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.7'
  122. api 'com.contrarywind:Android-PickerView:4.1.9'
  123. api 'io.github.scwang90:refresh-layout-kernel:2.0.5' //核心必须依赖
  124. api 'io.github.scwang90:refresh-header-classics:2.0.5' //经典刷新头
  125. api 'io.github.scwang90:refresh-footer-classics:2.0.5' //经典加载
  126. api "de.hdodenhof:circleimageview:2.2.0"
  127. // api 'com.github.LuckSiege.PictureSelector:picture_library:v2.6.0'
  128. api 'io.github.lucksiege:pictureselector:v2.7.3-rc10'
  129. api "com.github.tbruyelle:rxpermissions:0.12"
  130. api ('com.github.mcxtzhang:SuspensionIndexBar:V1.0.0'){
  131. exclude(group: 'com.github.promeg', module: 'tinypinyin')//tc IMSDK tinypinyin-2.0.1.jar里面有
  132. }
  133. //金山云上传所需
  134. api 'joda-time:joda-time:2.9.9'
  135. api 'com.google.android:flexbox:2.0.1'
  136. //阿里支付
  137. // api(name: 'alipaySdk-15.6.4-20190611174359-noUtdid', ext: 'aar')
  138. api 'com.alipay.sdk:alipaysdk-android:+@aar'
  139. //微信
  140. // api 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'
  141. //圆角imageview
  142. api 'com.makeramen:roundedimageview:2.3.0'
  143. //lottie动画
  144. api 'com.airbnb.android:lottie:5.0.3'
  145. //webview
  146. api 'com.just.agentweb:agentweb:4.1.4'
  147. //bugly 统计
  148. api 'com.tencent.bugly:crashreport:3.4.4'
  149. api 'com.tencent.bugly:nativecrashreport:3.9.1'
  150. api 'com.gyf.immersionbar:immersionbar:3.0.0'
  151. api 'com.gyf.immersionbar:immersionbar-components:3.0.0'
  152. //友盟common
  153. api 'com.umeng.umsdk:common:9.5.4'
  154. api 'com.umeng.umsdk:asms:1.6.3'
  155. //友盟 分享
  156. api 'com.umeng.umsdk:share-core:7.3.1'//分享核心库,必选
  157. api 'com.umeng.umsdk:share-board:7.3.1'
  158. api 'com.umeng.umsdk:share-qq:7.3.1'
  159. api files('libs/open_sdk_3.5.14.3_rc26220c_lite.jar')//QQ官方SDK依赖库
  160. api 'com.umeng.umsdk:share-wx:7.3.1'
  161. api 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0'//微信官方SDK依赖库
  162. api 'com.umeng.umsdk:share-sina:7.3.1'
  163. api 'io.github.sinaweibosdk:core:12.5.0@aar'
  164. // api 'com.sina.weibo.sdk:core:10.10.0' 不能用
  165. api project(path: ':camerakit')
  166. api 'org.java-websocket:Java-WebSocket:1.5.1'
  167. api project(path: ':midiplaylib')
  168. api 'org.greenrobot:eventbus:3.1.1'
  169. api 'com.github.bingoogolapple.BGAQRCode-Android:zxing:1.3.8'
  170. api ('com.github.AlexLiuSheng:CheckVersionLib:2.4.1_androidx'){
  171. exclude(group: 'com.squareup.okhttp3', module: 'okhttp')
  172. exclude(group: ' org.greenrobot', module: 'eventbus')
  173. }
  174. api "com.github.Jay-Goo:RangeSeekBar:v3.0.0"
  175. implementation 'com.airbnb.android:lottie:5.0.3'
  176. implementation 'top.zibin:Luban:1.1.8'
  177. //UI适配
  178. // api 'me.jessyan:autosize:1.2.1'
  179. //lite 版本修改为
  180. api 'com.qcloud.cos:cos-android-lite-nobeacon:5.9.16'
  181. api "com.hyman:flowlayout-lib:1.1.2"
  182. compileOnly files('libs/emoji-ios-release.aar')
  183. compileOnly files('libs/emoji-release.aar')
  184. compileOnly files('libs/filedownload-1.0.0.aar')
  185. }