build.gradle 3.6 KB
apply plugin: 'com.android.application'
apply plugin: 'org.greenrobot.greendao' // apply plugin

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.huaheng.taiguangtv"
        minSdkVersion 19
        targetSdkVersion 28
        versionCode 9
        versionName "1.8"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    signingConfigs {
        wposConfig {
            storeFile file("../wms.jks")
            storePassword "18570355163"
            keyAlias "phoneNumber"
            keyPassword "18570355163"
        }
    }

    dataBinding {
        enabled true
        buildTypes {
            debug {
                signingConfig signingConfigs.wposConfig
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
            release {
                signingConfig signingConfigs.wposConfig
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
        configurations.all {
            resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.1'
        }
        allprojects {
            repositories {
                maven { url "https://jitpack.io" }
            }
        }

    }

    greendao {
        schemaVersion 1  //版本
        daoPackage 'com.huaheng.taiguangtv.wmsgreendao' // 一般为app包名+生成文件的文件夹名
        targetGenDir 'src/main/java' //生成文件路径
    }

    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }

    android.applicationVariants.all { variant ->
        variant.outputs.all {
            outputFileName = rootProject.getName() +".apk"
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.squareup.okhttp3:okhttp:3.8.0'
    implementation 'com.squareup.okio:okio:1.13.0'
    implementation 'org.xutils:xutils:3.3.36'
    //  Retrofit
    implementation 'com.squareup.retrofit2:retrofit:2.3.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
    implementation 'com.squareup.retrofit2:adapter-rxjava:2.0.1'
    //    自适配界面
    implementation 'com.zhy:autolayout:1.4.5'
    //    图片加载
    implementation 'com.github.bumptech.glide:glide:3.7.0'
    //    GreenDao
    implementation 'org.greenrobot:greendao:3.2.0'
    implementation 'org.greenrobot:greendao-generator:3.2.0'
    //    RxJava
    implementation 'io.reactivex:rxjava:1.1.1'
    implementation 'io.reactivex:rxandroid:1.1.0'
    //    butterknife
    implementation 'com.jakewharton:butterknife:8.4.0'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
    //   百分比布局
    implementation 'com.android.support:percent:28.0.0-alpha3'
    implementation 'com.android.support:recyclerview-v7:28.0.0-alpha3'
    //  图表控件
    // implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
    debugImplementation 'com.amitshekhar.android:debug-db:1.0.0'
    implementation files('libs/SpeechApi.jar')
    implementation files('libs/core-3.3.0.jar')
}