app.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. if (isRelease) {
  2. plugins.apply('com.android.library')
  3. } else {
  4. plugins.apply('com.android.application')
  5. }
  6. android {
  7. compileSdk 34
  8. defaultConfig {
  9. minSdk 21
  10. //noinspection ExpiredTargetSdkVersion
  11. targetSdk 34
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. compileOptions {
  21. sourceCompatibility JavaVersion.VERSION_1_8
  22. targetCompatibility JavaVersion.VERSION_1_8
  23. }
  24. sourceSets {
  25. main {
  26. if (isRelease) {
  27. manifest.srcFile 'src/main/AndroidManifest.xml'
  28. java.exclude '**/debug/**'
  29. } else {
  30. manifest.srcFile 'src/main/AndroidManifestDebug.xml'
  31. }
  32. }
  33. }
  34. }
  35. dependencies {
  36. api userLibs.get('appcompat')
  37. api userLibs.get('material')
  38. api userLibs.get('constraintlayout')
  39. api userLibs.get('gson')
  40. api userLibs.get('recyclerview')
  41. testImplementation testLibs.get('junit')
  42. androidTestImplementation testLibs.get('junitAndroid')
  43. androidTestImplementation testLibs.get('espresso')
  44. api project(':app-base')
  45. }