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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. rootProject.ext.dependencies_required.each{ k,v -> implementation v}
  43. testImplementation rootProject.ext.dependencies_testImplementation.junit
  44. rootProject.ext.dependencies_androidTestImplementation.each{ k,v -> androidTestImplementation v}
  45. def customDependencies = rootProject.ext.dependencies_custom
  46. //状态栏
  47. api customDependencies.UltimateBarX
  48. //glide
  49. api customDependencies.Glide
  50. kapt customDependencies.GlideCompiler
  51. //glide translation
  52. api customDependencies.GlideTranslation
  53. }