Skip to content

Commit a226128

Browse files
authored
Bump dependencies (#521)
1 parent 8b95d2d commit a226128

File tree

132 files changed

+419
-62
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+419
-62
lines changed

.idea/kotlinc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
| Readium | Android min SDK | Android compile SDK | Kotlin compiler (✻) | Gradle (✻) |
1212
|---------|-----------------|---------------------|---------------------|------------|
13-
| 3.0.0 | 21 | 34 | 1.9.22 | 8.2.2 |
13+
| 3.0.0 | 21 | 34 | 1.9.24 | 8.6.0 |
1414
| 2.3.0 | 21 | 33 | 1.7.10 | 6.9.3 |
1515

1616
✻ Only required if you integrate Readium as a submodule instead of using Maven Central.

buildSrc/src/main/kotlin/readium.library-conventions.gradle.kts

-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ android {
2929
kotlinOptions {
3030
jvmTarget = JavaVersion.VERSION_1_8.toString()
3131
allWarningsAsErrors = true
32-
freeCompilerArgs = freeCompilerArgs + listOf(
33-
"-opt-in=kotlin.RequiresOptIn",
34-
"-opt-in=org.readium.r2.shared.InternalReadiumApi"
35-
)
3632
}
3733

3834
testOptions {

gradle/libs.versions.toml

+34-35
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,74 @@
11
[versions]
22

3-
kotlin = "1.9.22"
4-
agp = "8.2.2"
3+
kotlin = "1.9.24"
4+
agp = "8.4.0"
55
desugar_jdk_libs = "2.0.4"
6-
gradle-maven-publish-plugin = "0.27.0"
6+
gradle-maven-publish-plugin = "0.28.0"
77

8-
accompanist = "0.34.0"
9-
10-
androidx-activity = "1.8.2"
8+
androidx-activity = "1.9.0"
119
androidx-appcompat = "1.6.1"
12-
androidx-browser = "1.7.0"
10+
androidx-browser = "1.8.0"
1311
androidx-cardview = "1.0.0"
1412
# Make sure to align with the Kotlin version
1513
# https://developer.android.com/jetpack/androidx/releases/compose-kotlin
16-
androidx-compose-compiler = "1.5.8"
17-
androidx-compose-animation = "1.6.0"
18-
androidx-compose-foundation = "1.6.0"
19-
androidx-compose-material = "1.6.0"
20-
androidx-compose-material3 = "1.1.2"
21-
androidx-compose-runtime = "1.6.0"
22-
androidx-compose-ui = "1.6.0"
14+
androidx-compose-compiler = "1.5.14"
15+
androidx-compose-animation = "1.6.7"
16+
androidx-compose-foundation = "1.6.7"
17+
androidx-compose-material = "1.6.7"
18+
androidx-compose-material3 = "1.2.1"
19+
androidx-compose-runtime = "1.6.7"
20+
androidx-compose-ui = "1.6.7"
2321
androidx-constraintlayout = "2.1.4"
24-
androidx-core = "1.12.0"
25-
androidx-datastore = "1.0.0"
22+
androidx-core = "1.13.1"
23+
androidx-datastore = "1.1.1"
2624
androidx-expresso-core = "3.5.1"
2725
androidx-ext-junit = "1.1.5"
28-
androidx-fragment-ktx = "1.6.2"
26+
androidx-fragment-ktx = "1.7.1"
2927
androidx-legacy = "1.0.0"
30-
androidx-lifecycle = "2.7.0"
28+
androidx-lifecycle = "2.8.0"
3129
androidx-lifecycle-extensions = "2.2.0"
3230
androidx-media = "1.7.0"
3331
androidx-media2 = "1.3.0"
34-
androidx-media3 = "1.3.0"
35-
androidx-navigation = "2.7.6"
36-
androidx-paging = "3.2.1"
32+
androidx-media3 = "1.3.1"
33+
androidx-navigation = "2.7.7"
34+
androidx-paging = "3.3.0"
3735
androidx-recyclerview = "1.3.2"
3836
androidx-room = "2.6.1"
39-
androidx-viewpager2 = "1.0.0"
40-
androidx-webkit = "1.10.0"
37+
androidx-viewpager2 = "1.1.0"
38+
androidx-webkit = "1.11.0"
4139

42-
assertj = "3.25.2"
40+
assertj = "3.25.3"
4341

44-
dokka = "1.9.10"
42+
dokka = "1.9.20"
4543

4644
google-exoplayer = "2.19.1"
47-
google-material = "1.11.0"
45+
google-material = "1.12.0"
4846

49-
joda-time = "2.12.6"
47+
joda-time = "2.12.7"
5048
jsoup = "1.17.2"
5149
junit = "4.13.2"
5250

53-
kotlinx-coroutines = "1.7.3"
54-
kotlinx-coroutines-test = "1.7.3"
55-
kotlinx-datetime = "0.6.0-RC.2"
56-
kotlinx-serialization-json = "1.6.2"
51+
kotlinx-coroutines = "1.8.1"
52+
kotlinx-coroutines-test = "1.8.1"
53+
kotlinx-datetime = "0.6.0"
54+
kotlinx-serialization-json = "1.6.3"
5755

5856
# Make sure to align with the Kotlin version.
5957
# See https://github.com/google/ksp/releases
60-
ksp = "1.9.22-1.0.16"
58+
ksp = "1.9.24-1.0.20"
6159

6260
ktlint = "11.5.1"
6361

62+
# We cannot upgrade to 1.9.0 as it conflicts with liblcp.
63+
# See https://github.com/readium/kotlin-toolkit/issues/29
64+
#noinspection GradleDependency
6465
pdfium = "1.8.2"
6566
pdf-viewer = "2.8.2"
6667
#noinspection GradleDependency
6768
picasso = "2.8"
6869
pspdfkit = "8.4.1"
6970

70-
robolectric = "4.11.1"
71+
robolectric = "4.12.2"
7172

7273
timber = "5.0.1"
7374

@@ -168,6 +169,4 @@ exoplayer = ["google-exoplayer-core", "google-exoplayer-ui", "google-exoplayer-m
168169
lifecycle = ["androidx-lifecycle-common", "androidx-lifecycle-extensions", "androidx-lifecycle-livedata", "androidx-lifecycle-runtime", "androidx-lifecycle-viewmodel", "androidx-lifecycle-vmsavedstate", "androidx-lifecycle-viewmodel-compose"]
169170
media2 = ["androidx-media2-session", "androidx-media2-player", "google-exoplayer-core", "google-exoplayer-extension-media2"]
170171
media3 = ["androidx-media3-session", "androidx-media3-common", "androidx-media3-exoplayer"]
171-
navigation = ["androidx-navigation-fragment", "androidx-navigation-ui"]
172172
room = ["androidx-room-runtime", "androidx-room-ktx"]
173-
test-frameworks = ["junit", "androidx-ext-junit", "androidx-expresso-core", "robolectric", "kotlin-junit", "assertj", "kotlinx-coroutines-test"]
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

readium/adapters/exoplayer/audio/src/main/java/org/readium/adapter/exoplayer/audio/ExoPlayerEngineProvider.kt

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* available in the top-level LICENSE file of the project.
55
*/
66

7+
@file:OptIn(InternalReadiumApi::class)
8+
79
package org.readium.adapter.exoplayer.audio
810

911
import android.app.Application
@@ -15,6 +17,7 @@ import org.readium.navigator.media.common.DefaultMediaMetadataProvider
1517
import org.readium.navigator.media.common.MediaMetadataProvider
1618
import org.readium.r2.navigator.extensions.time
1719
import org.readium.r2.shared.ExperimentalReadiumApi
20+
import org.readium.r2.shared.InternalReadiumApi
1821
import org.readium.r2.shared.publication.Locator
1922
import org.readium.r2.shared.publication.Publication
2023
import org.readium.r2.shared.publication.indexOfFirstWithHref

readium/adapters/exoplayer/audio/src/main/java/org/readium/adapter/exoplayer/audio/ExoPlayerPreferencesEditor.kt

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* available in the top-level LICENSE file of the project.
55
*/
66

7+
@file:OptIn(InternalReadiumApi::class)
8+
79
package org.readium.adapter.exoplayer.audio
810

911
import org.readium.r2.navigator.extensions.format
@@ -12,6 +14,7 @@ import org.readium.r2.navigator.preferences.PreferencesEditor
1214
import org.readium.r2.navigator.preferences.RangePreference
1315
import org.readium.r2.navigator.preferences.RangePreferenceDelegate
1416
import org.readium.r2.shared.ExperimentalReadiumApi
17+
import org.readium.r2.shared.InternalReadiumApi
1518
import org.readium.r2.shared.publication.Metadata
1619

1720
/**

readium/adapters/pdfium/document/src/main/java/org/readium/adapter/pdfium/document/PdfiumDocument.kt

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* available in the top-level LICENSE file of the project.
55
*/
66

7+
@file:OptIn(InternalReadiumApi::class)
8+
79
package org.readium.adapter.pdfium.document
810

911
import android.content.Context

readium/adapters/pdfium/navigator/src/main/java/org/readium/adapter/pdfium/navigator/PdfiumDocumentFragment.kt

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* available in the top-level LICENSE file of the project.
55
*/
66

7+
@file:OptIn(InternalReadiumApi::class)
8+
79
package org.readium.adapter.pdfium.navigator
810

911
import android.graphics.PointF
@@ -23,6 +25,7 @@ import org.readium.r2.navigator.preferences.Axis
2325
import org.readium.r2.navigator.preferences.Fit
2426
import org.readium.r2.navigator.preferences.ReadingProgression
2527
import org.readium.r2.shared.ExperimentalReadiumApi
28+
import org.readium.r2.shared.InternalReadiumApi
2629
import org.readium.r2.shared.publication.LocalizedString
2730
import org.readium.r2.shared.publication.Manifest
2831
import org.readium.r2.shared.publication.Metadata

readium/adapters/pdfium/navigator/src/main/java/org/readium/adapter/pdfium/navigator/PdfiumEngineProvider.kt

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* available in the top-level LICENSE file of the project.
55
*/
66

7+
@file:OptIn(InternalReadiumApi::class)
8+
79
package org.readium.adapter.pdfium.navigator
810

911
import android.graphics.PointF
@@ -16,6 +18,7 @@ import org.readium.r2.navigator.pdf.PdfEngineProvider
1618
import org.readium.r2.navigator.util.SingleFragmentFactory
1719
import org.readium.r2.navigator.util.createFragmentFactory
1820
import org.readium.r2.shared.ExperimentalReadiumApi
21+
import org.readium.r2.shared.InternalReadiumApi
1922
import org.readium.r2.shared.publication.Metadata
2023
import org.readium.r2.shared.publication.Publication
2124
import org.readium.r2.shared.util.Url

readium/adapters/pdfium/navigator/src/main/java/org/readium/adapter/pdfium/navigator/PdfiumPreferencesEditor.kt

+3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
* available in the top-level LICENSE file of the project.
55
*/
66

7+
@file:OptIn(InternalReadiumApi::class)
8+
79
package org.readium.adapter.pdfium.navigator
810

911
import org.readium.r2.navigator.extensions.format
1012
import org.readium.r2.navigator.preferences.*
1113
import org.readium.r2.shared.ExperimentalReadiumApi
14+
import org.readium.r2.shared.InternalReadiumApi
1215
import org.readium.r2.shared.publication.Metadata
1316

1417
/**

readium/adapters/pspdfkit/navigator/src/main/java/org/readium/adapter/pspdfkit/navigator/PsPdfKitDocumentFragment.kt

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* available in the top-level LICENSE file of the project.
55
*/
66

7+
@file:OptIn(InternalReadiumApi::class)
8+
79
package org.readium.adapter.pspdfkit.navigator
810

911
import android.graphics.PointF
@@ -51,6 +53,7 @@ import org.readium.r2.navigator.preferences.ReadingProgression
5153
import org.readium.r2.navigator.preferences.Spread
5254
import org.readium.r2.navigator.util.createViewModelFactory
5355
import org.readium.r2.shared.ExperimentalReadiumApi
56+
import org.readium.r2.shared.InternalReadiumApi
5457
import org.readium.r2.shared.publication.Publication
5558
import org.readium.r2.shared.publication.services.isProtected
5659
import org.readium.r2.shared.util.Url

readium/adapters/pspdfkit/navigator/src/main/java/org/readium/adapter/pspdfkit/navigator/PsPdfKitEngineProvider.kt

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* available in the top-level LICENSE file of the project.
55
*/
66

7+
@file:OptIn(InternalReadiumApi::class)
8+
79
package org.readium.adapter.pspdfkit.navigator
810

911
import android.graphics.PointF
@@ -17,6 +19,7 @@ import org.readium.r2.navigator.preferences.Axis
1719
import org.readium.r2.navigator.util.SingleFragmentFactory
1820
import org.readium.r2.navigator.util.createFragmentFactory
1921
import org.readium.r2.shared.ExperimentalReadiumApi
22+
import org.readium.r2.shared.InternalReadiumApi
2023
import org.readium.r2.shared.publication.Metadata
2124
import org.readium.r2.shared.publication.Publication
2225
import org.readium.r2.shared.util.Url

readium/adapters/pspdfkit/navigator/src/main/java/org/readium/adapter/pspdfkit/navigator/PsPdfKitPreferencesEditor.kt

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* available in the top-level LICENSE file of the project.
55
*/
66

7+
@file:OptIn(InternalReadiumApi::class)
8+
79
package org.readium.adapter.pspdfkit.navigator
810

911
import org.readium.r2.navigator.extensions.format
@@ -20,6 +22,7 @@ import org.readium.r2.navigator.preferences.RangePreferenceDelegate
2022
import org.readium.r2.navigator.preferences.ReadingProgression
2123
import org.readium.r2.navigator.preferences.Spread
2224
import org.readium.r2.shared.ExperimentalReadiumApi
25+
import org.readium.r2.shared.InternalReadiumApi
2326
import org.readium.r2.shared.publication.Metadata
2427

2528
/**

readium/lcp/src/main/java/org/readium/r2/lcp/LcpContentProtection.kt

+3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
* available in the top-level LICENSE file of the project.
55
*/
66

7+
@file:OptIn(InternalReadiumApi::class)
8+
79
package org.readium.r2.lcp
810

911
import org.readium.r2.lcp.auth.LcpPassphraseAuthentication
1012
import org.readium.r2.lcp.license.model.LicenseDocument
13+
import org.readium.r2.shared.InternalReadiumApi
1114
import org.readium.r2.shared.publication.encryption.Encryption
1215
import org.readium.r2.shared.publication.encryption.encryption
1316
import org.readium.r2.shared.publication.epub.EpubEncryptionParser

readium/lcp/src/main/java/org/readium/r2/lcp/LcpDecryptor.kt

+3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
* LICENSE file present in the project repository where this source code is maintained.
88
*/
99

10+
@file:OptIn(InternalReadiumApi::class)
11+
1012
package org.readium.r2.lcp
1113

14+
import org.readium.r2.shared.InternalReadiumApi
1215
import org.readium.r2.shared.extensions.coerceFirstNonNegative
1316
import org.readium.r2.shared.extensions.inflate
1417
import org.readium.r2.shared.extensions.requireLengthFitInt

readium/lcp/src/main/java/org/readium/r2/lcp/LcpDecryptorTest.kt

+2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
*/
99

1010
@file:Suppress("unused")
11+
@file:OptIn(InternalReadiumApi::class)
1112

1213
package org.readium.r2.lcp
1314

1415
import kotlin.math.ceil
16+
import org.readium.r2.shared.InternalReadiumApi
1517
import org.readium.r2.shared.extensions.coerceIn
1618
import org.readium.r2.shared.publication.Publication
1719
import org.readium.r2.shared.util.ErrorException

readium/lcp/src/main/java/org/readium/r2/lcp/auth/LcpDialogAuthentication.kt

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* available in the top-level LICENSE file of the project.
55
*/
66

7+
@file:OptIn(InternalReadiumApi::class)
8+
79
package org.readium.r2.lcp.auth
810

911
import android.annotation.SuppressLint
@@ -33,6 +35,7 @@ import kotlinx.coroutines.withContext
3335
import org.readium.r2.lcp.LcpAuthenticating
3436
import org.readium.r2.lcp.R
3537
import org.readium.r2.lcp.license.model.components.Link
38+
import org.readium.r2.shared.InternalReadiumApi
3639
import org.readium.r2.shared.extensions.tryOr
3740
import org.readium.r2.shared.extensions.tryOrNull
3841
import org.readium.r2.shared.util.AbsoluteUrl

readium/lcp/src/main/java/org/readium/r2/lcp/license/License.kt

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* LICENSE file present in the project repository where this source code is maintained.
88
*/
99

10+
@file:OptIn(InternalReadiumApi::class)
11+
1012
package org.readium.r2.lcp.license
1113

1214
import java.net.HttpURLConnection
@@ -29,6 +31,7 @@ import org.readium.r2.lcp.service.DeviceService
2931
import org.readium.r2.lcp.service.LcpClient
3032
import org.readium.r2.lcp.service.LicensesRepository
3133
import org.readium.r2.lcp.service.NetworkService
34+
import org.readium.r2.shared.InternalReadiumApi
3235
import org.readium.r2.shared.extensions.tryOrNull
3336
import org.readium.r2.shared.util.Instant
3437
import org.readium.r2.shared.util.Try

readium/lcp/src/main/java/org/readium/r2/lcp/license/model/LicenseDocument.kt

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* LICENSE file present in the project repository where this source code is maintained.
88
*/
99

10+
@file:OptIn(InternalReadiumApi::class)
11+
1012
package org.readium.r2.lcp.license.model
1113

1214
import java.nio.charset.Charset
@@ -20,6 +22,7 @@ import org.readium.r2.lcp.license.model.components.lcp.Rights
2022
import org.readium.r2.lcp.license.model.components.lcp.Signature
2123
import org.readium.r2.lcp.license.model.components.lcp.User
2224
import org.readium.r2.lcp.service.URLParameters
25+
import org.readium.r2.shared.InternalReadiumApi
2326
import org.readium.r2.shared.extensions.optNullableString
2427
import org.readium.r2.shared.util.AbsoluteUrl
2528
import org.readium.r2.shared.util.Instant

0 commit comments

Comments
 (0)