Skip to content

Commit

Permalink
Merge branch 'main' into feature/lcp-streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed Oct 25, 2024
2 parents a21ee42 + 3a533ae commit e8ee010
Show file tree
Hide file tree
Showing 132 changed files with 6,961 additions and 1,521 deletions.
37 changes: 35 additions & 2 deletions README-CHANGES.xml
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@
</c:change>
</c:changes>
</c:release>
<c:release date="2024-06-05T19:03:47+00:00" is-open="true" ticket-system="org.lyrasis.jira" version="1.13.0">
<c:release date="2024-09-27T00:00:00+00:00" is-open="false" ticket-system="org.lyrasis.jira" version="1.13.0">
<c:changes>
<c:change date="2024-05-03T00:00:00+00:00" summary="Integrate the new audiobook player components.">
<c:tickets>
Expand All @@ -535,11 +535,44 @@
<c:change date="2024-05-31T00:00:00+00:00" summary="Require APK 26 (Android 8.0)"/>
<c:change date="2024-05-31T00:00:00+00:00" summary="Upgrade to R2 3.0.0-beta.1."/>
<c:change date="2024-05-31T00:00:00+00:00" summary="Upgrade to liblcp-4.1.0."/>
<c:change date="2024-06-05T19:03:47+00:00" summary="Implement the new audiobooks TOC.">
<c:change date="2024-06-05T00:00:00+00:00" summary="Implement the new audiobooks TOC.">
<c:tickets>
<c:ticket id="PP-1301"/>
</c:tickets>
</c:change>
<c:change date="2024-09-24T00:00:00+00:00" summary="Upgrade to Readium 2 3.0.0.">
<c:tickets>
<c:ticket id="PP-1731"/>
</c:tickets>
</c:change>
</c:changes>
</c:release>
<c:release date="2024-10-03T00:00:00+00:00" is-open="false" ticket-system="org.lyrasis.jira" version="1.13.1">
<c:changes>
<c:change date="2024-10-01T00:00:00+00:00" summary="Fix a lifecycle crash in the audiobook TOC.">
<c:tickets>
<c:ticket id="PP-1772"/>
</c:tickets>
</c:change>
</c:changes>
</c:release>
<c:release date="2024-10-17T16:11:02+00:00" is-open="true" ticket-system="org.lyrasis.jira" version="1.14.0">
<c:changes>
<c:change date="2024-10-03T00:00:00+00:00" summary="Repair book previews.">
<c:tickets>
<c:ticket id="PP-1765"/>
</c:tickets>
</c:change>
<c:change date="2024-10-03T00:00:00+00:00" summary="Fix an unlikely crash in the audiobooks toolbar.">
<c:tickets>
<c:ticket id="PP-1789"/>
</c:tickets>
</c:change>
<c:change date="2024-10-17T16:11:02+00:00" summary="Rewrite time tracking.">
<c:tickets>
<c:ticket id="PP-1704"/>
</c:tickets>
</c:change>
</c:changes>
</c:release>
</c:releases>
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-core
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/ThePalaceProject/android-core
POM_SCM_URL=http://github.com/ThePalaceProject/android-core
POM_URL=http://github.com/ThePalaceProject/android-core
VERSION_NAME=1.13.0-SNAPSHOT
VERSION_NAME=1.14.0-SNAPSHOT
VERSION_CODE_BASE=70000

