forked from barteksc/PdfiumAndroid
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
108 lines (87 loc) · 2.78 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
apply plugin: 'maven-publish'
apply plugin: 'com.android.library'
ext {
bintrayRepo = 'maven'
bintrayName = 'pdfium-android'
publishedGroupId = 'com.github.barteksc'
libraryName = 'PdfiumAndroid'
artifact = 'pdfium-android'
libraryDescription = 'Fork of library for rendering PDFs on Android\'s Surface or Bitmap'
siteUrl = 'https://github.com/barteksc/PdfiumAndroid'
gitUrl = 'https://github.com/barteksc/PdfiumAndroid.git'
libraryVersion = '1.9.0'
developerId = 'barteksc'
developerName = 'Bartosz Schiller'
developerEmail = '[email protected]'
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}
android {
compileSdkVersion 32
ndkVersion "24.0.8215888"
externalNativeBuild {
ndkBuild {
// Provides a relative path to your Android.mk build script.
path "src/main/jni/Android.mk"
}
}
packagingOptions {
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
pickFirst 'lib/arm64-v8a/libc++_shared.so'
pickFirst 'lib/x86_64/libc++_shared.so'
pickFirst 'lib/x86/libc++_shared.so'
pickFirst 'lib/armeabi-v7a/libjniPdfium.so'
pickFirst 'lib/arm64-v8a/libjniPdfium.so'
pickFirst 'lib/x86_64/libjniPdfium.so'
pickFirst 'lib/x86/libjniPdfium.so'
pickFirst 'lib/armeabi-v7a/libmodpdfium.so'
pickFirst 'lib/arm64-v8a/libmodpdfium.so'
pickFirst 'lib/x86_64/libmodpdfium.so'
pickFirst 'lib/x86/libmodpdfium.so'
}
defaultConfig {
minSdkVersion 14
targetSdk 32
versionCode 1
versionName "1.9.0"
buildConfigField("String", "LIBRARY_VERSION_NAME", "\"${defaultConfig.versionName}\"")
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
google()
jcenter()
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.collection:collection:1.2.0'
}
project.afterEvaluate {
publishing {
publications {
library(MavenPublication) {
groupId = 'com.itextpdf.android.pdfium'
artifactId = 'pdfium-android'
version = android.defaultConfig.versionName
artifact bundleReleaseAar
}
}
}
}