学考乐离线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 1.9KB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. consumerProguardFiles "consumer-rules.pro"
  16. }
  17. buildTypes {
  18. release {
  19. buildConfigField("Boolean","LOG_ENABLE","false")
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. debug {
  24. buildConfigField("Boolean","LOG_ENABLE","true")
  25. minifyEnabled false
  26. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  27. }
  28. }
  29. compileOptions {
  30. sourceCompatibility JavaVersion.VERSION_1_8
  31. targetCompatibility JavaVersion.VERSION_1_8
  32. }
  33. kotlinOptions {
  34. jvmTarget = '1.8'
  35. }
  36. buildFeatures {
  37. viewBinding true
  38. dataBinding true
  39. }
  40. }
  41. dependencies {
  42. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  43. rootProject.ext.dependencies_required.each{ k, v -> implementation v}
  44. testImplementation rootProject.ext.dependencies_testImplementation.junit
  45. rootProject.ext.dependencies_androidTestImplementation.each{ k,v -> androidTestImplementation v}
  46. def customDependencies = rootProject.ext.dependencies_custom
  47. //状态栏
  48. api customDependencies.UltimateBarX
  49. //glide
  50. api customDependencies.Glide
  51. kapt customDependencies.GlideCompiler
  52. //glide translation
  53. api customDependencies.GlideTranslation
  54. //Activity-ktx 扩展
  55. api customDependencies.Activity_ktx
  56. }