build.gradle 2.3 KB

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