build.gradle 4.77 KB
apply plugin: 'com.android.library'
//greenDao
apply plugin: 'org.greenrobot.greendao'
apply from: './maven_push.gradle'
android {
    compileSdkVersion rootProject.ext.compileSdkVersion
    buildToolsVersion rootProject.ext.buildToolsVersion

    useLibrary 'org.apache.http.legacy'
    defaultConfig {
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode rootProject.ext.versionCode
        versionName rootProject.ext.versionName
        multiDexEnabled true
        javaCompileOptions {
            annotationProcessorOptions {
                arguments = [AROUTER_MODULE_NAME: project.getName(), AROUTER_GENERATE_DOC: "enable"]
            }
        }

    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    dataBinding {
        enabled true
    }

//    sourceSets {
//        main {
//            jniLibs.srcDir 'libs'
//        }
//    }


    dexOptions {
        javaMaxHeapSize '4g'
    }
//greendao配置
    greendao {
        schemaVersion 1                           //版本号,升级时可配置
        daoPackage 'com.cnlive.moudle.pedometer.sql.dao'     //包名
        targetGenDir 'src/main/java'                 //生成目录
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation "com.android.support:support-v4:$rootProject.supportV4"
    implementation "com.android.support:appcompat-v7:$rootProject.appcompatV7"
    implementation "com.android.support:design:$rootProject.design"
    implementation "com.android.support:support-v13:$rootProject.supportV13"
    implementation "com.android.support:recyclerview-v7:$rootProject.recyclerviewV7"
    implementation "com.android.support:cardview-v7:$rootProject.cardviewV7"
    implementation "com.cnlive.libs:arch:$rootProject.appArch"
    implementation "com.qmuiteam:qmui:$rootProject.qmui"
    implementation "com.cnlive.libs:base:$rootProject.libBase"
    implementation("com.github.SherlockGougou:MagicIndicator:$rootProject.magicindicator") {
        exclude group: 'com.android.support'
    }

    //glide
    implementation "com.github.bumptech.glide:glide:$rootProject.glide"
    implementation "jp.wasabeef:glide-transformations:$rootProject.glideTransformations"
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:support-v4:28.0.0'
    annotationProcessor "com.github.bumptech.glide:compiler:$rootProject.compiler"

    //--------------------------------------------------------
    implementation "com.cnlive.libs:largeimage:$rootProject.libLargeImage"
    implementation "com.cnlive.libs:network:$rootProject.libNetwork"

    //杨帅 log日志
    implementation 'com.orhanobut:logger:2.2.0'
    implementation "com.scwang.smartrefresh:SmartRefreshLayout:$rootProject.SmartRefreshLayout"
    implementation "com.scwang.smartrefresh:SmartRefreshHeader:$rootProject.SmartRefreshHeader"
    implementation "com.cnlive.libs:emoj:$rootProject.libEmoj"
    implementation "com.cnlive:menu:$rootProject.libMenu"

    //ARouter
    implementation "com.alibaba:arouter-api:$rootProject.arouterApiVersion"
    annotationProcessor "com.alibaba:arouter-compiler:$rootProject.arouterCompilerVersion"

    //添加greenDao

    //GreenDao
    implementation "org.greenrobot:greendao:$rootProject.greendao"

    //数据库加密
    implementation 'net.zetetic:android-database-sqlcipher:3.5.6'
//    implementation files('libs/BaiduLBS_Android.jar')
    //evenbus
    implementation "org.greenrobot:eventbus:$rootProject.eventBus"
    //EasyPermission
    implementation "pub.devrel:easypermissions:$rootProject.easypermissions"
    implementation "com.jzxiang.pickerview:TimePickerDialog:$rootProject.TimePickerDialog"
    implementation "com.squareup.okhttp3:okhttp:$rootProject.okhttp"

    implementation "com.sothree.slidinguppanel:library:$rootProject.slidinguppanel"

    implementation project(':library_baidumap')
    //加载动画
    implementation "com.wang.avi:library:$rootProject.avi"
    implementation "com.cnlive.libs:video_qiniu:$rootProject.libVideoQiniu"
    //七牛上传
    implementation "com.qiniu:qiniu-android-sdk:$rootProject.qiniuAndroidSdk"
    implementation("com.cnlive:lib_upload:$rootProject.libUpload") {
        exclude group: 'com.android.support'
        exclude group: 'com.cnlive'
    }
    implementation "com.cnlive.libs:mediapicker:$rootProject.libMediaPicker"
    implementation 'org.apache.httpcomponents:httpcore:4.4.2'
    //气泡提醒
    implementation 'q.rorbin:badgeview:1.1.3'
}