build.gradle 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. namespace 'com.compdfkit.samples'
  7. compileSdk rootProject.ext.android.COMPILESDK
  8. defaultConfig {
  9. applicationId "com.compdfkit.samples"
  10. minSdk rootProject.ext.android.MINSDK
  11. targetSdk rootProject.ext.android.TARGETSDK
  12. versionCode rootProject.ext.android.VERSIONCODE as int
  13. versionName rootProject.ext.sdk.COMPDFKit_SDK_VERSION
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. android.applicationVariants.all { variant ->
  20. variant.outputs.all {
  21. if (outputFileName.toLowerCase().endsWith('unsigned.apk')) {
  22. outputFileName = "Samples_ComPDFKit.apk"
  23. }
  24. }
  25. }
  26. }
  27. debug {
  28. android.applicationVariants.all { variant ->
  29. variant.outputs.all {
  30. if (outputFileName.toLowerCase().endsWith('debug.apk')) {
  31. outputFileName = "Samples_ComPDFKit.apk"
  32. }
  33. }
  34. }
  35. }
  36. }
  37. compileOptions {
  38. sourceCompatibility JavaVersion.VERSION_1_8
  39. targetCompatibility JavaVersion.VERSION_1_8
  40. }
  41. kotlinOptions {
  42. jvmTarget = '1.8'
  43. }
  44. }
  45. dependencies {
  46. implementation 'androidx.appcompat:appcompat:1.6.1'
  47. implementation 'com.google.android.material:material:1.9.0'
  48. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  49. implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
  50. implementation "androidx.core:core-ktx:1.10.0"
  51. implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.1"
  52. api project(path:':ComPDFKit_Repo:compdfkit')
  53. api project(path:':ComPDFKit_Repo:compdfkit-ui')
  54. api 'com.github.bumptech.glide:glide:4.15.1'
  55. annotationProcessor 'com.github.bumptech.glide:compiler:4.15.1'
  56. api 'androidx.documentfile:documentfile:1.0.1'
  57. }