build.gradle 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. group 'com.compdfkit.flutter.compdfkit_flutter'
  2. version '1.0'
  3. buildscript {
  4. repositories {
  5. maven {
  6. url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
  7. }
  8. google()
  9. mavenCentral()
  10. }
  11. dependencies {
  12. classpath 'com.android.tools.build:gradle:7.3.0'
  13. }
  14. }
  15. rootProject.allprojects {
  16. repositories {
  17. maven {
  18. url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
  19. }
  20. google()
  21. mavenCentral()
  22. }
  23. }
  24. apply plugin: 'com.android.library'
  25. android {
  26. compileSdkVersion 31
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. defaultConfig {
  32. minSdkVersion 21
  33. }
  34. dependencies {
  35. testImplementation 'junit:junit:4.13.2'
  36. testImplementation 'org.mockito:mockito-core:5.0.0'
  37. compileOnly fileTree(include: ['*.jar'], dir: 'libs')
  38. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  39. api 'com.compdf:compdfkit:1.9.1'
  40. api 'com.compdf:compdfkit-ui:1.9.1'
  41. api 'com.compdf:compdfkit-tools:1.9.1'
  42. }
  43. testOptions {
  44. unitTests.all {
  45. testLogging {
  46. events "passed", "skipped", "failed", "standardOut", "standardError"
  47. outputs.upToDateWhen {false}
  48. showStandardStreams = true
  49. }
  50. }
  51. }
  52. }