build.gradle 1.39 KB
apply plugin: 'com.android.library'

android {
    compileSdkVersion rootProject.ext.compileSdkVersion
    buildToolsVersion rootProject.ext.buildToolsVersion

    defaultConfig {
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode rootProject.ext.versionCode
        versionName rootProject.ext.versionName
    }

    buildTypes {
        debug{
            resValue("string", "ACCOUNT_LABEL", "网家家 内测")
            resValue("string", "ACCOUNT_TYPE", "com.cnlive.strike.debug.AccountType")
            resValue("string", "ACCOUNT_PROVIDE", "com.cnlive.strike.debug.AccountProvide")
        }
        release {
            resValue("string", "ACCOUNT_LABEL", "网家家")
            resValue("string", "ACCOUNT_TYPE", "com.cnlive.strike.AccountType")
            resValue("string", "ACCOUNT_PROVIDE", "com.cnlive.strike.AccountProvide")
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "com.android.support:appcompat-v7:$rootProject.appcompatV7"
    //视讯云SDK
    implementation "com.cnlive:lib_cnutil:$rootProject.libCnUtil"

    implementation "com.cnlive.libs:base:$rootProject.libBase"
    implementation project(':lib_network')
}