build.gradle 3.84 KB
apply plugin: 'com.android.library'
//greenDao
apply plugin: 'org.greenrobot.greendao'
apply from: './maven_push.gradle'
android {
    compileSdkVersion 28
    buildToolsVersion "28.0.3"


    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:app_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:support-v4:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    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.sothree.slidinguppanel:library:3.4.0'
}