Skip to content

Commit 06ad19f

Browse files
committed
Merge branch 'develop' into feature/viewpager2
# Conflicts: # readium/navigator/src/main/java/org/readium/r2/navigator/pager/R2ViewPager.kt
2 parents 0def8e2 + 8bf84c9 commit 06ad19f

File tree

62 files changed

+212
-190
lines changed

Some content is hidden

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

62 files changed

+212
-190
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ captures/
4949
.idea/jarRepositories.xml
5050
.idea/misc.xml
5151
.idea/migrations.xml
52+
.idea/markdown.xml
5253
# Android Studio 3 in .gitignore file.
5354
.idea/caches
5455
.idea/modules.xml
@@ -57,6 +58,7 @@ captures/
5758
# Additional IntelliJ files
5859
.idea/misc.xml
5960
.idea/deploymentTargetDropDown.xml
61+
.idea/copilot.*
6062

6163
# Keystore files
6264
*.jks

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 19 additions & 0 deletions

README.md

Lines changed: 1 addition & 1 deletion

buildSrc/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ repositories {
1212
gradlePluginPortal()
1313
google()
1414
mavenCentral()
15+
maven("https://jitpack.io")
1516
}
1617

1718
dependencies {

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import com.vanniktech.maven.publish.SonatypeHost
2+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
23

34
plugins {
45
// FIXME: For now, we cannot use the versions catalog in precompiled scripts: https://github.com/gradle/gradle/issues/15383
@@ -21,16 +22,11 @@ android {
2122
}
2223

2324
compileOptions {
24-
sourceCompatibility = JavaVersion.VERSION_1_8
25-
targetCompatibility = JavaVersion.VERSION_1_8
25+
sourceCompatibility = JavaVersion.VERSION_11
26+
targetCompatibility = JavaVersion.VERSION_11
2627
isCoreLibraryDesugaringEnabled = true
2728
}
2829

29-
kotlinOptions {
30-
jvmTarget = JavaVersion.VERSION_1_8.toString()
31-
allWarningsAsErrors = true
32-
}
33-
3430
testOptions {
3531
unitTests.isIncludeAndroidResources = true
3632
}
@@ -50,10 +46,17 @@ android {
5046

5147
kotlin {
5248
explicitApi()
49+
50+
compilerOptions {
51+
freeCompilerArgs.add("-Xannotation-default-target=param-property")
52+
jvmTarget = JvmTarget.JVM_11
53+
allWarningsAsErrors = true
54+
}
5355
}
5456

5557
dependencies {
56-
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
58+
//noinspection UseTomlInstead
59+
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")
5760
}
5861

5962
mavenPublishing {

demos/navigator/build.gradle.kts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
id("com.android.application")
35
kotlin("android")
@@ -10,7 +12,7 @@ android {
1012
compileSdk = (property("android.compileSdk") as String).toInt()
1113

1214
defaultConfig {
13-
minSdk = 23
15+
minSdk = (property("android.minSdk") as String).toInt()
1416
targetSdk = (property("android.targetSdk") as String).toInt()
1517

1618
applicationId = "org.readium.navigator.demo"
@@ -22,14 +24,11 @@ android {
2224
}
2325

2426
compileOptions {
25-
sourceCompatibility = JavaVersion.VERSION_1_8
26-
targetCompatibility = JavaVersion.VERSION_1_8
27+
sourceCompatibility = JavaVersion.VERSION_11
28+
targetCompatibility = JavaVersion.VERSION_11
2729
isCoreLibraryDesugaringEnabled = true
2830
}
29-
kotlinOptions {
30-
jvmTarget = JavaVersion.VERSION_1_8.toString()
31-
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
32-
}
31+
3332
buildFeatures {
3433
viewBinding = true
3534
compose = true
@@ -59,6 +58,14 @@ android {
5958
namespace = "org.readium.demo.navigator"
6059
}
6160

61+
kotlin {
62+
63+
compilerOptions {
64+
jvmTarget = JvmTarget.JVM_11
65+
freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn")
66+
}
67+
}
68+
6269
dependencies {
6370
implementation(project(":readium:readium-shared"))
6471
implementation(project(":readium:readium-streamer"))

demos/navigator/src/main/java/org/readium/demo/navigator/decorations/CustomDecorationStyles.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import org.readium.r2.shared.publication.epub.pageList
2626
*
2727
* This is an example of a custom Decoration Style declaration.
2828
*/
29-
data class DecorationStyleAnnotationMark(@ColorInt val tint: Int) : Decoration.Style
29+
data class DecorationStyleAnnotationMark(@param:ColorInt val tint: Int) : Decoration.Style
3030

3131
/**
3232
* Decoration Style for a page number label.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# http://www.gradle.org/docs/current/userguide/build_environment.html
77

88
pom.groupId=org.readium.kotlin-toolkit
9-
pom.version=3.1.1
9+
pom.version=3.1.2
1010

1111
android.minSdk=23
1212
android.compileSdk=36

gradle/libs.versions.toml

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
[versions]
22

3-
kotlin = "2.1.21"
4-
agp = "8.10.1"
3+
kotlin = "2.2.20"
4+
agp = "8.11.1"
55
desugar_jdk_libs = "2.1.5"
66
gradle-maven-publish-plugin = "0.32.0"
77

8-
androidx-activity = "1.10.1"
8+
androidx-activity = "1.11.0"
99
androidx-annotation = "1.9.1"
10-
androidx-appcompat = "1.7.0"
11-
androidx-browser = "1.8.0"
10+
androidx-appcompat = "1.7.1"
11+
androidx-browser = "1.9.0"
1212
androidx-cardview = "1.0.0"
13-
androidx-compose-animation = "1.8.2"
14-
androidx-compose-foundation = "1.8.2"
15-
androidx-compose-material = "1.8.2"
13+
androidx-compose-animation = "1.9.2"
14+
androidx-compose-foundation = "1.9.2"
15+
androidx-compose-material = "1.9.2"
1616
androidx-compose-material-icons = "1.7.8"
17-
androidx-compose-material3 = "1.3.2"
18-
androidx-compose-runtime = "1.8.2"
19-
androidx-compose-ui = "1.8.2"
17+
androidx-compose-material3 = "1.4.0"
18+
androidx-compose-runtime = "1.9.2"
19+
androidx-compose-ui = "1.9.2"
2020
androidx-constraintlayout = "2.2.1"
21-
androidx-core = "1.16.0"
21+
androidx-core = "1.17.0"
2222
androidx-datastore = "1.1.7"
23-
androidx-fragment-ktx = "1.8.7"
23+
androidx-fragment-ktx = "1.8.9"
2424
androidx-legacy = "1.0.0"
25-
androidx-lifecycle = "2.9.0"
26-
androidx-media3 = "1.7.1"
27-
androidx-navigation = "2.9.0"
25+
androidx-lifecycle = "2.9.4"
26+
androidx-media3 = "1.8.0"
27+
androidx-navigation = "2.9.5"
2828
androidx-paging = "3.3.6"
2929
androidx-recyclerview = "1.4.0"
30-
androidx-room = "2.7.1"
30+
androidx-room = "2.8.1"
3131
androidx-viewpager2 = "1.1.0"
32-
androidx-webkit = "1.13.0"
32+
androidx-webkit = "1.14.0"
3333

34-
assertj = "3.27.3"
34+
assertj = "3.27.6"
3535

3636
dokka = "1.9.20"
3737

38-
google-material = "1.12.0"
38+
google-material = "1.13.0"
3939

4040
joda-time = "2.14.0"
4141
#Do not upgrade without fixing unit tests in HtmlResourceContentIteratorTest and regression testing
@@ -52,18 +52,18 @@ kotlinx-collections-immutable = "0.4.0"
5252

5353
# Make sure to align with the Kotlin version.
5454
# See https://github.com/google/ksp/releases
55-
ksp = "2.1.21-2.0.1"
55+
ksp = "2.2.20-2.0.3"
5656

5757
ktlint = "12.1.1"
5858

59-
# We cannot upgrade to 1.9.0 as it conflicts with liblcp.
60-
# See https://github.com/readium/kotlin-toolkit/issues/29
6159
#noinspection GradleDependency
60+
pdfium = "1.9.8"
61+
pdf-viewer = "3.2.8"
6262
picasso = "2.8"
6363
pspdfkit = "8.4.1"
6464

65-
robolectric = "4.14.1"
66-
mockk = "1.14.2"
65+
robolectric = "4.16"
66+
mockk = "1.14.6"
6767

6868
timber = "5.0.1"
6969

@@ -122,6 +122,8 @@ kotlinx-datetime = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime",
122122
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinx-serialization-json" }
123123
kotlinx-collections-immutable = { group = "org.jetbrains.kotlinx", name = "kotlinx-collections-immutable", version.ref = "kotlinx-collections-immutable" }
124124

125+
pdfium = { group = "com.github.marain87", name = "PdfiumAndroid", version.ref = "pdfium" }
126+
pdfviewer = { group = "com.github.marain87", name = "AndroidPdfViewer", version.ref = "pdf-viewer" }
125127
picasso = { group = "com.squareup.picasso", name = "picasso", version.ref = "picasso" }
126128
pspdfkit = { group = "com.pspdfkit", name = "pspdfkit", version.ref ="pspdfkit" }
127129

0 commit comments

Comments
 (0)