build.gradle 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'app-joint'
  4. apply plugin: 'kotlin-kapt'
  5. apply plugin: 'dagger.hilt.android.plugin'
  6. //apply plugin: 'com.didiglobal.booster'
  7. android {
  8. compileSdkVersion versions.compileSdk
  9. buildToolsVersion versions.buildToolsVersion
  10. defaultConfig {
  11. minSdkVersion versions.minSdk
  12. targetSdkVersion versions.targetSdk
  13. versionCode 100
  14. versionName "1.0.0"
  15. applicationId "com.hongyegroup.nucleicacidtest"
  16. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  17. kotlinOptions {
  18. jvmTarget = JavaVersion.VERSION_1_8
  19. }
  20. multiDexEnabled true
  21. vectorDrawables.useSupportLibrary = true
  22. }
  23. buildTypes {
  24. release {
  25. //默认系统混淆
  26. minifyEnabled true
  27. // 不显示Log
  28. buildConfigField "boolean", "LOG_DEBUG", "false"
  29. //是否可调试
  30. debuggable false
  31. //Zipalign优化
  32. zipAlignEnabled true
  33. //移除无用的resource文件
  34. shrinkResources true
  35. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  36. multiDexKeepProguard file('multidex-config.pro')
  37. }
  38. debug {
  39. debuggable true
  40. multiDexKeepProguard file('multidex-config.pro')
  41. }
  42. }
  43. compileOptions {
  44. sourceCompatibility JavaVersion.VERSION_1_8
  45. targetCompatibility JavaVersion.VERSION_1_8
  46. }
  47. lintOptions {
  48. checkReleaseBuilds false
  49. }
  50. dexOptions {
  51. preDexLibraries true
  52. maxProcessCount 8
  53. }
  54. buildFeatures {
  55. dataBinding = true
  56. viewBinding = true
  57. }
  58. }
  59. dependencies {
  60. implementation fileTree(dir: 'libs', include: ['*.jar'])
  61. //每个模块都要实现的依赖
  62. //Test
  63. testImplementation deps.android.junit
  64. androidTestImplementation deps.android.test_junit
  65. androidTestImplementation deps.android.test_espresso
  66. //依赖注入
  67. implementation deps.support.hilt
  68. kapt deps.support.hilt_kapt
  69. implementation deps.support.hilt_vm
  70. kapt deps.support.hilt_vm_kapt
  71. implementation project(':cpt_auths')
  72. implementation project(':cpt_business')
  73. implementation project(':cpt_pensonal')
  74. }