build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 27
  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. }
  38. dependencies {
  39. implementation 'com.android.support:appcompat-v7:27.1.1'
  40. testImplementation 'junit:junit:4.12'
  41. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  42. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  43. implementation files('libs/bcprov-jdk15on-157.jar')
  44. implementation files('libs/httpmime-4.1.1.jar')
  45. }