apply plugin: 'com.android.library' android { compileSdkVersion 29 defaultConfig { // applicationId "com.usai.redant.apexdrivers" minSdkVersion 24 targetSdkVersion 29 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled true zipAlignEnabled true // shrinkResources true // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt' } } libraryVariants.all { variant -> // if (variant.buildType.name == 'release') { variant.getAssembleProvider().configure() { it.doLast { variant.outputs.each { output -> def outputFile = output.outputFile // if (outputFile != null && outputFile.name.endsWith('release.aar')) { def fileName = "${project.name}" println(fileName) def outputPath = "../output" copy { from outputFile into outputPath rename { fileName + ".aar" } } // } } } } // } } gradle.projectsEvaluated { tasks.withType(JavaCompile) { // options.compilerArgs << "-Xlint:deprecation" // options.compilerArgs << "--stacktrace" // options.compilerArgs << "--info" // options.compilerArgs << "--debug" // options.compilerArgs << "--scan" options.compilerArgs << "-Xlint:unchecked" } } } dependencies { implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation 'com.google.android.material:material:1.3.0' implementation 'com.googlecode.libphonenumber:libphonenumber:8.12.18' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' // api 'com.google.android.gms:play-services-maps:11.4.2' // api 'com.google.android.gms:play-services-location:11.4.2' api project(':RAUtilsLibrary') api project(':RALocationLib') implementation files('libs/zip4j_1.3.2.jar') }