build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. group 'com.compdfkit.flutter.compdfkit_flutter'
  2. version '1.0'
  3. buildscript {
  4. repositories {
  5. google()
  6. mavenCentral()
  7. }
  8. dependencies {
  9. classpath 'com.android.tools.build:gradle:7.3.0'
  10. }
  11. }
  12. rootProject.allprojects {
  13. repositories {
  14. google()
  15. mavenCentral()
  16. }
  17. }
  18. apply plugin: 'com.android.library'
  19. android {
  20. compileSdk 33
  21. compileOptions {
  22. sourceCompatibility JavaVersion.VERSION_1_8
  23. targetCompatibility JavaVersion.VERSION_1_8
  24. }
  25. defaultConfig {
  26. minSdkVersion 21
  27. }
  28. dependencies {
  29. compileOnly fileTree(include: ['*.jar','*.aar'], dir: 'libs')
  30. implementation 'com.google.android.material:material:1.8.0'
  31. implementation 'androidx.appcompat:appcompat:1.6.1'
  32. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  33. // dependencies compdfkit pdf sdk
  34. api 'com.compdf:compdfkit-tools:2.1.3'
  35. testImplementation 'junit:junit:4.13.2'
  36. testImplementation 'org.mockito:mockito-core:5.0.0'
  37. api 'com.github.bumptech.glide:glide:4.15.1'
  38. annotationProcessor 'com.github.bumptech.glide:compiler:4.15.1'
  39. api 'androidx.documentfile:documentfile:1.0.1'
  40. }
  41. testOptions {
  42. unitTests.all {
  43. testLogging {
  44. events "passed", "skipped", "failed", "standardOut", "standardError"
  45. outputs.upToDateWhen {false}
  46. showStandardStreams = true
  47. }
  48. }
  49. }
  50. }
  51. // refresh snapshot implementation
  52. configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'seconds' }