build.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. maven {
  17. url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
  18. }
  19. mavenLocal()
  20. }
  21. }
  22. apply plugin: 'com.android.library'
  23. android {
  24. compileSdk 33
  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. api 'com.compdf:compdfkit:2.0.1'
  38. api 'com.compdf:compdfkit-ui:2.0.1'
  39. api 'com.compdf:compdfkit-tools:2.0.2-SNAPSHOT'
  40. testImplementation 'junit:junit:4.13.2'
  41. testImplementation 'org.mockito:mockito-core:5.0.0'
  42. api 'com.github.bumptech.glide:glide:4.15.1'
  43. annotationProcessor 'com.github.bumptech.glide:compiler:4.15.1'
  44. api 'androidx.documentfile:documentfile:1.0.1'
  45. }
  46. testOptions {
  47. unitTests.all {
  48. testLogging {
  49. events "passed", "skipped", "failed", "standardOut", "standardError"
  50. outputs.upToDateWhen {false}
  51. showStandardStreams = true
  52. }
  53. }
  54. }
  55. }
  56. // refresh snapshot implementation
  57. configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'seconds' }