123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- apply plugin: 'com.android.library'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-android-extensions'
- apply plugin: 'org.greenrobot.greendao'
- android {
- compileSdkVersion rootProject.ext.compileSdkVersion
- buildToolsVersion rootProject.ext.buildToolsVersion
- defaultConfig {
- minSdkVersion rootProject.ext.minSdkVersion
- targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 1
- versionName "1.0"
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = [AROUTER_MODULE_NAME: project.getName(), AROUTER_GENERATE_DOC: "enable"]
- }
- }
- }
- 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\""
- buildConfigField "boolean", "ENABLE_LOG_AND_DEBUG", "false"
- 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\""
- buildConfigField "boolean", "ENABLE_LOG_AND_DEBUG", "true"
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- greendao {
- schemaVersion 1
- daoPackage 'com.winhc.business.greendao'
- targetGenDir 'src/main/java'
- }
- }
- 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"
- //greenDao
- api 'org.greenrobot:greendao:3.3.0'
- api 'net.zetetic:android-database-sqlcipher:3.5.9'
- //集成第三方recycleView
- api 'com.jude:easyrecyclerview:4.4.2'
- //可拖拽,侧滑菜单的recyclerview
- api 'com.yanzhenjie.recyclerview:support:1.3.2'
- }
|