1- apply plugin : ' com.android.library'
2-
3- ext {
4- bintrayRepo = ' maven'
5- bintrayName = ' android-pdf-viewer'
6-
7- publishedGroupId = ' com.github.barteksc'
8- libraryName = ' AndroidPdfViewer'
9- artifact = ' android-pdf-viewer'
10-
11- libraryDescription = ' Android view for displaying PDFs rendered with PdfiumAndroid'
12-
13- siteUrl = ' https://github.com/barteksc/AndroidPdfViewer'
14- gitUrl = ' https://github.com/barteksc/AndroidPdfViewer.git'
15-
16- libraryVersion = ' 3.2.0-beta.1'
17-
18- developerId = ' barteksc'
19- developerName = ' Bartosz Schiller'
20- developerEmail = ' barteksch@boo.pl'
21-
22- licenseName = ' The Apache Software License, Version 2.0'
23- licenseUrl = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
24- allLicenses = [" Apache-2.0" ]
1+ plugins {
2+ id ' com.android.library'
3+ id ' maven-publish'
254}
265
276android {
28- compileSdkVersion 28
7+ namespace " com.github.barteksc.pdfviewer"
8+
9+ compileSdk rootProject. tools. compileSdk
2910
3011 defaultConfig {
31- minSdkVersion 14
32- targetSdkVersion 28
12+ minSdk rootProject. tools. minSdk
13+ targetSdk rootProject. tools. targetSdk
14+
3315 versionCode 1
34- versionName " 3.2.0-beta.1"
16+ versionName " ${ rootProject.tools.versionName} "
17+ }
18+
19+ buildTypes {
20+ release {
21+ minifyEnabled false
22+ proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
23+ }
3524 }
3625
26+ compileOptions {
27+ sourceCompatibility JavaVersion . VERSION_17
28+ targetCompatibility JavaVersion . VERSION_17
29+ }
30+
31+ publishing {
32+ publishing {
33+ singleVariant(" release" ) {
34+ withSourcesJar()
35+ withJavadocJar()
36+ }
37+ }
38+ }
3739}
3840
3941dependencies {
40- implementation ' com.android.support:support-compat:28.0.0 '
41- api ' com.github.barteksc:pdfium-android :1.9.0 '
42+ implementation ' androidx.appcompat:appcompat:1.6.1 '
43+ api ' com.github.lion1988dev:PdfiumAndroid :1.9.1 '
4244}
4345
44- apply from : ' bintray.gradle'
46+ publishing {
47+ publications {
48+ release(MavenPublication ) {
49+ groupId = ' com.github.lion1988dev'
50+ artifactId = ' com.github.barteksc.pdfviewer'
51+ version = " 3.2.1"
52+
53+ afterEvaluate {
54+ from components. release
55+ }
56+ }
57+ }
58+ }
0 commit comments