build.gradle 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-kapt'
  4. apply plugin: 'kotlin-android-extensions'
  5. android {
  6. compileSdkVersion cfgs.compileSdkVersion
  7. defaultConfig {
  8. minSdkVersion cfgs.minSdkVersion
  9. targetSdkVersion cfgs.targetSdkVersion
  10. versionCode cfgs.versionCode
  11. versionName cfgs.versionName
  12. javaCompileOptions {
  13. annotationProcessorOptions {
  14. arguments = [AROUTER_MODULE_NAME: project.getName()]
  15. }
  16. }
  17. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  18. multiDexEnabled true
  19. }
  20. lintOptions {
  21. abortOnError false
  22. }
  23. packagingOptions {
  24. doNotStrip '*/mips/*.so'
  25. doNotStrip '*/mips64/*.so'
  26. exclude 'META-INF/atomicfu.kotlin_module'
  27. }
  28. dataBinding {
  29. enabled = true
  30. }
  31. buildTypes {
  32. release {
  33. minifyEnabled false
  34. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  35. buildConfigField "String", "WX_APPID", cfgs.wx_appid
  36. buildConfigField "String", "IMG_URL", cfgs.release_img_url
  37. buildConfigField "String", "APPNAME", cfgs.projectName
  38. buildConfigField 'String', 'BASE_URL', '"http://ubm.uxskj.com/"'
  39. }
  40. debug {
  41. buildConfigField "String", "WX_APPID", cfgs.wx_appid
  42. buildConfigField "String", "IMG_URL", cfgs.test_img_url
  43. buildConfigField "String", "APPNAME", cfgs.projectName
  44. buildConfigField 'String', 'BASE_URL', '"http://ubmtest.uxskj.com/"'
  45. }
  46. }
  47. buildTypes {
  48. release {
  49. minifyEnabled false
  50. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  51. }
  52. }
  53. repositories {
  54. flatDir {
  55. dirs 'BSBaidu/libs'
  56. }
  57. jcenter()
  58. maven {
  59. url "https://maven.google.com"
  60. }
  61. }
  62. }
  63. dependencies {
  64. api fileTree(include: ['*.jar'], dir: 'libs')
  65. api "androidx.appcompat:appcompat:${cfgs.appcompat_version}"
  66. testImplementation 'junit:junit:4.12'
  67. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  68. androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', {
  69. exclude group: 'com.android.support', module: 'support-annotations'
  70. })
  71. api("androidx.activity:activity-ktx:${cfgs.activity_version}")
  72. api("androidx.fragment:fragment-ktx:${cfgs.fragment_version}")
  73. // api "com.google.android.material:material:${cfgs.version_appcompat}"
  74. api 'com.android.support:multidex:1.0.3'
  75. api 'pub.devrel:easypermissions:1.0.1'
  76. //BSTabBar 需要
  77. api 'com.nineoldandroids:library:2.4.0'
  78. api "androidx.recyclerview:recyclerview:${cfgs.version_recyclerview}"
  79. api "com.alibaba:arouter-api:${cfgs.arouter_version}"
  80. kapt "com.alibaba:arouter-compiler:${cfgs.arouter_version}"
  81. api 'com.alibaba:fastjson:1.1.70.android'
  82. api 'com.squareup.retrofit2:retrofit:2.3.0'
  83. api 'com.squareup.retrofit2:converter-gson:2.3.0'
  84. api 'com.squareup.retrofit2:adapter-rxjava:2.3.0'
  85. api 'com.squareup.retrofit2:adapter-rxjava2:2.2.0'
  86. api 'com.squareup.retrofit2:converter-scalars:2.3.0'
  87. api 'com.squareup.okhttp3:logging-interceptor:3.4.1'
  88. api 'io.reactivex.rxjava2:rxjava:2.1.5'
  89. api 'com.github.donkingliang:GroupedRecyclerViewAdapter:2.4.0'
  90. api 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-17'
  91. //没有使用特殊Header,可以不加这行
  92. api 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0-alpha-17'
  93. api 'io.reactivex.rxjava2:rxandroid:2.0.1'
  94. api 'com.github.bumptech.glide:glide:4.7.1'
  95. api('com.github.bumptech.glide:glide:4.7.1') {
  96. exclude group: "com.android.support"
  97. }
  98. api 'com.jakewharton.rxbinding:rxbinding:0.4.0'
  99. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.16'
  100. //GifImageView
  101. api 'net.zetetic:android-database-sqlcipher:4.0.1@aar'
  102. //butterknife 8.8与gradle 3.0冲突
  103. api 'com.jakewharton:butterknife:8.4.0'
  104. annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
  105. implementation 'com.airbnb.android:lottie:2.5.4'
  106. api 'com.xgr.easypay:EasyPay:1.0.2'
  107. api 'com.qmuiteam:qmui:1.1.3'
  108. // api 'com.zhy:okhttputils:2.6.2'
  109. // api 'com.gyf.barlibrary:barlibrary:2.3.0'
  110. api 'com.gyf.immersionbar:immersionbar:3.0.0'
  111. api 'com.gyf.immersionbar:immersionbar-components:3.0.0'
  112. api 'com.gyf.immersionbar:immersionbar-ktx:3.0.0'
  113. api 'com.tencent.bugly:crashreport:2.8.6.0'
  114. //其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9
  115. api 'com.tencent.bugly:nativecrashreport:3.6.0.1'
  116. //其中latest.release指代最新Bugly NDK版本号,也可以指定明确的版本号,例如3.0
  117. //友盟
  118. // api 'com.umeng.umsdk:analytics:8.0.0'
  119. // api 'com.umeng.umsdk:common:2.0.0'
  120. api files('libs/analytics-8.0.0.jar')
  121. api files('libs/common-2.0.0.jar')
  122. //PDF
  123. // api 'com.github.barteksc:android-pdf-viewer:2.8.2'
  124. // api project(':BSZxing')
  125. api project(':BSZbar')
  126. api project(':BSSpeech')
  127. api project(':BSUpdate')
  128. // api project(':BSBaidu')
  129. implementation files('libs/jdom.jar')
  130. api 'com.android.support:support-compat:25.1.1'
  131. api 'com.daimajia.easing:library:2.0@aar'
  132. api 'com.daimajia.androidanimations:library:2.2@aar'
  133. implementation 'com.aliyun.dpa:oss-android-sdk:2.9.5'
  134. api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
  135. //极光推送
  136. api 'cn.jiguang.sdk:jpush:3.5.0' // 此处以JPush 3.4.0 版本为例。
  137. api 'cn.jiguang.sdk:jcore:2.2.4'
  138. api 'com.github.li-xiaojun:XPopup:2.4.3'
  139. // room
  140. // implementation("androidx.room:room-runtime:${cfgs.room_version}")
  141. // implementation("androidx.room:room-ktx:${cfgs.room_version}")
  142. // kapt "androidx.room:room-compiler:${cfgs.room_version}"
  143. api("androidx.room:room-runtime:${cfgs.room_version}") {
  144. exclude(group:'org.xerial')
  145. }
  146. kapt("androidx.room:room-compiler:${cfgs.room_version}"){
  147. exclude(group:'org.xerial')
  148. }
  149. api("androidx.room:room-ktx:${cfgs.room_version}"){
  150. exclude(group:'org.xerial')
  151. }
  152. api 'org.xerial:sqlite-jdbc:3.34.0'
  153. }