build.gradle 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. namespace 'com.compdfkit.pdfviewer'
  6. compileSdk rootProject.ext.android.COMPILESDK
  7. defaultConfig {
  8. applicationId "com.compdfkit.pdfviewer"
  9. minSdk rootProject.ext.android.MINSDK
  10. targetSdk rootProject.ext.android.TARGETSDK
  11. versionCode rootProject.ext.android.VERSIONCODE as int
  12. versionName rootProject.ext.sdk.CONVERSION_SDK_VERSION
  13. javaCompileOptions {
  14. annotationProcessorOptions {
  15. arguments = [
  16. rxhttp_rxjava: '3.1.6',
  17. rxhttp_package: 'rxhttp.xxx'
  18. ]
  19. }
  20. }
  21. }
  22. buildTypes {
  23. release {
  24. minifyEnabled false
  25. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  26. android.applicationVariants.all { variant ->
  27. variant.outputs.all {
  28. if (outputFileName.toLowerCase().endsWith('unsigned.apk')) {
  29. outputFileName = "ComPDFKit.apk"
  30. }
  31. }
  32. }
  33. }
  34. debug {
  35. android.applicationVariants.all { variant ->
  36. variant.outputs.all {
  37. if (outputFileName.toLowerCase().endsWith('debug.apk')) {
  38. outputFileName = "ComPDFKit.apk"
  39. }
  40. }
  41. }
  42. }
  43. }
  44. compileOptions {
  45. sourceCompatibility JavaVersion.VERSION_1_8
  46. targetCompatibility JavaVersion.VERSION_1_8
  47. }
  48. buildFeatures {
  49. viewBinding = true
  50. }
  51. }
  52. dependencies {
  53. implementation 'androidx.appcompat:appcompat:1.6.1'
  54. implementation 'com.google.android.material:material:1.8.0'
  55. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  56. api project(path: ':ComPDFKit_Tools')
  57. }