Skip to content

Commit

Permalink
Updated Readium version (#55)
Browse files Browse the repository at this point in the history
* Updated Readium version

* Updated version
  • Loading branch information
nunommts authored Nov 20, 2023
1 parent 2bca560 commit 893c4c8
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 19 deletions.
6 changes: 4 additions & 2 deletions README-CHANGES.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@
<c:release date="2023-11-03T00:00:00+00:00" is-open="false" ticket-system="org.nypl.jira" version="2.1.1">
<c:changes/>
</c:release>
<c:release date="2023-11-16T10:13:14+00:00" is-open="true" ticket-system="org.lyrasis.jira" version="2.5.1">
<c:changes/>
<c:release date="2023-11-17T18:20:41+00:00" is-open="true" ticket-system="org.lyrasis.jira" version="2.5.1">
<c:changes>
<c:change date="2023-11-17T18:20:41+00:00" summary="Updated Readium version."/>
</c:changes>
</c:release>
</c:releases>
<c:ticket-systems>
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ POM_SCM_CONNECTION=scm:git:git://github.com/ThePalaceProject/android-r2
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/ThePalaceProject/android-r2
POM_SCM_URL=http://github.com/ThePalaceProject/android-r2
POM_URL=http://github.com/ThePalaceProject/android-r2
VERSION_NAME=2.5.1-SNAPSHOT
VERSION_NAME=2.6.0-SNAPSHOT
VERSION_PREVIOUS=2.5.0

android.useAndroidX=true
Expand Down
2 changes: 0 additions & 2 deletions org.librarysimplified.r2.demo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ dependencies {
implementation(libs.kotlinx.coroutines.android)
implementation(libs.kotlinx.coroutines.core.jvm)
implementation(libs.logback.android)
implementation(libs.nano.httpd)
implementation(libs.nano.httpd.nanolets)
implementation(libs.palace.theme)
implementation(libs.r2.shared)
implementation(libs.r2.streamer)
Expand Down
2 changes: 0 additions & 2 deletions org.librarysimplified.r2.vanilla/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ dependencies {
implementation(libs.kotlin.stdlib)
implementation(libs.kotlinx.coroutines)
implementation(libs.kotlinx.coroutines.android)
implementation(libs.nano.httpd)
implementation(libs.nano.httpd.nanolets)
implementation(libs.r2.shared)
implementation(libs.r2.streamer)
implementation(libs.rxjava2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ internal class SR2Controller private constructor(
command: SR2CommandSubmission,
apiCommand: SR2Command.ThemeSet,
): ListenableFuture<*> {
this.publishCommmandRunningLong(command)
this.publishCommandRunningLong(command)
return this.executeThemeSet(this.waitForWebViewAvailability(), apiCommand.theme)
}

Expand Down Expand Up @@ -741,7 +741,7 @@ internal class SR2Controller private constructor(
val previousNode = this.currentTarget

return try {
this.publishCommmandRunningLong(command)
this.publishCommandRunningLong(command)

val target =
this.navigationGraph.findNavigationNode(locator)
Expand Down Expand Up @@ -1005,35 +1005,35 @@ internal class SR2Controller private constructor(

try {
this.queueExecutor.execute {
this.publishCommmandStart(command)
this.publishCommandStart(command)
val future = this.executeInternalCommand(command)
try {
try {
future.get()
this.publishCommmandSucceeded(command)
this.publishCommandSucceeded(command)
} catch (e: ExecutionException) {
throw e.cause!!
}
} catch (e: SR2WebViewDisconnectedException) {
this.logger.debug("webview disconnected: could not execute {}", command)
this.publishEvent(SR2Event.SR2Error.SR2WebViewInaccessible("No web view is connected"))
this.publishCommmandFailed(command, e)
this.publishCommandFailed(command, e)
} catch (e: Exception) {
this.logger.error("{}: ", command, e)
this.publishCommmandFailed(command, e)
this.publishCommandFailed(command, e)
}
}
} catch (e: Exception) {
this.logger.error("{}: ", command, e)
this.publishCommmandFailed(command, e)
this.publishCommandFailed(command, e)
}
}

/**
* Publish an event to indicate that the current command is taking a long time to execute.
*/

private fun publishCommmandRunningLong(command: SR2CommandSubmission) {
private fun publishCommandRunningLong(command: SR2CommandSubmission) {
this.publishEvent(SR2CommandExecutionRunningLong(command.command))
}

Expand All @@ -1045,18 +1045,18 @@ internal class SR2Controller private constructor(
}
}

private fun publishCommmandSucceeded(command: SR2CommandSubmission) {
private fun publishCommandSucceeded(command: SR2CommandSubmission) {
this.publishEvent(SR2CommandExecutionSucceeded(command.command))
}

private fun publishCommmandFailed(
private fun publishCommandFailed(
command: SR2CommandSubmission,
exception: Exception,
) {
this.publishEvent(SR2CommandExecutionFailed(command.command, exception))
}

private fun publishCommmandStart(command: SR2CommandSubmission) {
private fun publishCommandStart(command: SR2CommandSubmission) {
this.publishEvent(SR2CommandExecutionStarted(command.command))
}

Expand Down
2 changes: 1 addition & 1 deletion org.thepalaceproject.android.platform

0 comments on commit 893c4c8

Please sign in to comment.