Skip to content

Commit 5488363

Browse files
authored
2.1.0 (#163)
1 parent 70d8bb1 commit 5488363

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

readium/streamer/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ All notable changes to this project will be documented in this file.
44

55
**Warning:** Features marked as *alpha* may change or be removed in a future release without notice. Use with caution.
66

7-
## [Unreleased]
7+
<!--## [Unreleased]-->
8+
9+
## [2.1.0]
810

911
### Added
1012

@@ -14,7 +16,7 @@ All notable changes to this project will be documented in this file.
1416

1517
### Changed
1618

17-
* Upgraded to Kotlin 1.5.21 and Gradle 7.1.1
19+
* Upgraded to Kotlin 1.5.31 and Gradle 7.1.1
1820
* The default EPUB positions service now uses the archive entry length when available. [This is similar to how Adobe RMSDK generates page numbers](https://github.com/readium/architecture/issues/123).
1921
* To use the former strategy, create the `Streamer` with: `Streamer(parsers = listOf(EpubParser(reflowablePositionsStrategy = OriginalLength(pageLength = 1024))))`
2022

@@ -110,4 +112,5 @@ server.loadCustomResource(assets.open("scripts/highlight.js"), "highlight.js", I
110112
[2.0.0-beta.1]: https://github.com/readium/r2-streamer-kotlin/compare/2.0.0-alpha.2...2.0.0-beta.1
111113
[2.0.0-beta.2]: https://github.com/readium/r2-streamer-kotlin/compare/2.0.0-beta.1...2.0.0-beta.2
112114
[2.0.0]: https://github.com/readium/r2-streamer-kotlin/compare/2.0.0-beta.2...2.0.0
115+
[2.1.0]: https://github.com/readium/r2-streamer-kotlin/compare/2.0.0...2.1.0
113116

readium/streamer/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.kotlin_version = '1.5.21'
4+
ext.kotlin_version = '1.5.31'
55

66
repositories {
77
google()
88
jcenter()
99
}
1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:7.0.0'
11+
classpath 'com.android.tools.build:gradle:7.0.2'
1212

1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414

readium/streamer/r2-streamer/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ plugins {
1414
group='com.github.readium'
1515

1616
android {
17-
compileSdkVersion 30
17+
compileSdkVersion 31
1818
defaultConfig {
1919
minSdkVersion 21
20-
targetSdkVersion 30
20+
targetSdkVersion 31
2121
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2222
}
2323
compileOptions {
@@ -55,7 +55,7 @@ dependencies {
5555
if (findProject(':r2-shared')) {
5656
implementation project(':r2-shared')
5757
} else {
58-
implementation "com.github.readium:r2-shared-kotlin:develop-SNAPSHOT"
58+
implementation "com.github.readium:r2-shared-kotlin:2.1.0"
5959
}
6060

6161
final JACKSON_VERSION = '2.12.2'
@@ -82,16 +82,16 @@ dependencies {
8282
exclude module: 'support-v4'
8383
}
8484
implementation "joda-time:joda-time:2.10.10"
85-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0-native-mt"
85+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0"
8686

8787
testImplementation 'androidx.test.ext:junit-ktx:1.1.3'
8888
testImplementation 'androidx.test:core-ktx:1.4.0'
8989
testImplementation "junit:junit:4.13.2"
9090
testImplementation "net.sf.kxml:kxml2:2.3.0"
9191
testImplementation 'org.assertj:assertj-core:3.19.0'
92-
testImplementation "org.jetbrains.kotlin:kotlin-reflect:1.5.20"
92+
testImplementation "org.jetbrains.kotlin:kotlin-reflect:1.5.31"
9393
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
94-
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2"
94+
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.5.0"
9595
// Latest version of org.json is incompatible with the one bundled in Android, breaking the tests.
9696
//noinspection GradleDependency
9797
testImplementation "org.json:json:20200518"

readium/streamer/r2-streamer/src/main/java/org/readium/r2/streamer/parser/pdf/PdfParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class PdfParser(
6161
)
6262

6363
val servicesBuilder = Publication.ServicesBuilder(
64-
positions = (PdfPositionsService)::create,
64+
positions = PdfPositionsService.Companion::create,
6565
cover = document.cover?.let { InMemoryCoverService.createFactory(it) }
6666
)
6767

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sdk=30

0 commit comments

Comments
 (0)