build.gradle 2.0 KB

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