build.gradle 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 29
  4. defaultConfig {
  5. // applicationId "com.usai.redant.apexdrivers"
  6. minSdkVersion 24
  7. targetSdkVersion 29
  8. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  9. }
  10. buildTypes {
  11. release {
  12. minifyEnabled true
  13. zipAlignEnabled true
  14. // shrinkResources true
  15. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
  16. }
  17. }
  18. namespace 'com.usai.redant.apexdrivers'
  19. libraryVariants.all { variant ->
  20. // if (variant.buildType.name == 'release') {
  21. variant.getAssembleProvider().configure()
  22. {
  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 << "--stacktrace"
  45. // options.compilerArgs << "--info"
  46. // options.compilerArgs << "--debug"
  47. // options.compilerArgs << "--scan"
  48. options.compilerArgs << "-Xlint:unchecked"
  49. }
  50. }
  51. }
  52. dependencies {
  53. implementation 'androidx.appcompat:appcompat:1.2.0'
  54. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  55. implementation 'com.google.android.material:material:1.3.0'
  56. implementation 'com.googlecode.libphonenumber:libphonenumber:8.12.18'
  57. implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  58. testImplementation 'junit:junit:4.13.2'
  59. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  60. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  61. // api 'com.google.android.gms:play-services-maps:11.4.2'
  62. // api 'com.google.android.gms:play-services-location:11.4.2'
  63. api project(':RAUtilsLibrary')
  64. api project(':RALocationLib')
  65. implementation files('libs/zip4j_1.3.2.jar')
  66. }