build.gradle 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 33
  4. defaultConfig {
  5. minSdk 28
  6. // applicationId "com.usai.redant.rautils"
  7. targetSdkVersion 33
  8. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  9. }
  10. buildTypes {
  11. release {
  12. // minifyEnabled true
  13. // zipAlignEnabled true
  14. // shrinkResources true
  15. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
  16. }
  17. }
  18. namespace 'com.usai.redant.rautils'
  19. compileOptions {
  20. sourceCompatibility JavaVersion.VERSION_11
  21. targetCompatibility JavaVersion.VERSION_11
  22. }
  23. // libraryVariants.all { variant ->
  24. //// if (variant.buildType.name == 'release') {
  25. // variant.getAssembleProvider().configure() {
  26. // it.doLast {
  27. // variant.outputs.each { output ->
  28. // def outputFile = output.outputFile
  29. //// if (outputFile != null && outputFile.name.endsWith('release.aar')) {
  30. // def fileName = "${project.name}"
  31. // println(fileName)
  32. // def outputPath = "../output"
  33. // copy {
  34. // from outputFile
  35. // into outputPath
  36. // rename { fileName + ".aar" }
  37. // }
  38. //// }
  39. // }
  40. // }
  41. //
  42. //
  43. // }
  44. //// }
  45. // }
  46. gradle.projectsEvaluated {
  47. tasks.withType(JavaCompile) {
  48. options.compilerArgs << "-Xlint:deprecation"
  49. options.compilerArgs << "-Xlint:unchecked"
  50. }
  51. }
  52. }
  53. dependencies {
  54. implementation 'androidx.appcompat:appcompat:1.5.1'
  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 files('libs/bcprov-jdk15on-157.jar')
  59. api files('libs/httpmime-4.1.1.jar')
  60. api files('libs/core-2.3.0.jar')
  61. // api 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1'
  62. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  63. }