app.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. if (isRelease) {
  2. plugins.apply('com.android.library')
  3. } else {
  4. plugins.apply('com.android.application')
  5. }
  6. android {
  7. compileSdk 32
  8. defaultConfig {
  9. minSdk 21
  10. //noinspection ExpiredTargetSdkVersion
  11. targetSdk 28
  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. api userLibs.get('wechatsdk')
  42. api userLibs.get('alipaysdk')
  43. testImplementation testLibs.get('junit')
  44. androidTestImplementation testLibs.get('junitAndroid')
  45. androidTestImplementation testLibs.get('espresso')
  46. api project(':app-base')
  47. }