From 439f5449b493ad6c54964bc8eb169c1cf70ba953 Mon Sep 17 00:00:00 2001 From: PSPDFKit Date: Tue, 27 Feb 2024 23:45:08 +0300 Subject: [PATCH] Release 2.8.1 --- CHANGELOG.md | 9 +++++-- .../RCTConvert+PSPDFConfiguration.m | 27 ------------------- package.json | 2 +- react-native-pspdfkit.podspec | 4 +-- samples/Catalog/.tool-versions | 1 - samples/Catalog/ios/Podfile.lock | 24 ++++++++--------- samples/Catalog/package.json | 2 +- samples/Catalog/yarn.lock | 2 +- samples/NativeCatalog/ios/Podfile.lock | 24 ++++++++--------- samples/NativeCatalog/package.json | 2 +- samples/NativeCatalog/yarn.lock | 2 +- 11 files changed, 38 insertions(+), 61 deletions(-) delete mode 100644 samples/Catalog/.tool-versions diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a3f79e8..0c583149 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ ## Newest Release +### 2.8.1 - 27 Feb 2024 + +- Updates for PSPDFKit 13.3.1 for iOS. (#43565) +- Removes `scrollViewInsetAdjustment`, `spreadFitting` and `allowedMenuActions` configuration options which are deprecated in PSPDFKit for iOS. (#43565) + +## Previous Releases + ### 2.8.0 - 18 Dec 2023 - Adds TypeScript types support to PSPDFKit plugin. (#42380) @@ -13,8 +20,6 @@ - Fixes issue where onAnnotationsChanged event did not fire when a form field was updated on Android. (#42525) - Fixes issue where annotation toolbar color picker wasn't added by default. (#42761) -## Previous Releases - ### 2.7.0 - 07 Sep 2023 - Adds Annotation Preset customization. (#41528) diff --git a/ios/RCTPSPDFKit/Converters/RCTConvert+PSPDFConfiguration.m b/ios/RCTPSPDFKit/Converters/RCTConvert+PSPDFConfiguration.m index e2f2d303..6c6ac4d2 100644 --- a/ios/RCTPSPDFKit/Converters/RCTConvert+PSPDFConfiguration.m +++ b/ios/RCTPSPDFKit/Converters/RCTConvert+PSPDFConfiguration.m @@ -147,13 +147,6 @@ + (NSDictionary *)processConfigurationOptionsDictionaryForPrefix:(NSDictionary * PSPDFPageTransitionScrollPerSpread, unsignedIntegerValue) -RCT_ENUM_CONVERTER(PSPDFScrollInsetAdjustment, - (@{@"none" : @(PSPDFScrollInsetAdjustmentNone), - @"fixedElements" : @(PSPDFScrollInsetAdjustmentFixedElements), - @"allElements" : @(PSPDFScrollInsetAdjustmentAllElements)}), - PSPDFScrollInsetAdjustmentNone, - unsignedIntegerValue) - RCT_ENUM_CONVERTER(PSPDFDrawCreateMode, (@{@"separate" : @(PSPDFDrawCreateModeSeparate), @"mergeIfPossible" : @(PSPDFDrawCreateModeMergeIfPossible)}), @@ -238,16 +231,6 @@ + (NSDictionary *)processConfigurationOptionsDictionaryForPrefix:(NSDictionary * PSPDFAnnotationTypeNone, unsignedIntegerValue) -RCT_MULTI_ENUM_CONVERTER(PSPDFTextSelectionMenuAction, - (@{@"none" : @(PSPDFTextSelectionMenuActionNone), - @"search" : @(PSPDFTextSelectionMenuActionSearch), - @"define" : @(PSPDFTextSelectionMenuActionDefine), - @"wikipedia" : @(PSPDFTextSelectionMenuActionWikipedia), - @"speak" : @(PSPDFTextSelectionMenuActionSpeak), - @"all" : @(PSPDFTextSelectionMenuActionAll)}), - PSPDFTextSelectionMenuActionNone, - unsignedIntegerValue) - RCT_MULTI_ENUM_CONVERTER(PSPDFAppearanceMode, (@{@"default" : @(PSPDFAppearanceModeDefault), @"sepia" : @(PSPDFAppearanceModeSepia), @@ -268,13 +251,6 @@ + (NSDictionary *)processConfigurationOptionsDictionaryForPrefix:(NSDictionary * PSPDFSettingsOptionAll, unsignedIntegerValue) -RCT_ENUM_CONVERTER(PSPDFConfigurationSpreadFitting, - (@{@"fit" : @(PSPDFConfigurationSpreadFittingFit), - @"fill" : @(PSPDFConfigurationSpreadFittingFill), - @"adaptive" : @(PSPDFConfigurationSpreadFittingAdaptive)}), - PSPDFScrollInsetAdjustmentNone, - unsignedIntegerValue) - RCT_MULTI_ENUM_CONVERTER(PSPDFDocumentSharingFileFormatOptions, (@{@"PDF" : @(PSPDFDocumentSharingFileFormatOptionPDF), @"original": @(PSPDFDocumentSharingFileFormatOptionOriginal), @@ -317,7 +293,6 @@ - (void)setupFromJSON:(id)json { SET(scrollDirection, PSPDFScrollDirection) SET(pageTransition, PSPDFPageTransition) SET(shouldScrollToChangedPage, BOOL) - SET(scrollViewInsetAdjustment, PSPDFScrollInsetAdjustment) SET(formElementZoomEnabled, BOOL) SET_PROPERTY(enableTextSelection, textSelectionEnabled, BOOL) SET(imageSelectionEnabled, BOOL) @@ -342,7 +317,6 @@ - (void)setupFromJSON:(id)json { SET(pageMode, PSPDFPageMode) SET(firstPageAlwaysSingle, BOOL) SET(clipToPageBoundaries, BOOL) - SET(spreadFitting, PSPDFConfigurationSpreadFitting) SET(backgroundColor, UIColor) SET(renderAnimationEnabled, BOOL) SET(renderStatusViewPosition, PSPDFRenderStatusViewPosition) @@ -371,7 +345,6 @@ - (void)setupFromJSON:(id)json { SET(searchResultZoomScale, CGFloat) SET(additionalScrollViewFrameInsets, UIEdgeInsets) SET(additionalContentInsets, UIEdgeInsets) - SET(allowedMenuActions, PSPDFTextSelectionMenuAction) SET(settingsOptions, PSPDFSettingsOptions) SET(shadowEnabled, BOOL) SET(shadowOpacity, CGFloat) diff --git a/package.json b/package.json index ad15e5f1..04a761b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-pspdfkit", - "version": "2.8.0", + "version": "2.8.1", "description": "React Native PDF Library by PSPDFKit", "keywords": [ "react native", diff --git a/react-native-pspdfkit.podspec b/react-native-pspdfkit.podspec index 29bfa3cf..9832661c 100644 --- a/react-native-pspdfkit.podspec +++ b/react-native-pspdfkit.podspec @@ -20,7 +20,7 @@ Pod::Spec.new do |s| s.source = { git: "https://github.com/PSPDFKit/react-native" } s.source_files = "ios/*.{xcodeproj}", "ios/RCTPSPDFKit/*.{h,m,swift}", "ios/RCTPSPDFKit/Converters/*.{h,m,swift}" s.dependency("React") - s.dependency("PSPDFKit", "13.1.0") - s.dependency("Instant", "13.1.0") + s.dependency("PSPDFKit", "13.3.1") + s.dependency("Instant", "13.3.1") s.frameworks = "UIKit" end diff --git a/samples/Catalog/.tool-versions b/samples/Catalog/.tool-versions deleted file mode 100644 index f6efb75c..00000000 --- a/samples/Catalog/.tool-versions +++ /dev/null @@ -1 +0,0 @@ -nodejs 18.17.1 diff --git a/samples/Catalog/ios/Podfile.lock b/samples/Catalog/ios/Podfile.lock index 40e75997..e0a86821 100644 --- a/samples/Catalog/ios/Podfile.lock +++ b/samples/Catalog/ios/Podfile.lock @@ -71,12 +71,12 @@ PODS: - hermes-engine (0.73.0): - hermes-engine/Pre-built (= 0.73.0) - hermes-engine/Pre-built (0.73.0) - - Instant (13.1.0) + - Instant (13.3.1) - libevent (2.1.12) - OpenSSL-Universal (1.1.1100) - - PSPDFKit (13.1.0): - - PSPDFKit/Core (= 13.1.0) - - PSPDFKit/Core (13.1.0) + - PSPDFKit (13.3.1): + - PSPDFKit/Core (= 13.3.1) + - PSPDFKit/Core (13.3.1) - RCT-Folly (2022.05.16.00): - boost - DoubleConversion @@ -948,9 +948,9 @@ PODS: - React-Mapbuffer (0.73.0): - glog - React-debug - - react-native-pspdfkit (2.8.0): - - Instant (= 13.1.0) - - PSPDFKit (= 13.1.0) + - react-native-pspdfkit (2.8.1): + - Instant (= 13.3.1) + - PSPDFKit (= 13.3.1) - React - react-native-safe-area (0.5.1): - React @@ -1368,10 +1368,10 @@ SPEC CHECKSUMS: fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2 hermes-engine: 34304f8c6e8fa68f63a5fe29af82f227d817d7a7 - Instant: 3f30e011da0c0b2fe5f46cd6d67ef1eb84adc505 + Instant: a15ca1e24402a7e03821268b1352333fab6bbcd2 libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c - PSPDFKit: e107b219f944d3d4ec1be1fc52a67055444f1657 + PSPDFKit: 55697d64f1296860a179e1701236dd8239c366a4 RCT-Folly: 7169b2b1c44399c76a47b5deaaba715eeeb476c0 RCTRequired: 5e3631b27c08716986980ef23eed8abdee1cdcaf RCTTypeSafety: 02a64828b0b428eb4f63de1397d44fb2d0747e85 @@ -1393,7 +1393,7 @@ SPEC CHECKSUMS: React-jsinspector: 9f6fb9ed9f03a0fb961ab8dc2e0e0ee0dc729e77 React-logger: 008caec0d6a587abc1e71be21bfac5ba1662fe6a React-Mapbuffer: 58fe558faf52ecde6705376700f848d0293d1cef - react-native-pspdfkit: edf58100b9dfa4af08ab023f22a8bfa55e3c592c + react-native-pspdfkit: 7e3741c63b65af2149047e197f4b812b2ec47887 react-native-safe-area: e8230b0017d76c00de6b01e2412dcf86b127c6a3 react-native-safe-area-context: cd1169d797a2ef722a00bfc5af10748d5b6c94f9 React-nativeconfig: a063483672b8add47a4875b0281e202908ff6747 @@ -1421,8 +1421,8 @@ SPEC CHECKSUMS: RNGestureHandler: 61bfdfc05db9b79dd61f894dcd29d3dcc6db3c02 RNScreens: b582cb834dc4133307562e930e8fa914b8c04ef2 SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 - Yoga: 44003f970aa541b79dfdd59cf236fda41bd5890f + Yoga: 20d6a900dcc8d61d5e3b799bbf627cc34474a8c4 PODFILE CHECKSUM: c62711289da4cd7e2158ac353387fd0d3d211c7f -COCOAPODS: 1.14.3 +COCOAPODS: 1.12.1 diff --git a/samples/Catalog/package.json b/samples/Catalog/package.json index 2f83294f..b0b8f31a 100644 --- a/samples/Catalog/package.json +++ b/samples/Catalog/package.json @@ -1,6 +1,6 @@ { "name": "catalog", - "version": "2.8.0", + "version": "2.8.1", "private": true, "scripts": { "android": "npx react-native run-android", diff --git a/samples/Catalog/yarn.lock b/samples/Catalog/yarn.lock index a83d6538..adcaa944 100644 --- a/samples/Catalog/yarn.lock +++ b/samples/Catalog/yarn.lock @@ -6633,7 +6633,7 @@ react-native-gradle-plugin@^0.71.19: integrity sha512-1dVk9NwhoyKHCSxcrM6vY6cxmojeATsBobDicX0ZKr7DgUF2cBQRTKsimQFvzH8XhOVXyH8p4HyDSZNIFI8OlQ== "react-native-pspdfkit@file:../..": - version "2.8.0" + version "2.8.1" react-native-safe-area-context@^4.8.0: version "4.8.1" diff --git a/samples/NativeCatalog/ios/Podfile.lock b/samples/NativeCatalog/ios/Podfile.lock index 42a059c5..ed6aa20e 100644 --- a/samples/NativeCatalog/ios/Podfile.lock +++ b/samples/NativeCatalog/ios/Podfile.lock @@ -71,12 +71,12 @@ PODS: - hermes-engine (0.73.0): - hermes-engine/Pre-built (= 0.73.0) - hermes-engine/Pre-built (0.73.0) - - Instant (13.1.0) + - Instant (13.3.1) - libevent (2.1.12) - OpenSSL-Universal (1.1.1100) - - PSPDFKit (13.1.0): - - PSPDFKit/Core (= 13.1.0) - - PSPDFKit/Core (13.1.0) + - PSPDFKit (13.3.1): + - PSPDFKit/Core (= 13.3.1) + - PSPDFKit/Core (13.3.1) - RCT-Folly (2022.05.16.00): - boost - DoubleConversion @@ -948,9 +948,9 @@ PODS: - React-Mapbuffer (0.73.0): - glog - React-debug - - react-native-pspdfkit (2.7.0): - - Instant - - PSPDFKit + - react-native-pspdfkit (2.8.1): + - Instant (= 13.3.1) + - PSPDFKit (= 13.3.1) - React - react-native-safe-area (0.5.1): - React @@ -1368,10 +1368,10 @@ SPEC CHECKSUMS: fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2 hermes-engine: 34304f8c6e8fa68f63a5fe29af82f227d817d7a7 - Instant: 3f30e011da0c0b2fe5f46cd6d67ef1eb84adc505 + Instant: a15ca1e24402a7e03821268b1352333fab6bbcd2 libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c - PSPDFKit: e107b219f944d3d4ec1be1fc52a67055444f1657 + PSPDFKit: 55697d64f1296860a179e1701236dd8239c366a4 RCT-Folly: 7169b2b1c44399c76a47b5deaaba715eeeb476c0 RCTRequired: 5e3631b27c08716986980ef23eed8abdee1cdcaf RCTTypeSafety: 02a64828b0b428eb4f63de1397d44fb2d0747e85 @@ -1393,7 +1393,7 @@ SPEC CHECKSUMS: React-jsinspector: 9f6fb9ed9f03a0fb961ab8dc2e0e0ee0dc729e77 React-logger: 008caec0d6a587abc1e71be21bfac5ba1662fe6a React-Mapbuffer: 58fe558faf52ecde6705376700f848d0293d1cef - react-native-pspdfkit: 5d34d760f4c16d7b9be291348bb4ee147bd19384 + react-native-pspdfkit: 7e3741c63b65af2149047e197f4b812b2ec47887 react-native-safe-area: e8230b0017d76c00de6b01e2412dcf86b127c6a3 react-native-safe-area-context: d1c8161a1e9560f7066e8926a7d825eb57c5dab5 React-nativeconfig: a063483672b8add47a4875b0281e202908ff6747 @@ -1421,8 +1421,8 @@ SPEC CHECKSUMS: RNGestureHandler: 61bfdfc05db9b79dd61f894dcd29d3dcc6db3c02 RNScreens: b582cb834dc4133307562e930e8fa914b8c04ef2 SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 - Yoga: 44003f970aa541b79dfdd59cf236fda41bd5890f + Yoga: 20d6a900dcc8d61d5e3b799bbf627cc34474a8c4 PODFILE CHECKSUM: 292d35f4e5aa8d903425625ad1381b619edec803 -COCOAPODS: 1.14.3 +COCOAPODS: 1.12.1 diff --git a/samples/NativeCatalog/package.json b/samples/NativeCatalog/package.json index 5a4a3ce9..691370c9 100644 --- a/samples/NativeCatalog/package.json +++ b/samples/NativeCatalog/package.json @@ -1,6 +1,6 @@ { "name": "native-catalog", - "version": "2.8.0", + "version": "2.8.1", "private": true, "scripts": { "android": "react-native run-android", diff --git a/samples/NativeCatalog/yarn.lock b/samples/NativeCatalog/yarn.lock index 4340c7b6..bd6e07e9 100644 --- a/samples/NativeCatalog/yarn.lock +++ b/samples/NativeCatalog/yarn.lock @@ -6672,7 +6672,7 @@ react-native-gradle-plugin@^0.71.19: integrity sha512-1dVk9NwhoyKHCSxcrM6vY6cxmojeATsBobDicX0ZKr7DgUF2cBQRTKsimQFvzH8XhOVXyH8p4HyDSZNIFI8OlQ== "react-native-pspdfkit@file:../..": - version "2.8.0" + version "2.8.1" react-native-safe-area-context@^4.8.0: version "4.8.0"