build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. namespace 'com.compdfkit.forms'
  6. compileSdk rootProject.ext.android.COMPILESDK
  7. resourcePrefix 'form_'
  8. defaultConfig {
  9. applicationId "com.compdfkit.forms"
  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 = "Forms_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 = "Forms_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. }