build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. def getProductName() {
  5. return "ComPDFKitDemo"
  6. }
  7. def releaseTime() {
  8. return new Date().format("yyyy-MM-dd_hh-mm-ss", TimeZone.getTimeZone("GMT+08:00"))
  9. }
  10. android {
  11. namespace 'com.compdfkit.tools'
  12. compileSdk rootProject.ext.android.COMPILESDK
  13. resourcePrefix 'tools_'
  14. defaultConfig {
  15. minSdk rootProject.ext.android.MINSDK
  16. targetSdk rootProject.ext.android.TARGETSDK
  17. buildConfigField("String", "COMPDFKit_SDK_VERSION", "\"${versionName}\"")
  18. buildConfigField("String", "COMPDFKit_SDK_BUILD_TAG", "\"${versionName}_${versionCode}_${releaseTime()}\"")
  19. consumerProguardFiles "consumer-rules.pro"
  20. }
  21. buildTypes {
  22. release {
  23. minifyEnabled false
  24. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. }
  32. dependencies {
  33. api fileTree(include: ['*.jar'], dir: 'libs')
  34. api project(path:':compdfkit-repo:compdfkit')
  35. api project(path:':compdfkit-repo:compdfkit-ui')
  36. api project(path:':compdfkit-repo:compdfkit-kmhandwriting')
  37. api 'com.github.bumptech.glide:glide:4.15.1'
  38. annotationProcessor 'com.github.bumptech.glide:compiler:4.15.1'
  39. api 'androidx.documentfile:documentfile:1.0.1'
  40. implementation 'androidx.appcompat:appcompat:1.6.1'
  41. implementation 'com.google.android.material:material:1.8.0'
  42. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  43. implementation 'com.google.android.flexbox:flexbox:3.0.0'
  44. }