build.gradle 1.7 KB

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