学考乐离线App
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. plugins {
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. id 'kotlin-kapt'
  5. }
  6. android {
  7. compileSdk rootProject.ext.android.compile_sdk_version
  8. buildToolsVersion rootProject.ext.android.build_tools_version
  9. defaultConfig {
  10. minSdk rootProject.ext.android.min_sdk_version
  11. targetSdk rootProject.ext.android.target_sdk_version
  12. versionCode 1
  13. versionName "1.0"
  14. // multiDexEnabled true
  15. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  16. consumerProguardFiles "consumer-rules.pro"
  17. }
  18. buildTypes {
  19. release {
  20. buildConfigField("Boolean","LOG_ENABLE","false")
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. }
  24. debug {
  25. buildConfigField("Boolean","LOG_ENABLE","true")
  26. minifyEnabled false
  27. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  28. }
  29. }
  30. compileOptions {
  31. coreLibraryDesugaringEnabled true
  32. sourceCompatibility JavaVersion.VERSION_1_8
  33. targetCompatibility JavaVersion.VERSION_1_8
  34. }
  35. kotlinOptions {
  36. jvmTarget = '1.8'
  37. }
  38. buildFeatures {
  39. viewBinding true
  40. dataBinding true
  41. }
  42. }
  43. dependencies {
  44. // implementation fileTree(include: ['*.jar',"*.aar"], dir: 'libs')
  45. // implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  46. rootProject.ext.dependencies_required.each{ k, v -> implementation v}
  47. testImplementation rootProject.ext.dependencies_testImplementation.junit
  48. rootProject.ext.dependencies_androidTestImplementation.each{ k,v -> androidTestImplementation v}
  49. def customDependencies = rootProject.ext.dependencies_custom
  50. //Activity-ktx 扩展
  51. api customDependencies.Activity_ktx
  52. //状态栏
  53. api customDependencies.UltimateBarX
  54. //glide
  55. api customDependencies.Glide
  56. kapt customDependencies.GlideCompiler
  57. //glide translation
  58. api customDependencies.GlideTranslation
  59. //RxJava RxAndroid
  60. api customDependencies.RxJava
  61. api customDependencies.RxAndroid
  62. coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
  63. //MMKV
  64. api customDependencies.MMKV
  65. }