forked from barteksc/PdfiumAndroid
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
116 lines (97 loc) · 2.87 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
109
110
111
112
113
114
115
116
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath libs.gradle
// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.1'
// classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
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 {
namespace "com.shockwave.pdfium"
compileSdk 33
defaultConfig {
minSdkVersion 21
targetSdkVersion 33
versionCode 1
versionName "1.9.0"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
testCoverageEnabled true
manifestPlaceholders = [crashlyticsEnabled: false]
}
qa {
initWith debug
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets{
main {
jniLibs.srcDir 'src/main/libs'
}
}
}
//
//repositories {
// google()
//// jcenter()
//}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation libs.androidx.legacy.support.v4
implementation libs.androidx.collection
}
subprojects {
tasks.withType(Javadoc).configureEach { enabled = false }
}
//apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
//apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
publishing {
publications {
pdfium(MavenPublication) {
groupId 'com.agora_net'
artifactId 'pdfium'
version '1.1.725' // + getCommitCount()
artifact("$buildDir/outputs/aar/PdfiumAndroid-release.aar")
}
}
repositories {
maven {
// url "/var/www/maven/repository/"
url = "$buildDir/repo"
}
}
}
tasks.withType(Javadoc).configureEach {
failOnError false
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
}