| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-android-extensions'
- //apply plugin: 'com.xuexiang.xrouter' //引用xrouter-plugin插件实现自动注册
- apply plugin: 'kotlin-kapt'
- def keystorePropertiesFile = rootProject.file("keystore.properties")
- def keystoreProperties = new Properties()
- keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
- android {
- compileSdkVersion 29
- buildToolsVersion "29.0.3"
- // 签名配置
- signingConfigs {
- debug {
- try {
- storeFile file(keystoreProperties['storeFile'])
- storePassword keystoreProperties['storePassWord']
- keyAlias keystoreProperties['keyAlias']
- keyPassword keystoreProperties['keyPassWord']
- } catch (ex) {
- throw new InvalidUserDataException(ex.toString())
- }
- }
- }
- defaultConfig {
- applicationId "com.jld.vod"
- minSdkVersion 23
- targetSdkVersion 29
- versionCode 196
- versionName "1.0"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- compileOptions {
- sourceCompatibility 1.8
- targetCompatibility 1.8
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- debug {
- debuggable true
- minifyEnabled false
- }
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
- }
- dependencies {
- implementation fileTree(dir: "libs", include: ["*.jar"])
- implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- implementation 'androidx.core:core-ktx:1.3.0'
- implementation 'androidx.appcompat:appcompat:1.1.0'
- implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
- implementation project(path: ':library_zhy_CircleMenu')
- implementation project(path: ':soundtouch')
- implementation project(path: ':kprogresshud')
- implementation 'androidx.navigation:navigation-fragment-ktx:2.1.0'
- implementation 'androidx.navigation:navigation-ui-ktx:2.1.0'
- //google maps
- implementation 'com.google.android.gms:play-services-maps:17.0.0'
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'androidx.test.ext:junit:1.1.1'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
- //xui
- implementation 'com.github.xuexiangjys:XUI:1.1.4'
- //XPage
- // implementation 'com.github.xuexiangjys.XPage:xpage-lib:2.2.8'
- // kapt 'com.github.xuexiangjys.XPage:xpage-compiler:2.2.8'
- // XPage
- implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.1.1'
- kapt 'com.github.xuexiangjys.XPage:xpage-compiler:3.1.1'
- //XRouter
- // implementation 'com.github.xuexiangjys.XRouter:xrouter-runtime:1.0.1'
- // annotationProcessor 'com.github.xuexiangjys.XRouter:xrouter-compiler:1.0.1'
- //XUtils
- implementation 'com.github.xuexiangjys.XUtil:xutil-core:1.1.6'
- implementation 'com.github.xuexiangjys.XUtil:xutil-sub:1.1.6'
- //如果开启了内存泄漏监测leak,就需要加上这个依赖
- debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
- releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
- testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
- //离线地图mapsforge
- implementation 'com.caverock:androidsvg:1.4'
- implementation 'org.mapsforge:mapsforge-map-reader:0.12.0'
- implementation 'net.sf.kxml:kxml2:2.3.0'
- implementation 'org.mapsforge:mapsforge-themes:0.12.0'
- implementation 'org.mapsforge:mapsforge-core:0.12.0'
- implementation 'org.mapsforge:mapsforge-map:0.12.0'
- implementation 'org.mapsforge:mapsforge-map-android:0.12.0'
- implementation 'org.mapsforge:mapsforge-poi:0.12.0'
- implementation 'org.mapsforge:mapsforge-poi-android:0.12.0'
- implementation 'org.mapsforge:sqlite-android:0.12.0'
- implementation 'org.mapsforge:sqlite-android:0.12.0:natives-armeabi-v7a'
- implementation 'org.mapsforge:sqlite-android:0.12.0:natives-arm64-v8a'
- implementation 'org.mapsforge:sqlite-android:0.12.0:natives-x86'
- implementation 'org.mapsforge:sqlite-android:0.12.0:natives-x86_64'
- //请求权限
- implementation 'com.github.tbruyelle:rxpermissions:0.10.2'
- //rxjava
- implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
- implementation "io.reactivex.rxjava2:rxjava:2.2.5"
- implementation 'com.jakewharton.rxbinding2:rxbinding:2.0.0'
- // def paging_version = '2.1.1'
- // //paging
- // implementation "androidx.paging:paging-runtime:$paging_version"
- // // For Kotlin use paging-runtime-ktx
- // testImplementation "androidx.paging:paging-common:$paging_version"
- // // For Kotlin use paging-common-ktx
- // implementation "androidx.paging:paging-rxjava2:$paging_version"
- // implementation 'androidx.paging:paging-runtime-ktx:2.1.1'
- implementation 'com.squareup.retrofit2:retrofit:2.9.0'
- implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
- implementation 'com.google.code.gson:gson:2.8.6'
- implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
- implementation 'androidx.fragment:fragment-ktx:1.2.5'
- def paging_version = "3.0.0"
- implementation "androidx.paging:paging-runtime:$paging_version"
- def room_version = "2.3.0"
- implementation "androidx.room:room-runtime:$room_version"
- kapt "androidx.room:room-compiler:$room_version"
- // optional - Kotlin Extensions and Coroutines support for Room
- implementation "androidx.room:room-ktx:$room_version"
- //livedata
- implementation 'android.arch.lifecycle:extensions:1.1.1'
- implementation 'android.arch.lifecycle:livedata:1.1.1'
- //md
- implementation 'com.google.android.material:material:1.2.0-alpha05'
- //glide
- implementation 'com.github.bumptech.glide:glide:4.11.0'
- //v4
- implementation 'com.android.support:support-v4:28.0.0'
- //jiaozivideo
- implementation 'cn.jzvd:jiaozivideoplayer:7.4.2'
- //WebView
- implementation 'com.github.Justson.AgentWeb:agentweb-core:v4.1.9-androidx' // (必选)
- implementation 'com.github.Justson.AgentWeb:agentweb-filechooser:v4.1.9-androidx' // (可选)
- implementation 'com.github.Justson:Downloader:v4.1.9-androidx' // (可选)
- //retrofit
- implementation 'com.google.code.gson:gson:2.8.6'
- implementation 'com.squareup.retrofit2:retrofit:2.7.1'
- implementation 'com.squareup.retrofit2:converter-gson:2.7.1'
- implementation 'com.squareup.retrofit2:adapter-rxjava2:2.7.1'
- implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
- implementation "io.reactivex.rxjava2:rxjava:2.2.5"
- //okhttp3
- implementation 'com.squareup.okhttp3:okhttp:4.4.0'
- implementation 'com.squareup.okhttp3:logging-interceptor:4.4.0'
- implementation 'androidx.preference:preference:1.1.0'
- //eventbus
- implementation 'org.greenrobot:eventbus:3.0.0'
- implementation 'com.github.mjdev:libaums:0.5.5'
- //html
- implementation 'com.zzhoujay.richtext:richtext:3.0.8'
- //轮播图
- implementation 'com.youth.banner:banner:1.4.10'
- //fresco
- implementation 'com.facebook.fresco:fresco:2.0.0'
- //时间轴
- implementation 'com.joketng:TimeLineStepView:1.0.1'
- implementation 'com.wrbug:timelineview:1.0.0'
- }
|