From eac0fdf3bcdc7ea745906c8d00ed0c574e59accd Mon Sep 17 00:00:00 2001 From: Richard Husted Date: Thu, 25 Jun 2026 13:00:25 -0500 Subject: [PATCH] feat(android, ios): upgrade readium, 3.5 to 3.9 for iOS, 3.1 to 3.2 for android --- ios/DecorationData.swift | 8 +++++--- react-native-readium.podspec | 8 ++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ios/DecorationData.swift b/ios/DecorationData.swift index e510b915..03eadfc5 100644 --- a/ios/DecorationData.swift +++ b/ios/DecorationData.swift @@ -36,10 +36,12 @@ struct LocatorData: Codable { // Try to create Locator.Locations from JSON, fall back to empty if it fails let locatorLocations: ReadiumShared.Locator.Locations - do { - locatorLocations = try ReadiumShared.Locator.Locations(json: locationsDict.isEmpty ? nil : locationsDict) - } catch { + if locationsDict.isEmpty { locatorLocations = ReadiumShared.Locator.Locations() + } else { + let json = JSONValue(locationsDict) + let jsonLocations = try? ReadiumShared.Locator.Locations(json: json) + locatorLocations = jsonLocations ?? ReadiumShared.Locator.Locations() } // Convert text data to Locator.Text if present diff --git a/react-native-readium.podspec b/react-native-readium.podspec index b705e12c..59613ee7 100644 --- a/react-native-readium.podspec +++ b/react-native-readium.podspec @@ -30,10 +30,10 @@ Pod::Spec.new do |s| s.swift_version = "5.0" s.module_name = "NitroReadium" - s.dependency 'ReadiumShared', '~> 3.5.0' - s.dependency 'ReadiumStreamer', '~> 3.5.0' - s.dependency 'ReadiumNavigator','~> 3.5.0' - s.dependency 'ReadiumAdapterGCDWebServer', '~> 3.5.0' + s.dependency 'ReadiumShared', '~> 3.9.0' + s.dependency 'ReadiumStreamer', '~> 3.9.0' + s.dependency 'ReadiumNavigator','~> 3.9.0' + s.dependency 'ReadiumAdapterGCDWebServer', '~> 3.9.0' s.dependency 'ReadiumInternal' # Adds React Native dependencies, framework header search paths, and