123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- if (isRelease) {
- plugins.apply('com.android.library')
- } else {
- plugins.apply('com.android.application')
- }
- android {
- compileSdk 34
- defaultConfig {
- minSdk 21
- //noinspection ExpiredTargetSdkVersion
- targetSdk 34
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- sourceSets {
- main {
- if (isRelease) {
- manifest.srcFile 'src/main/AndroidManifest.xml'
- java.exclude '**/debug/**'
- } else {
- manifest.srcFile 'src/main/AndroidManifestDebug.xml'
- }
- }
- }
- }
- dependencies {
- api userLibs.get('appcompat')
- api userLibs.get('material')
- api userLibs.get('constraintlayout')
- api userLibs.get('gson')
- api userLibs.get('recyclerview')
- testImplementation testLibs.get('junit')
- androidTestImplementation testLibs.get('junitAndroid')
- androidTestImplementation testLibs.get('espresso')
- api project(':app-base')
- }
|