build.gradle 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdk 35
  4. defaultConfig {
  5. minSdk 28
  6. // applicationId "com.usai.redant.rautils"
  7. targetSdkVersion 35
  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 'com.google.android.material:material:1.12.0'
  55. implementation 'com.google.mlkit:barcode-scanning:17.3.0'
  56. implementation 'com.google.mlkit:camera:16.0.0-beta3'
  57. implementation 'com.google.guava:guava:32.1.3-jre'
  58. implementation "androidx.lifecycle:lifecycle-livedata:2.8.4"
  59. implementation "androidx.lifecycle:lifecycle-viewmodel:2.8.4"
  60. implementation 'androidx.appcompat:appcompat:1.7.0'
  61. // testImplementation 'junit:junit:4.12'
  62. // androidTestImplementation 'com.android.support.test:runner:1.0.2'
  63. // androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  64. api files('libs/bcprov-jdk15on-157.jar')
  65. api files('libs/httpmime-4.1.1.jar')
  66. api files('libs/core-2.3.0.jar')
  67. // api 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1'
  68. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  69. // CameraX
  70. implementation "androidx.camera:camera-camera2:1.4.0-rc01"
  71. implementation "androidx.camera:camera-lifecycle:1.4.0-rc01"
  72. implementation "androidx.camera:camera-view:1.4.0-rc01"
  73. implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
  74. }