build.gradle 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdk = 36
  4. defaultConfig {
  5. minSdk = 28
  6. // applicationId "com.usai.redant.rautils"
  7. targetSdk = 36
  8. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  9. }
  10. buildTypes {
  11. release {
  12. minifyEnabled false
  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).tap {
  48. configureEach {
  49. options.compilerArgs << "-Xlint:deprecation"
  50. options.compilerArgs << "-Xlint:unchecked"
  51. }
  52. }
  53. }
  54. }
  55. dependencies {
  56. api 'androidx.work:work-runtime:2.9.1'
  57. implementation 'com.google.android.material:material:1.12.0'
  58. implementation 'com.google.mlkit:barcode-scanning:17.3.0'
  59. implementation 'com.google.mlkit:camera:16.0.0-beta3'
  60. // implementation 'com.google.guava:guava:32.1.3-jre'
  61. implementation 'com.google.guava:guava:33.4.8-jre'
  62. implementation "androidx.lifecycle:lifecycle-livedata:2.8.4"
  63. implementation "androidx.lifecycle:lifecycle-viewmodel:2.8.4"
  64. implementation 'androidx.appcompat:appcompat:1.7.0'
  65. // testImplementation 'junit:junit:4.12'
  66. // androidTestImplementation 'com.android.support.test:runner:1.0.2'
  67. // androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  68. api files('libs/bcprov-jdk15on-157.jar')
  69. api files('libs/httpmime-4.1.1.jar')
  70. api files('libs/core-2.3.0.jar')
  71. // api 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1'
  72. // implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  73. implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
  74. // CameraX
  75. implementation "androidx.camera:camera-camera2:1.4.0-rc01"
  76. implementation "androidx.camera:camera-lifecycle:1.4.0-rc01"
  77. implementation "androidx.camera:camera-view:1.4.0-rc01"
  78. // implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
  79. implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.22"))
  80. implementation 'androidx.activity:activity:1.8.0'
  81. }