build.gradle 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 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 'com.android.support:appcompat-v7:26.1.0'
  55. implementation 'com.android.support.constraint:constraint-layout:1.1.2'
  56. implementation 'com.android.support:design:26.1.0'
  57. implementation 'com.googlecode.libphonenumber:libphonenumber:7.0.4'
  58. testImplementation 'junit:junit:4.12'
  59. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  60. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  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. implementation files('libs/zip4j_1.3.2.jar')
  65. }