File tree Expand file tree Collapse file tree 1 file changed +57
-3
lines changed
Expand file tree Collapse file tree 1 file changed +57
-3
lines changed Original file line number Diff line number Diff line change 1- apply plugin : ' com.android.library'
1+ plugins {
2+ id ' com.android.library'
3+ id ' maven-publish'
4+ }
25
36android {
47 compileSdkVersion 35
58 namespace ' com.github.barteksc.pdfviewer'
69
7-
810 defaultConfig {
911 minSdkVersion 21
1012 targetSdkVersion 35
1113 versionCode 1
12- versionName " 4.0.0 "
14+ versionName " 4.0.3 "
1315 }
1416
1517 compileOptions {
1618 sourceCompatibility JavaVersion . VERSION_1_8
1719 targetCompatibility JavaVersion . VERSION_1_8
1820 }
1921
22+ buildTypes {
23+ release {
24+ minifyEnabled false
25+ }
26+ }
27+
28+ publishing {
29+ singleVariant(' release' ) {
30+ withSourcesJar()
31+ withJavadocJar()
32+ }
33+ }
2034}
2135
2236dependencies {
2337 implementation ' androidx.core:core:1.3.1'
2438 api project(' :pdfium' )
2539}
2640
41+ afterEvaluate {
42+ publishing {
43+ publications {
44+ release(MavenPublication ) {
45+ groupId = ' com.github.barteksc'
46+ artifactId = ' android-pdf-viewer'
47+ version = ' 4.0.3'
48+
49+ from components. release
50+
51+ pom {
52+ name = ' AndroidPdfViewer'
53+ description = ' Android view for displaying PDFs rendered with PdfiumAndroid'
54+ url = ' https://github.com/barteksc/AndroidPdfViewer'
55+
56+ licenses {
57+ license {
58+ name = ' The Apache Software License, Version 2.0'
59+ url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
60+ }
61+ }
62+
63+ developers {
64+ developer {
65+ id = ' barteksc'
66+ name = ' Bartosz Schiller'
67+ 68+ }
69+ }
70+
71+ scm {
72+ connection = ' https://github.com/barteksc/AndroidPdfViewer.git'
73+ developerConnection = ' https://github.com/barteksc/AndroidPdfViewer.git'
74+ url = ' https://github.com/barteksc/AndroidPdfViewer'
75+ }
76+ }
77+ }
78+ }
79+ }
80+ }
You can’t perform that action at this time.
0 commit comments