build.gradle 1.8 KB

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