build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. mavenLocal()
  17. }
  18. }
  19. apply plugin: 'com.android.library'
  20. android {
  21. compileSdk 33
  22. compileOptions {
  23. sourceCompatibility JavaVersion.VERSION_1_8
  24. targetCompatibility JavaVersion.VERSION_1_8
  25. }
  26. defaultConfig {
  27. minSdkVersion 21
  28. }
  29. dependencies {
  30. compileOnly fileTree(include: ['*.jar','*.aar'], dir: 'libs')
  31. implementation 'com.google.android.material:material:1.8.0'
  32. implementation 'androidx.appcompat:appcompat:1.6.1'
  33. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  34. // dependencies compdfkit pdf sdk
  35. api 'com.compdf:compdfkit-tools:2.2.1'
  36. testImplementation 'junit:junit:4.13.2'
  37. testImplementation 'org.mockito:mockito-core:5.0.0'
  38. api 'com.github.bumptech.glide:glide:4.15.1'
  39. annotationProcessor 'com.github.bumptech.glide:compiler:4.15.1'
  40. api 'androidx.documentfile:documentfile:1.0.1'
  41. }
  42. testOptions {
  43. unitTests.all {
  44. testLogging {
  45. events "passed", "skipped", "failed", "standardOut", "standardError"
  46. outputs.upToDateWhen {false}
  47. showStandardStreams = true
  48. }
  49. }
  50. }
  51. }
  52. // refresh snapshot implementation
  53. configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'seconds' }