build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. namespace 'com.compdfkit.annotations'
  6. compileSdk rootProject.ext.android.COMPILESDK
  7. resourcePrefix 'annotation_'
  8. defaultConfig {
  9. applicationId "com.compdfkit.annotations"
  10. minSdk rootProject.ext.android.MINSDK
  11. targetSdk rootProject.ext.android.TARGETSDK
  12. versionCode rootProject.ext.android.VERSIONCODE
  13. versionName rootProject.ext.sdk.CONVERSION_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 = "Annotations_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 = "Annotations_ComPDFKit.apk"
  32. }
  33. }
  34. }
  35. }
  36. }
  37. compileOptions {
  38. sourceCompatibility JavaVersion.VERSION_1_8
  39. targetCompatibility JavaVersion.VERSION_1_8
  40. }
  41. buildFeatures {
  42. viewBinding = true
  43. }
  44. }
  45. dependencies {
  46. implementation 'androidx.appcompat:appcompat:1.6.1'
  47. implementation 'com.google.android.material:material:1.8.0'
  48. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  49. implementation project(':ComPDFKit_Tools')
  50. }