build.gradle 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 26
  4. defaultConfig {
  5. // applicationId "com.usai.redant.rautils"
  6. minSdkVersion 21
  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 << "-Xlint:unchecked"
  41. }
  42. }
  43. }
  44. dependencies {
  45. implementation 'com.android.support:appcompat-v7:26.1.0'
  46. testImplementation 'junit:junit:4.12'
  47. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  48. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  49. implementation files('libs/bcprov-jdk15on-157.jar')
  50. implementation files('libs/httpmime-4.1.1.jar')
  51. api 'com.google.android.gms:play-services-location:16.0.0'
  52. implementation files('libs/core-2.3.0.jar')
  53. }