build.gradle 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. //apply plugin: 'com.xuexiang.xrouter' //引用xrouter-plugin插件实现自动注册
  5. apply plugin: 'kotlin-kapt'
  6. def keystorePropertiesFile = rootProject.file("keystore.properties")
  7. def keystoreProperties = new Properties()
  8. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  9. android {
  10. compileSdkVersion 29
  11. buildToolsVersion "29.0.3"
  12. // 签名配置
  13. signingConfigs {
  14. debug {
  15. try {
  16. storeFile file(keystoreProperties['storeFile'])
  17. storePassword keystoreProperties['storePassWord']
  18. keyAlias keystoreProperties['keyAlias']
  19. keyPassword keystoreProperties['keyPassWord']
  20. } catch (ex) {
  21. throw new InvalidUserDataException(ex.toString())
  22. }
  23. }
  24. }
  25. defaultConfig {
  26. applicationId "com.jld.vod"
  27. minSdkVersion 23
  28. targetSdkVersion 29
  29. versionCode 193
  30. versionName "1.0"
  31. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  32. }
  33. compileOptions {
  34. sourceCompatibility 1.8
  35. targetCompatibility 1.8
  36. }
  37. buildTypes {
  38. release {
  39. minifyEnabled false
  40. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  41. }
  42. debug {
  43. debuggable true
  44. minifyEnabled false
  45. }
  46. }
  47. kotlinOptions {
  48. jvmTarget = '1.8'
  49. }
  50. }
  51. dependencies {
  52. implementation fileTree(dir: "libs", include: ["*.jar"])
  53. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  54. implementation 'androidx.core:core-ktx:1.3.0'
  55. implementation 'androidx.appcompat:appcompat:1.1.0'
  56. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  57. implementation project(path: ':library_zhy_CircleMenu')
  58. implementation project(path: ':soundtouch')
  59. implementation project(path: ':kprogresshud')
  60. implementation 'androidx.navigation:navigation-fragment-ktx:2.1.0'
  61. implementation 'androidx.navigation:navigation-ui-ktx:2.1.0'
  62. //google maps
  63. implementation 'com.google.android.gms:play-services-maps:17.0.0'
  64. testImplementation 'junit:junit:4.12'
  65. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  66. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  67. //xui
  68. implementation 'com.github.xuexiangjys:XUI:1.1.4'
  69. //XPage
  70. implementation 'com.github.xuexiangjys.XPage:xpage-lib:2.2.8'
  71. kapt 'com.github.xuexiangjys.XPage:xpage-compiler:2.2.8'
  72. //XRouter
  73. // implementation 'com.github.xuexiangjys.XRouter:xrouter-runtime:1.0.1'
  74. // annotationProcessor 'com.github.xuexiangjys.XRouter:xrouter-compiler:1.0.1'
  75. //XUtils
  76. implementation 'com.github.xuexiangjys.XUtil:xutil-core:1.1.6'
  77. implementation 'com.github.xuexiangjys.XUtil:xutil-sub:1.1.6'
  78. //如果开启了内存泄漏监测leak,就需要加上这个依赖
  79. debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
  80. releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
  81. testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
  82. //离线地图mapsforge
  83. implementation 'com.caverock:androidsvg:1.4'
  84. implementation 'org.mapsforge:mapsforge-map-reader:0.12.0'
  85. implementation 'net.sf.kxml:kxml2:2.3.0'
  86. implementation 'org.mapsforge:mapsforge-themes:0.12.0'
  87. implementation 'org.mapsforge:mapsforge-core:0.12.0'
  88. implementation 'org.mapsforge:mapsforge-map:0.12.0'
  89. implementation 'org.mapsforge:mapsforge-map-android:0.12.0'
  90. implementation 'org.mapsforge:mapsforge-poi:0.12.0'
  91. implementation 'org.mapsforge:mapsforge-poi-android:0.12.0'
  92. implementation 'org.mapsforge:sqlite-android:0.12.0'
  93. implementation 'org.mapsforge:sqlite-android:0.12.0:natives-armeabi-v7a'
  94. implementation 'org.mapsforge:sqlite-android:0.12.0:natives-arm64-v8a'
  95. implementation 'org.mapsforge:sqlite-android:0.12.0:natives-x86'
  96. implementation 'org.mapsforge:sqlite-android:0.12.0:natives-x86_64'
  97. //请求权限
  98. implementation 'com.github.tbruyelle:rxpermissions:0.10.2'
  99. //rxjava
  100. implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
  101. implementation "io.reactivex.rxjava2:rxjava:2.2.5"
  102. implementation 'com.jakewharton.rxbinding2:rxbinding:2.0.0'
  103. // def paging_version = '2.1.1'
  104. // //paging
  105. // implementation "androidx.paging:paging-runtime:$paging_version"
  106. // // For Kotlin use paging-runtime-ktx
  107. // testImplementation "androidx.paging:paging-common:$paging_version"
  108. // // For Kotlin use paging-common-ktx
  109. // implementation "androidx.paging:paging-rxjava2:$paging_version"
  110. // implementation 'androidx.paging:paging-runtime-ktx:2.1.1'
  111. def paging_version = "3.0.0-alpha09"
  112. implementation "androidx.paging:paging-runtime:$paging_version"
  113. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  114. implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  115. implementation 'com.google.code.gson:gson:2.8.6'
  116. implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
  117. implementation 'androidx.fragment:fragment-ktx:1.2.5'
  118. def room_version = "2.2.5"
  119. //room
  120. implementation "android.arch.persistence.room:runtime:$room_version"
  121. kapt "android.arch.persistence.room:compiler:$room_version"
  122. //livedata
  123. implementation 'android.arch.lifecycle:extensions:1.1.1'
  124. implementation 'android.arch.lifecycle:livedata:1.1.1'
  125. //md
  126. implementation 'com.google.android.material:material:1.2.0-alpha05'
  127. //glide
  128. implementation 'com.github.bumptech.glide:glide:4.11.0'
  129. //v4
  130. implementation 'com.android.support:support-v4:28.0.0'
  131. //jiaozivideo
  132. implementation 'cn.jzvd:jiaozivideoplayer:7.4.2'
  133. //WebView
  134. implementation 'com.just.agentweb:agentweb:4.1.3' // (必选)
  135. implementation 'com.just.agentweb:filechooser:4.1.3'// (可选)
  136. implementation 'com.download.library:Downloader:4.1.3'// (可选)
  137. //retrofit
  138. implementation 'com.google.code.gson:gson:2.8.6'
  139. implementation 'com.squareup.retrofit2:retrofit:2.7.1'
  140. implementation 'com.squareup.retrofit2:converter-gson:2.7.1'
  141. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.7.1'
  142. implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
  143. implementation "io.reactivex.rxjava2:rxjava:2.2.5"
  144. //okhttp3
  145. implementation 'com.squareup.okhttp3:okhttp:4.4.0'
  146. implementation 'com.squareup.okhttp3:logging-interceptor:4.4.0'
  147. implementation 'androidx.preference:preference:1.1.0'
  148. //eventbus
  149. implementation 'org.greenrobot:eventbus:3.0.0'
  150. implementation 'com.github.mjdev:libaums:0.5.5'
  151. //html
  152. implementation 'com.zzhoujay.richtext:richtext:3.0.8'
  153. //轮播图
  154. implementation 'com.youth.banner:banner:1.4.10'
  155. //fresco
  156. implementation 'com.facebook.fresco:fresco:2.0.0'
  157. //时间轴
  158. implementation 'com.joketng:TimeLineStepView:1.0.1'
  159. implementation 'com.wrbug:timelineview:1.0.0'
  160. }