build.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. }
  41. dependencies {
  42. implementation 'androidx.appcompat:appcompat:1.6.1'
  43. implementation 'com.google.android.material:material:1.9.0'
  44. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  45. api project(path:':ComPDFKit_Repo:compdfkit')
  46. api project(path:':ComPDFKit_Repo:compdfkit-ui')
  47. api 'com.github.bumptech.glide:glide:4.15.1'
  48. annotationProcessor 'com.github.bumptech.glide:compiler:4.15.1'
  49. api 'androidx.documentfile:documentfile:1.0.1'
  50. }