android.useAndroidX=true
Expand Down
2 changes: 1 addition & 1 deletion org.thepalaceproject.android.platform
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ include(":simplified-buildconfig-api")
include(":simplified-content-api")
include(":simplified-crashlytics")
include(":simplified-crashlytics-api")
include(":simplified-deeplinks-controller-api")
include(":simplified-documents")
include(":simplified-feeds-api")
include(":simplified-files")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ object AccountAuthenticationCredentialsStoreJSON {
result[accountID] =
AccountAuthenticationCredentialsJSON.deserializeFromJSON(credentials.get(key))
} catch (e: Exception) {
this.logger.error("error deserializing credential: ", e)
this.logger.debug("error deserializing credential: ", e)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ object AccountPreferencesJSON {
try {
results.add(UUID.fromString(JSONParserUtilities.checkString(item)))
} catch (e: Exception) {
this.logger.error("unable to parse acknowledgement: ", e)
this.logger.debug("unable to parse acknowledgement: ", e)
}
}
return results.toList()
} catch (e: Exception) {
this.logger.error("unable to parse acknowledgements: ", e)
this.logger.debug("unable to parse acknowledgements: ", e)
return emptyList()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ object AccountProvidersJSON {
try {
items.add(AnnouncementJSON.deserializeFromJSON(node))
} catch (e: Exception) {
this.logger.error("unable to parse announcement: ", e)
this.logger.debug("unable to parse announcement: ", e)
}
}
items.toList()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class AccountProviderRegistry private constructor(
)
return taskRecorder.finishFailure()
} catch (e: Exception) {
this.logger.error("resolution exception: ", e)
this.logger.debug("resolution exception: ", e)
val message = e.message ?: e.javaClass.canonicalName ?: "unknown"
taskRecorder.currentStepFailedAppending(
message = message,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class AccountProviderSourceFileBased(
SourceResult.SourceSucceeded(this.mapResult(newResult))
}
} catch (e: Exception) {
this.logger.error("failed to load providers from file: ", e)
this.logger.debug("failed to load providers from file: ", e)
SourceResult.SourceFailed(mapOf(), e)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class AccountProviderResolution(

taskRecorder.finishSuccess(accountProvider)
} catch (e: Exception) {
this.logger.error("failed to resolve account provider: ", e)
this.logger.debug("failed to resolve account provider: ", e)
taskRecorder.currentStepFailedAppending(
message = this.stringResources.resolvingUnexpectedException,
errorCode = unexpectedException(this.description),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class AccountProviderSourceNYPLRegistry(
this.cacheServerResults(files, mergedResults)
SourceResult.SourceSucceeded(mergedResults)
} catch (e: Exception) {
this.logger.error("failed to fetch providers: ", e)
this.logger.debug("failed to fetch providers: ", e)
SourceResult.SourceFailed(diskResults, e)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Analytics private constructor(
try {
system.onAnalyticsEvent(event)
} catch (e: Exception) {
this.logger.error("failed to publish analytics event: ", e)
this.logger.debug("failed to publish analytics event: ", e)
}
}
}
6 changes: 5 additions & 1 deletion simplified-app-palace/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ dependencies {
implementation(project(":simplified-content-api"))
implementation(project(":simplified-crashlytics"))
implementation(project(":simplified-crashlytics-api"))
implementation(project(":simplified-deeplinks-controller-api"))
implementation(project(":simplified-documents"))
implementation(project(":simplified-feeds-api"))
implementation(project(":simplified-files"))
Expand Down Expand Up @@ -497,6 +496,8 @@ dependencies {
implementation(libs.androidx.webkit)

implementation(libs.azam.ulidj)
implementation(libs.commons.compress)
implementation(libs.commons.io)
implementation(libs.firebase.analytics)
implementation(libs.firebase.annotations)
implementation(libs.firebase.common)
Expand All @@ -522,7 +523,9 @@ dependencies {
implementation(libs.google.gson)
implementation(libs.google.guava)
implementation(libs.google.material)
implementation(libs.io7m.jattribute.core)
implementation(libs.io7m.jfunctional)
implementation(libs.io7m.jmulticlose)
implementation(libs.io7m.jnull)
implementation(libs.irradia.fieldrush.api)
implementation(libs.irradia.fieldrush.vanilla)
Expand Down Expand Up @@ -575,6 +578,7 @@ dependencies {
implementation(libs.palace.audiobook.manifest.parser.webpub)
implementation(libs.palace.audiobook.media3)
implementation(libs.palace.audiobook.parser.api)
implementation(libs.palace.audiobook.time.tracking)
implementation(libs.palace.audiobook.views)
implementation(libs.palace.drm.core)
implementation(libs.palace.http.api)
Expand Down
1 change: 1 addition & 0 deletions simplified-bookmarks-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies {
implementation(libs.kotlin.stdlib)
implementation(libs.palace.audiobook.api)
implementation(libs.rxjava2)
implementation(libs.slf4j)

compileOnly(libs.google.auto.value)
annotationProcessor(libs.google.auto.value.processor)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import org.joda.time.format.DateTimeFormat
import org.joda.time.format.ISODateTimeFormat
import org.nypl.simplified.books.api.bookmark.BookmarkKind
import org.nypl.simplified.books.api.bookmark.SerializedBookmark
import org.nypl.simplified.books.api.bookmark.SerializedBookmark20210828
import org.nypl.simplified.books.api.bookmark.SerializedBookmark20240424
import org.nypl.simplified.books.api.bookmark.SerializedLocators
import java.net.URI

Expand Down Expand Up @@ -108,7 +108,7 @@ object BookmarkAnnotations {
val location =
SerializedLocators.parseLocator(objectMapper.readTree(annotation.target.selector.value))

return SerializedBookmark20210828(
return SerializedBookmark20240424(
deviceID = annotation.body.device,
kind = annotation.kind,
location = location,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.nypl.simplified.bookmarks.api

import android.util.Log
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.SerializationFeature
Expand All @@ -11,9 +10,13 @@ import com.io7m.jfunctional.Some
import org.nypl.simplified.books.api.bookmark.SerializedLocators
import org.nypl.simplified.json.core.JSONParseException
import org.nypl.simplified.json.core.JSONParserUtilities
import org.slf4j.LoggerFactory

object BookmarkAnnotationsJSON {

private val logger =
LoggerFactory.getLogger(BookmarkAnnotationsJSON::class.java)

@Throws(JSONParseException::class)
fun deserializeSelectorNodeFromJSON(
objectMapper: ObjectMapper,
Expand Down Expand Up @@ -224,7 +227,7 @@ object BookmarkAnnotationsJSON {
)
bookmarkAnnotations.add(bookmarkAnnotation)
} catch (exception: JSONParseException) {
Log.d("BookmarkAnnotationsJSON", "Error deserializing bookmark annotation")
this.logger.debug("Error deserializing bookmark annotation: ", exception)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class BService(
)
)
} catch (e: Throwable) {
this.logger.error("sync: unable to sync profile: ", e)
this.logger.debug("sync: unable to sync profile: ", e)
this.failedFuture<Void>(e)
}
}
Expand Down Expand Up @@ -179,7 +179,7 @@ class BService(
)
)
} catch (e: Throwable) {
this.logger.error("sync: unable to sync account: ", e)
this.logger.debug("sync: unable to sync account: ", e)
this.failedFuture(e)
}
}
Expand Down Expand Up @@ -207,7 +207,7 @@ class BService(
)
)
} catch (e: Throwable) {
this.logger.error("bookmarkLoad: ", e)
this.logger.debug("bookmarkLoad: ", e)
this.failedFuture(e)
}
}
Expand All @@ -227,7 +227,7 @@ class BService(
)
)
} catch (e: Throwable) {
this.logger.error("bookmarkCreateLocal: ", e)
this.logger.debug("bookmarkCreateLocal: ", e)
this.failedFuture(e)
}
}
Expand All @@ -248,7 +248,7 @@ class BService(
)
)
} catch (e: Throwable) {
this.logger.error("bookmarkCreateRemote: ", e)
this.logger.debug("bookmarkCreateRemote: ", e)
this.failedFuture(e)
}
}
Expand All @@ -272,7 +272,7 @@ class BService(
)
)
} catch (e: Throwable) {
this.logger.error("bookmarkCreate: ", e)
this.logger.debug("bookmarkCreate: ", e)
this.failedFuture(e)
}
}
Expand All @@ -294,7 +294,7 @@ class BService(
)
)
} catch (e: Throwable) {
this.logger.error("bookmarkLoad: ", e)
this.logger.debug("bookmarkLoad: ", e)
this.failedFuture(e)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ internal class BServiceOpCreateLocalBookmark(

this.bookmark
} catch (e: Exception) {
this.logger.error("error saving bookmark locally: ", e)
this.logger.debug("error saving bookmark locally: ", e)
throw e
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ internal class BServiceOpCreateRemoteBookmark(

return this.bookmark.withURI(bookmarkUri)
} catch (e: Exception) {
this.logger.error("error sending bookmark: ", e)
this.logger.debug("error sending bookmark: ", e)
throw e
}
}
Expand Down
Loading

0 comments on commit e8ee010

Please sign in to comment.