12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- apply plugin: 'com.android.library'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-android-extensions'
- android {
- compileSdkVersion rootProject.ext.compileSdkVersion
- buildToolsVersion rootProject.ext.buildToolsVersion
- defaultConfig {
- minSdkVersion rootProject.ext.minSdkVersion
- targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 1
- versionName "1.0"
- }
- compileOptions {
- sourceCompatibility rootProject.ext.appSourceCompatibility
- targetCompatibility rootProject.ext.appTargetCompatibility
- }
- buildTypes {
- release {
- buildConfigField "String", "SERVER_URL", "\"https://gw.winhc.cn/\""
- buildConfigField "String", "WEB_BASE_URL", "\"https://m.winhc.cn/wx-mobile/\""
- buildConfigField "String", "ABTEST_URL_KEY", "\"351514AAFD18D4ACA7F59E51E42FAFAA03993919\""
- minifyEnabled true
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- debug {
- buildConfigField "String", "SERVER_URL", "\"https://twww.winhc.net/api/\""
- buildConfigField "String", "WEB_BASE_URL", "\"https://tm.winhc.net/wx-mobile/\""
- buildConfigField "String", "ABTEST_URL_KEY", "\"B4DD742236B0DCFD18A4150664AA1374BFA36092\""
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'com.android.support.test:runner:1.0.2'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
- // 添加 Sensors Analytics SDK 依赖
- api 'com.sensorsdata.analytics.android:SensorsAnalyticsSDK:5.2.2'
- // 添加 A/B Testing SDK 依赖
- api 'com.sensorsdata.analytics.abtesting:SensorsABTesting:0.0.7'
- api project(path: ':base')
- api project(path: ':http')
- api 'com.alibaba:fastjson:1.1.71.android'
- api 'com.google.code.gson:gson:2.8.5'
- api 'io.reactivex.rxjava2:rxandroid:2.1.1'
- api "com.alibaba:arouter-api:1.5.2"
- annotationProcessor "com.alibaba:arouter-compiler:1.5.2"
- }
|