build.gradle 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. android {
  5. compileSdkVersion rootProject.ext.compileSdkVersion
  6. buildToolsVersion rootProject.ext.buildToolsVersion
  7. defaultConfig {
  8. minSdkVersion rootProject.ext.minSdkVersion
  9. targetSdkVersion rootProject.ext.targetSdkVersion
  10. versionCode 1
  11. versionName "1.0"
  12. }
  13. compileOptions {
  14. sourceCompatibility rootProject.ext.appSourceCompatibility
  15. targetCompatibility rootProject.ext.appTargetCompatibility
  16. }
  17. buildTypes {
  18. release {
  19. buildConfigField "String", "SERVER_URL", "\"https://gw.winhc.cn/\""
  20. buildConfigField "String", "WEB_BASE_URL", "\"https://m.winhc.cn/wx-mobile/\""
  21. buildConfigField "String", "ABTEST_URL_KEY", "\"351514AAFD18D4ACA7F59E51E42FAFAA03993919\""
  22. minifyEnabled true
  23. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  24. }
  25. debug {
  26. buildConfigField "String", "SERVER_URL", "\"https://twww.winhc.net/api/\""
  27. buildConfigField "String", "WEB_BASE_URL", "\"https://tm.winhc.net/wx-mobile/\""
  28. buildConfigField "String", "ABTEST_URL_KEY", "\"B4DD742236B0DCFD18A4150664AA1374BFA36092\""
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  31. }
  32. }
  33. }
  34. dependencies {
  35. implementation fileTree(dir: 'libs', include: ['*.jar'])
  36. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
  37. testImplementation 'junit:junit:4.12'
  38. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  39. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  40. // 添加 Sensors Analytics SDK 依赖
  41. api 'com.sensorsdata.analytics.android:SensorsAnalyticsSDK:5.2.2'
  42. // 添加 A/B Testing SDK 依赖
  43. api 'com.sensorsdata.analytics.abtesting:SensorsABTesting:0.0.7'
  44. api project(path: ':base')
  45. api project(path: ':http')
  46. api 'com.alibaba:fastjson:1.1.71.android'
  47. api 'com.google.code.gson:gson:2.8.5'
  48. api 'io.reactivex.rxjava2:rxandroid:2.1.1'
  49. api "com.alibaba:arouter-api:1.5.2"
  50. annotationProcessor "com.alibaba:arouter-compiler:1.5.2"
  51. }