1- plugins {
2- id ' com.android.library'
3- id ' maven-publish'
4- id ' com.kezong.fat-aar'
5- }
1+ apply plugin : ' com.android.library'
2+ apply plugin : ' com.kezong.fat-aar'
63
74android {
85 compileSdkVersion 35
96 namespace ' com.github.barteksc.pdfviewer'
107
8+
119 defaultConfig {
1210 minSdkVersion 21
1311 targetSdkVersion 35
1412 versionCode 1
15- versionName " 4.0.4 "
13+ versionName " 4.0.7 "
1614 }
1715
1816 compileOptions {
1917 sourceCompatibility JavaVersion . VERSION_1_8
2018 targetCompatibility JavaVersion . VERSION_1_8
2119 }
2220
23- buildTypes {
24- release {
25- minifyEnabled false
26- }
27- }
28-
29- publishing {
30- singleVariant(' release' ) {
31- withSourcesJar()
32- withJavadocJar()
33- }
34- }
3521}
3622
3723dependencies {
3824 implementation ' androidx.core:core:1.3.1'
25+ // api project(':pdfium') use this to run the sample module
3926 embed project(path : ' :pdfium' , configuration : ' default' )
4027}
4128
42- afterEvaluate {
43- publishing {
44- publications {
45- release(MavenPublication ) {
46- groupId = ' com.github.T-Pro'
47- artifactId = ' AndroidPdfViewer'
48- version = ' 4.0.4'
49-
50- from components. release
51-
52- pom {
53- name = ' AndroidPdfViewer'
54- description = ' Android view for displaying PDFs rendered with PdfiumAndroid'
55- url = ' https://github.com/T-Pro/AndroidPdfViewer'
56-
57- licenses {
58- license {
59- name = ' The Apache Software License, Version 2.0'
60- url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
61- }
62- }
63-
64- developers {
65- developer {
66- id = ' T-Pro'
67- name = ' T-Pro'
68- 69- }
70- }
71-
72- scm {
73- connection = ' https://github.com/T-Pro/AndroidPdfViewer.git'
74- developerConnection = ' https://github.com/T-Pro/AndroidPdfViewer.git'
75- url = ' https://github.com/T-Pro/AndroidPdfViewer'
76- }
77- }
78- }
79- }
80- }
81- }
82-
83- afterEvaluate {
84- def explodeTasks = tasks. matching { it. name. toLowerCase(). startsWith(" explode" ) }
85-
86- tasks. matching { it. name. startsWith(" extractDeepLinks" ) }. configureEach { extractTask ->
87- explodeTasks. configureEach { explodeTask ->
88- extractTask. dependsOn(explodeTask)
89- }
90- }
91- }
0 commit comments