build.gradle 2.31 KB
apply plugin: 'com.android.library'
apply from: './maven_push.gradle'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.3"

    defaultConfig {
        minSdkVersion 19
        //noinspection ExpiredTargetSdkVersion
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        javaCompileOptions {
            annotationProcessorOptions {
                arguments = [AROUTER_MODULE_NAME: project.getName(), AROUTER_GENERATE_DOC: "enable"]
            }
        }
    }

    buildTypes {
        debug {
            resValue("string", "outshare", "外分好友测试")
            resValue("string", "outsharecircle", "外分测试生活圈")
        }
        release {
            resValue("string", "outshare", "网家家好友")
            resValue("string", "outsharecircle", "网家家生活圈")
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    ndkVersion '21.0.6113669'
}

dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])
    //androidX
    implementation "androidx.legacy:legacy-support-v4:$rootProject.androidX_legacy_support_v4"
    implementation "androidx.appcompat:appcompat:$rootProject.androidXAppcompat"
    implementation "androidx.recyclerview:recyclerview:$rootProject.androidXRecyclerview"
    implementation "androidx.constraintlayout:constraintlayout:$rootProject.androidXConstraintlayout"
    //glide
    implementation "com.github.bumptech.glide:glide:$rootProject.glide"
    implementation "jp.wasabeef:glide-transformations:$rootProject.glideTransformations"
    annotationProcessor "com.github.bumptech.glide:compiler:$rootProject.compiler"

    api "pub.devrel:easypermissions:$rootProject.easypermissions"

    implementation "com.qmuiteam:qmui:$rootProject.qmui"

    implementation "com.cnlive.libs:base:$rootProject.libBase"
    implementation "com.cnlive.libs:largeimage:$rootProject.libLargeImage"

    implementation 'com.github.chrisbanes:PhotoView:2.1.4'
    //ARouter
    implementation 'com.alibaba:arouter-api:1.5.0' // 换用最新版本
    annotationProcessor 'com.alibaba:arouter-compiler:1.2.2' // 换用最新版本
    implementation 'org.jsoup:jsoup:1.12.1'
    implementation "com.cnlive.media:NewMediaPicker:$rootProject.libNewMediaPicker"

}