build.gradle 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 26
  4. defaultConfig {
  5. // applicationId "com.usai.redant.apexdrivers"
  6. minSdkVersion 23
  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 << "--stacktrace"
  41. // options.compilerArgs << "--info"
  42. // options.compilerArgs << "--debug"
  43. // options.compilerArgs << "--scan"
  44. options.compilerArgs << "-Xlint:unchecked"
  45. }
  46. }
  47. }
  48. dependencies {
  49. implementation 'com.android.support:appcompat-v7:26.1.0'
  50. implementation 'com.android.support.constraint:constraint-layout:1.1.2'
  51. implementation 'com.android.support:design:26.1.0'
  52. implementation 'com.googlecode.libphonenumber:libphonenumber:7.0.4'
  53. testImplementation 'junit:junit:4.12'
  54. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  55. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  56. // api 'com.google.android.gms:play-services-maps:11.4.2'
  57. // api 'com.google.android.gms:play-services-location:11.4.2'
  58. api project(':RAUtilsLibrary')
  59. implementation files('libs/zip4j_1.3.2.jar')
  60. }