apply plugin: 'com.android.library' android { compileSdkVersion 26 defaultConfig { // applicationId "com.usai.redant.apexdrivers" minSdkVersion 23 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } libraryVariants.all { variant -> // if (variant.buildType.name == 'release') { variant.assemble.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 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.1.2' implementation 'com.android.support:design:26.1.0' implementation 'com.googlecode.libphonenumber:libphonenumber:7.0.4' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' // 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') implementation files('libs/zip4j_1.3.2.jar') }