build.gradle 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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 30
  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. }
  27. debug {
  28. minifyEnabled false
  29. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  30. buildConfigField "String", "BASE_SERVER_URL", TEST_BASE_URL
  31. buildConfigField "String", "BASE_URL_H5", TEST_BASE_URL_H5
  32. buildConfigField "String", "BASE_URL_H5_STUDENT", TEST_BASE_URL_H5_STUDENT
  33. }
  34. }
  35. compileOptions {
  36. sourceCompatibility JavaVersion.VERSION_1_8
  37. targetCompatibility JavaVersion.VERSION_1_8
  38. }
  39. kotlinOptions {
  40. jvmTarget = '1.8'
  41. }
  42. buildFeatures {
  43. viewBinding = true
  44. }
  45. sourceSets {
  46. main {
  47. jniLibs.srcDirs = ['libs']
  48. }
  49. }
  50. }
  51. kapt {
  52. arguments {
  53. arg("AROUTER_MODULE_NAME", project.getName())
  54. }
  55. }
  56. dependencies {
  57. api fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
  58. testImplementation 'junit:junit:4.13.2'
  59. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  60. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  61. implementation 'androidx.core:core-ktx:1.6.0'
  62. implementation 'androidx.appcompat:appcompat:1.3.0'
  63. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  64. //kotlin
  65. api 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.1'
  66. api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$rootProject.ext.android.kotlin_version"
  67. api "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8"
  68. //recyclerview
  69. implementation("androidx.recyclerview:recyclerview:1.2.1")
  70. // For control over item selection of both touch and mouse driven selection
  71. implementation("androidx.recyclerview:recyclerview-selection:1.1.0")
  72. implementation 'com.alibaba:arouter-api:1.5.2'
  73. kapt 'com.alibaba:arouter-compiler:1.5.2'
  74. //RxLifecycle
  75. api 'com.trello.rxlifecycle4:rxlifecycle-android-lifecycle-kotlin:4.0.2'
  76. api 'com.trello.rxlifecycle4:rxlifecycle-components:4.0.2'
  77. //Glide
  78. // implementation "com.github.bumptech.glide:glide:$glide_version"
  79. api "com.github.bumptech.glide:glide:$rootProject.ext.android.glide_version"
  80. kapt "com.github.bumptech.glide:compiler:$rootProject.ext.android.glide_version"
  81. //Banner
  82. api 'io.github.youth5201314:banner:2.2.2'
  83. // BottomNavigation
  84. api 'com.ashokvarma.android:bottom-navigation-bar:2.2.0'
  85. // implementation("io.reactivex.rxjava3:rxkotlin:3.x.y")
  86. // // RxKotlin and RxAndroid
  87. //// implementation "io.reactivex:rxkotlin:$rx_kotlin_version"
  88. // implementation 'com.github.ReactiveX:RxKotlin:3.x-SNAPSHOT'
  89. // compile "io.reactivex:rxkotlin:$rx_kotlin_version"
  90. implementation("io.reactivex.rxjava3:rxkotlin:3.0.0")
  91. // compile "io.reactivex:rxandroid:${rx_android_version}"
  92. implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
  93. // Because RxAndroid releases are few and far between, it is recommended you also
  94. // explicitly depend on RxJava's latest version for bug fixes and new features.
  95. // (see https://github.com/ReactiveX/RxJava/releases for latest 3.x.x version)
  96. implementation 'io.reactivex.rxjava3:rxjava:3.0.0'
  97. //Retrofit
  98. api("com.squareup.okhttp3:okhttp:$rootProject.ext.android.ok_http_version")
  99. api "com.squareup.okhttp3:logging-interceptor:$rootProject.ext.android.ok_http_version"
  100. api "com.squareup.retrofit2:retrofit:$rootProject.ext.android.retrofit_version"
  101. api "com.squareup.retrofit2:converter-gson:$rootProject.ext.android.retrofit_version"
  102. api "com.squareup.retrofit2:adapter-rxjava:$rootProject.ext.android.retrofit_version"
  103. api "com.squareup.retrofit2:adapter-rxjava3:2.9.0"
  104. //MulitStateView
  105. api "com.github.Kennyc1012:MultiStateView:$rootProject.ext.android.multi_state_view_version"
  106. api "com.alibaba:arouter-api:$rootProject.ext.android.arouter_api_version"
  107. kapt "com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version"
  108. api "com.haibin:calendarview:3.7.1"
  109. api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.7'
  110. api 'com.contrarywind:Android-PickerView:4.1.9'
  111. api 'io.github.scwang90:refresh-layout-kernel:2.0.5' //核心必须依赖
  112. api 'io.github.scwang90:refresh-header-classics:2.0.5' //经典刷新头
  113. api 'io.github.scwang90:refresh-footer-classics:2.0.5' //经典加载
  114. api "de.hdodenhof:circleimageview:2.2.0"
  115. api 'com.github.LuckSiege.PictureSelector:picture_library:v2.6.0'
  116. api "com.github.tbruyelle:rxpermissions:0.12"
  117. api 'com.github.mcxtzhang:SuspensionIndexBar:V1.0.0'
  118. //金山云上传所需
  119. api 'joda-time:joda-time:2.9.9'
  120. api 'com.google.android:flexbox:2.0.1'
  121. //阿里支付
  122. // api(name: 'alipaySdk-15.6.4-20190611174359-noUtdid', ext: 'aar')
  123. api 'com.alipay.sdk:alipaysdk-android:+@aar'
  124. //微信
  125. // api 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'
  126. //圆角imageview
  127. api 'com.makeramen:roundedimageview:2.3.0'
  128. //lottie动画
  129. api 'com.airbnb.android:lottie:5.0.3'
  130. //webview
  131. api 'com.just.agentweb:agentweb:4.1.4'
  132. //bugly 统计
  133. api 'com.tencent.bugly:crashreport:3.4.4'
  134. api 'com.tencent.bugly:nativecrashreport:3.9.1'
  135. api 'com.gyf.immersionbar:immersionbar:3.0.0'
  136. api 'com.gyf.immersionbar:immersionbar-components:3.0.0'
  137. //友盟common
  138. api 'com.umeng.umsdk:common:9.4.0'
  139. api 'com.umeng.umsdk:asms:1.2.3'
  140. //友盟 分享
  141. api 'com.umeng.umsdk:share-core:7.1.7'//分享核心库,必选
  142. api 'com.umeng.umsdk:share-board:7.1.7'
  143. api 'com.umeng.umsdk:share-qq:7.1.7'
  144. api 'com.tencent.tauth:qqopensdk:3.53.0'//QQ官方SDK依赖库
  145. api 'com.umeng.umsdk:share-wx:7.1.7'
  146. api 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0'//微信官方SDK依赖库
  147. api 'com.umeng.umsdk:share-sina:7.1.7'
  148. api 'io.github.sinaweibosdk:core:11.11.1@aar'
  149. // api 'com.sina.weibo.sdk:core:10.10.0' 不能用
  150. api project(path: ':camerakit')
  151. api 'org.java-websocket:Java-WebSocket:1.5.1'
  152. api project(path: ':midiplaylib')
  153. api 'org.greenrobot:eventbus:3.1.1'
  154. api 'cn.yipianfengye.android:zxing-library:2.2'
  155. api ('com.github.AlexLiuSheng:CheckVersionLib:2.4.1_androidx'){
  156. exclude(group: 'com.squareup.okhttp3', module: 'okhttp')
  157. exclude(group: ' org.greenrobot', module: 'eventbus')
  158. }
  159. api "com.github.Jay-Goo:RangeSeekBar:v3.0.0"
  160. implementation 'com.airbnb.android:lottie:5.0.3'
  161. implementation 'top.zibin:Luban:1.1.8'
  162. //UI适配
  163. // api 'me.jessyan:autosize:1.2.1'
  164. }