| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- apply plugin: 'com.android.library'
- android {
- compileSdkVersion 26
- defaultConfig {
- // applicationId "com.usai.redant.rautils"
- minSdkVersion 21
- targetSdkVersion 26
- versionCode 1
- versionName "1.0"
- testInstrumentationRunner "android.support.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.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 << "-Xlint:unchecked"
- }
- }
- }
- dependencies {
- implementation 'com.android.support:appcompat-v7:26.1.0'
- 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 files('libs/bcprov-jdk15on-157.jar')
- api files('libs/httpmime-4.1.1.jar')
- api 'com.google.android.gms:play-services-location:16.0.0'
- api files('libs/core-2.3.0.jar')
- api 'com.github.barteksc:android-pdf-viewer:3.0.0-beta.5'
- }
|