build.gradle 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. 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. {
  24. it.doLast {
  25. variant.outputs.each { output ->
  26. def outputFile = output.outputFile
  27. // if (outputFile != null && outputFile.name.endsWith('release.aar')) {
  28. def fileName = "${project.name}"
  29. println(fileName)
  30. def outputPath = "../output"
  31. copy {
  32. from outputFile
  33. into outputPath
  34. rename { fileName + ".aar" }
  35. }
  36. // }
  37. }
  38. }
  39. }
  40. // }
  41. }
  42. gradle.projectsEvaluated {
  43. tasks.withType(JavaCompile) {
  44. // options.compilerArgs << "-Xlint:deprecation"
  45. // options.compilerArgs << "--stacktrace"
  46. // options.compilerArgs << "--info"
  47. // options.compilerArgs << "--debug"
  48. // options.compilerArgs << "--scan"
  49. options.compilerArgs << "-Xlint:unchecked"
  50. }
  51. }
  52. }
  53. dependencies {
  54. implementation 'androidx.appcompat:appcompat:1.2.0'
  55. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  56. implementation 'com.google.android.material:material:1.2.1'
  57. implementation 'com.googlecode.libphonenumber:libphonenumber:7.0.4'
  58. implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  59. testImplementation 'junit:junit:4.12'
  60. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  61. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  62. // api 'com.google.android.gms:play-services-maps:11.4.2'
  63. // api 'com.google.android.gms:play-services-location:11.4.2'
  64. api project(':RAUtilsLibrary')
  65. api project(':RALocationLib')
  66. implementation files('libs/zip4j_1.3.2.jar')
  67. }