123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- plugins {
- id 'com.android.library'
- }
- apply from: '../compdfkit-tools-mavencentral.gradle'
- 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
- buildConfigField("String", "COMPDFKit_SDK_VERSION", "\"${versionName}\"")
- buildConfigField("String", "COMPDFKit_SDK_BUILD_TAG", "\"${versionName}_${versionCode}_${releaseTime()}\"")
- consumerProguardFiles "proguard-rules.pro"
- setProperty("archivesBaseName", "ComPDFKit_Tools")
- }
- buildTypes {
- release {
- minifyEnabled true
- zipAlignEnabled true
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- libraryVariants.all { variant ->
- variant.outputs.all { output ->
- if (outputFile != null && outputFileName.endsWith('.aar')) {
- outputFileName = "ComPDFKit_Tools.aar"
- }
- }
- }
- }
- }
- 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.compdf:compdfkit:2.0.0')
- // api ('com.compdf:compdfkit-ui:2.0.0')
- api 'com.github.bumptech.glide:glide:4.15.1'
- annotationProcessor 'com.github.bumptech.glide:compiler:4.15.1'
- api 'androidx.documentfile:documentfile:1.0.1'
- api 'androidx.appcompat:appcompat:1.6.1'
- api 'com.google.android.material:material:1.8.0'
- api 'androidx.constraintlayout:constraintlayout:2.1.4'
- }
- configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'seconds' }
|