build.gradle 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. namespace 'com.compdfkit.samples'
  6. compileSdk rootProject.ext.android.COMPILESDK
  7. defaultConfig {
  8. applicationId "com.compdfkit.samples"
  9. minSdk 26
  10. targetSdk rootProject.ext.android.TARGETSDK
  11. versionCode rootProject.ext.android.VERSIONCODE as int
  12. versionName rootProject.ext.sdk.COMPDFKit_SDK_VERSION
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. android.applicationVariants.all { variant ->
  19. variant.outputs.all {
  20. if (outputFileName.toLowerCase().endsWith('unsigned.apk')) {
  21. outputFileName = "Samples_ComPDFKit.apk"
  22. }
  23. }
  24. }
  25. }
  26. debug {
  27. android.applicationVariants.all { variant ->
  28. variant.outputs.all {
  29. if (outputFileName.toLowerCase().endsWith('debug.apk')) {
  30. outputFileName = "Samples_ComPDFKit.apk"
  31. }
  32. }
  33. }
  34. }
  35. }
  36. compileOptions {
  37. sourceCompatibility JavaVersion.VERSION_1_8
  38. targetCompatibility JavaVersion.VERSION_1_8
  39. }
  40. packagingOptions {
  41. pickFirst 'META-INF/spring.factories'
  42. pickFirst 'META-INF/license.txt'
  43. pickFirst 'META-INF/DEPENDENCIES'
  44. pickFirst 'META-INF/web-fragment.xml'
  45. pickFirst 'META-INF/LICENSE.md'
  46. pickFirst 'META-INF/NOTICE.md'
  47. pickFirst 'META-INF/spring.schemas'
  48. pickFirst 'META-INF/spring.tooling'
  49. pickFirst 'META-INF/spring.handlers'
  50. pickFirst 'META-INF/spring-configuration-metadata.json'
  51. pickFirst 'META-INF/additional-spring-configuration-metadata.json'
  52. pickFirst 'META-INF/notice.txt'
  53. }
  54. }
  55. dependencies {
  56. implementation 'androidx.appcompat:appcompat:1.6.1'
  57. implementation 'com.google.android.material:material:1.9.0'
  58. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  59. api project(path:':ComPDFKit_Repo:compdfkit')
  60. api project(path:':ComPDFKit_Repo:compdfkit-ui')
  61. api 'com.github.bumptech.glide:glide:4.15.1'
  62. annotationProcessor 'com.github.bumptech.glide:compiler:4.15.1'
  63. api 'androidx.documentfile:documentfile:1.0.1'
  64. }