build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 'compdfkit_tools_'
  14. defaultConfig {
  15. minSdk rootProject.ext.android.MINSDK
  16. targetSdk rootProject.ext.android.TARGETSDK
  17. versionCode rootProject.ext.android.VERSIONCODE
  18. versionName rootProject.ext.sdk.CONVERSION_SDK_VERSION
  19. buildConfigField("String", "COMPDFKit_SDK_VERSION", "\"${versionName}\"")
  20. buildConfigField("String", "COMPDFKit_SDK_BUILD_TAG", "\"${versionName}_${versionCode}_${releaseTime()}\"")
  21. consumerProguardFiles "consumer-rules.pro"
  22. }
  23. buildTypes {
  24. release {
  25. minifyEnabled false
  26. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  27. }
  28. }
  29. compileOptions {
  30. sourceCompatibility JavaVersion.VERSION_1_8
  31. targetCompatibility JavaVersion.VERSION_1_8
  32. }
  33. }
  34. dependencies {
  35. api fileTree(include: ['*.jar'], dir: 'libs')
  36. api project(path:':compdfkit_repo:compdfkit')
  37. api project(path:':compdfkit_repo:compdfkit-ui')
  38. api 'com.github.bumptech.glide:glide:4.13.2'
  39. annotationProcessor 'com.github.bumptech.glide:compiler:4.13.2'
  40. implementation 'androidx.appcompat:appcompat:1.6.1'
  41. implementation 'com.google.android.material:material:1.8.0'
  42. }