build.gradle 2.45 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
//        javaCompileOptions {
//            annotationProcessorOptions {
//                arguments = [AROUTER_MODULE_NAME: project.getName(), AROUTER_GENERATE_DOC: "enable"]
//            }
//        }
//    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    dataBinding {
        enabled true
    }
    dexOptions {
        javaMaxHeapSize '4g'
    }

    buildTypes {

        debug {
            zipAlignEnabled true
            buildConfigField("String", "QQ_SHARE", stringValue("1106866745"))
            buildConfigField("String", "WECHAT_SHARE", stringValue("wx9b7f9443a8ccf15a"))
            buildConfigField("String", "WECHAT_KEY", stringValue("8d9970bf2901411d8dd2bffb344f147e"))
            buildConfigField("String", "SEND_AUTH_REQ_STATE", stringValue("com_cnlive_strike_debug"))
            manifestPlaceholders = [
                    QQ_APPKEY: "tencent1106866745"
            ]
        }
        release {
            zipAlignEnabled true
            buildConfigField("String", "QQ_SHARE", stringValue("1106691520"))
            buildConfigField("String", "WECHAT_SHARE", stringValue("wxed528fc749b7ee88"))
            buildConfigField("String", "WECHAT_KEY", stringValue("729c3d3055fe336bcdef7020c2548e89"))
            buildConfigField("String", "SEND_AUTH_REQ_STATE", stringValue("com_cnlive_strike"))
            manifestPlaceholders = [
                    QQ_APPKEY: "tencent1106691520"
            ]
        }
    }

}

static def stringValue(def value) {
    return "\"${value}\""
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    //微信
    implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.3.1'
    //QQ
    implementation files('libs/open_sdk_r6008_lite.jar')
    //微博
    implementation 'com.sina.weibo.sdk:core:4.4.1:openDefaultRelease@aar'

    implementation project(':core:network')
    implementation project(':core:base')

    //------------------------
    //统计
    implementation "com.cnlive.libs:analytics:1.1.2"
}