1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- plugins {
- id 'com.android.library'
- }
- def getProductName() {
- return "ComPDFKitDemo"
- }
- def releaseTime() {
- return new Date().format("yyyy-MM-dd_hh-mm-ss", TimeZone.getTimeZone("GMT+08:00"))
- }
- android {
- namespace 'com.compdfkit.tools'
- compileSdk rootProject.ext.android.COMPILESDK
- resourcePrefix 'tools_'
- defaultConfig {
- minSdk rootProject.ext.android.MINSDK
- targetSdk rootProject.ext.android.TARGETSDK
- versionCode rootProject.ext.android.VERSIONCODE
- versionName rootProject.ext.sdk.CONVERSION_SDK_VERSION
- buildConfigField("String", "COMPDFKit_SDK_VERSION", "\"${versionName}\"")
- buildConfigField("String", "COMPDFKit_SDK_BUILD_TAG", "\"${versionName}_${versionCode}_${releaseTime()}\"")
- consumerProguardFiles "consumer-rules.pro"
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- }
- dependencies {
- api fileTree(include: ['*.jar'], dir: 'libs')
- api project(path:':compdfkit_repo:compdfkit')
- api project(path:':compdfkit_repo:compdfkit-ui')
- api 'com.github.bumptech.glide:glide:4.14.2'
- annotationProcessor 'com.github.bumptech.glide:compiler:4.14.2'
- api 'androidx.documentfile:documentfile:1.0.1'
- implementation 'androidx.appcompat:appcompat:1.6.1'
- implementation 'com.google.android.material:material:1.8.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
- }
|