Skip to content

Commit 6e42b9d

Browse files
committed
update dependencies, move all versions to toml, new build cache internet check
1 parent a4ee3e1 commit 6e42b9d

11 files changed

Lines changed: 52 additions & 28 deletions

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ComposePdfViewer [![Android CI](https://github.com/barnhill/ComposePdfViewer/actions/workflows/android.yml/badge.svg)](https://github.com/barnhill/ComposePdfViewer/actions/workflows/android.yml) [![API](https://img.shields.io/badge/API-19%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=23)
1+
# ComposePdfViewer [![Android CI](https://github.com/barnhill/ComposePdfViewer/actions/workflows/android.yml/badge.svg)](https://github.com/barnhill/ComposePdfViewer/actions/workflows/android.yml) [![API](https://img.shields.io/badge/API-24%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=24)
22

33
Android Composable for Viewing PDFs
44

@@ -7,13 +7,13 @@ This library provides an easy to consume Android Composable that will display PD
77
## Add the dependency
88

99
```Gradle
10-
implementation 'com.pnuema.android:pdfviewer:1.3.4'
10+
implementation 'com.pnuema.android:pdfviewer:1.4.0'
1111
```
1212
```Kotlin(KTS)
13-
implementation("com.pnuema.android:pdfviewer:1.3.4")
13+
implementation("com.pnuema.android:pdfviewer:1.4.0")
1414
```
1515
```TOML
16-
pdfviewer = { module = "com.pnuema.android:pdfviewer", version.ref = "1.3.4" }
16+
pdfviewer = { module = "com.pnuema.android:pdfviewer", version.ref = "1.4.0" }
1717
```
1818

1919
## Usage

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ android {
3535
sourceCompatibility = JavaVersion.VERSION_17
3636
targetCompatibility = JavaVersion.VERSION_17
3737
}
38-
kotlinOptions {
39-
jvmTarget = JavaVersion.VERSION_17.toString()
38+
kotlin {
39+
jvmToolchain(JavaVersion.VERSION_17.toString().toInt())
4040
}
4141
buildFeatures {
4242
compose = true

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ plugins {
1515

1616
tasks {
1717
wrapper {
18-
gradleVersion = "8.13"
18+
gradleVersion = libs.versions.gradle.get()
1919
distributionType = Wrapper.DistributionType.BIN
2020
}
2121
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
2828
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
2929

3030
GROUP=com.pnuema.android
31-
VERSION_NAME=1.3.4
31+
VERSION_NAME=1.4.0
3232

3333
POM_NAME=PdfViewer
3434
POM_ARTIFACT_ID=pdfviewer

gradle/libs.versions.toml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
[versions]
22
minSdk = "24"
3-
targetSdk = "35"
4-
androidx-appcompat = "1.7.0"
5-
androidx-compose-ui = "1.7.8"
6-
androidx-compose-viewmodel = "2.8.7"
3+
targetSdk = "36"
4+
gradle = "8.14.3"
5+
androidx-appcompat = "1.7.1"
6+
androidx-compose-ui = "1.8.3"
7+
androidx-compose-viewmodel = "2.9.2"
78
androidx-material3 = "1.3.2"
89
material = "1.12.0"
910
androidx-activity = "1.10.1"
1011
androidx-core = "1.16.0"
11-
androidx-lifecycle = "2.8.7"
12-
okhttp = "4.12.0"
13-
zoomable = "0.15.1"
14-
compose-bom = "2025.04.00"
12+
androidx-lifecycle = "2.9.2"
13+
okhttp = "5.1.0"
14+
zoomable = "0.16.0"
15+
compose-bom = "2025.07.00"
1516

1617
#plugins
17-
android-gradle-plugin = "8.9.1"
18-
kotlin = "2.1.20"
18+
android-gradle-plugin = "8.11.1"
19+
kotlin = "2.2.0"
1920
gradleCacheFix = "3.0.1"
2021
dokka = "2.0.0"
21-
vanniktech-maven-publish = "0.30.0"
22+
vanniktech-maven-publish = "0.34.0"
2223

2324
[libraries]
2425
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" }

gradle/wrapper/gradle-wrapper.jar

59 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pdfviewer/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ android {
3737
sourceCompatibility = JavaVersion.VERSION_17
3838
targetCompatibility = JavaVersion.VERSION_17
3939
}
40-
kotlinOptions {
41-
jvmTarget = JavaVersion.VERSION_17.toString()
40+
kotlin {
41+
jvmToolchain(JavaVersion.VERSION_17.toString().toInt())
4242
}
4343
}
4444

0 commit comments

Comments
 (0)