build.gradle 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. apply plugin: 'org.greenrobot.greendao'
  5. android {
  6. compileSdkVersion rootProject.ext.compileSdkVersion
  7. buildToolsVersion rootProject.ext.buildToolsVersion
  8. defaultConfig {
  9. minSdkVersion rootProject.ext.minSdkVersion
  10. targetSdkVersion rootProject.ext.targetSdkVersion
  11. versionCode 1
  12. versionName "1.0"
  13. javaCompileOptions {
  14. annotationProcessorOptions {
  15. arguments = [AROUTER_MODULE_NAME: project.getName(), AROUTER_GENERATE_DOC: "enable"]
  16. }
  17. }
  18. }
  19. compileOptions {
  20. sourceCompatibility rootProject.ext.appSourceCompatibility
  21. targetCompatibility rootProject.ext.appTargetCompatibility
  22. }
  23. buildTypes {
  24. release {
  25. buildConfigField "String", "SERVER_URL", "\"https://gw.winhc.cn/\""
  26. buildConfigField "String", "WEB_BASE_URL", "\"https://m.winhc.cn/wx-mobile/\""
  27. buildConfigField "String", "ABTEST_URL_KEY", "\"351514AAFD18D4ACA7F59E51E42FAFAA03993919\""
  28. buildConfigField "boolean", "ENABLE_LOG_AND_DEBUG", "false"
  29. minifyEnabled true
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  31. }
  32. debug {
  33. buildConfigField "String", "SERVER_URL", "\"https://twww.winhc.net/api/\""
  34. buildConfigField "String", "WEB_BASE_URL", "\"https://tm.winhc.net/wx-mobile/\""
  35. buildConfigField "String", "ABTEST_URL_KEY", "\"B4DD742236B0DCFD18A4150664AA1374BFA36092\""
  36. buildConfigField "boolean", "ENABLE_LOG_AND_DEBUG", "true"
  37. minifyEnabled false
  38. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  39. }
  40. }
  41. greendao {
  42. schemaVersion 1
  43. daoPackage 'com.winhc.business.greendao'
  44. targetGenDir 'src/main/java'
  45. }
  46. }
  47. dependencies {
  48. implementation fileTree(dir: 'libs', include: ['*.jar'])
  49. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
  50. testImplementation 'junit:junit:4.12'
  51. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  52. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  53. // 添加 Sensors Analytics SDK 依赖
  54. api 'com.sensorsdata.analytics.android:SensorsAnalyticsSDK:5.2.2'
  55. // 添加 A/B Testing SDK 依赖
  56. api 'com.sensorsdata.analytics.abtesting:SensorsABTesting:0.0.7'
  57. api project(path: ':base')
  58. api project(path: ':http')
  59. api 'com.alibaba:fastjson:1.1.71.android'
  60. api 'com.google.code.gson:gson:2.8.5'
  61. api 'io.reactivex.rxjava2:rxandroid:2.1.1'
  62. api "com.alibaba:arouter-api:1.5.2"
  63. annotationProcessor "com.alibaba:arouter-compiler:1.5.2"
  64. //greenDao
  65. api 'org.greenrobot:greendao:3.3.0'
  66. api 'net.zetetic:android-database-sqlcipher:3.5.9'
  67. //集成第三方recycleView
  68. api 'com.jude:easyrecyclerview:4.4.2'
  69. //可拖拽,侧滑菜单的recyclerview
  70. api 'com.yanzhenjie.recyclerview:support:1.3.2'
  71. }