build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 26
  4. defaultConfig {
  5. // applicationId "com.usai.redant.rautils"
  6. minSdkVersion 21
  7. targetSdkVersion 26
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. libraryVariants.all { variant ->
  19. // if (variant.buildType.name == 'release') {
  20. variant.assemble.doLast {
  21. variant.outputs.each { output ->
  22. def outputFile = output.outputFile
  23. // if (outputFile != null && outputFile.name.endsWith('release.aar')) {
  24. def fileName = "${project.name}"
  25. println(fileName)
  26. def outputPath = "../output"
  27. copy {
  28. from outputFile
  29. into outputPath
  30. rename { fileName + ".aar" }
  31. }
  32. // }
  33. }
  34. }
  35. // }
  36. }
  37. gradle.projectsEvaluated {
  38. tasks.withType(JavaCompile) {
  39. // options.compilerArgs << "-Xlint:deprecation"
  40. options.compilerArgs << "-Xlint:unchecked"
  41. }
  42. }
  43. }
  44. dependencies {
  45. implementation 'com.android.support:appcompat-v7:26.1.0'
  46. testImplementation 'junit:junit:4.12'
  47. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  48. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  49. implementation files('libs/bcprov-jdk15on-157.jar')
  50. implementation files('libs/httpmime-4.1.1.jar')
  51. api 'com.google.android.gms:play-services-location:16.0.0'
  52. implementation files('libs/core-2.3.0.jar')
  53. implementation 'com.github.barteksc:android-pdf-viewer:3.0.0-beta.5'
  54. }