Skip to content

Commit

Permalink
Release 2.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PSPDFKit committed Feb 27, 2024
1 parent 3c6ec7b commit 439f544
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 61 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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)
Expand Down
27 changes: 0 additions & 27 deletions ios/RCTPSPDFKit/Converters/RCTConvert+PSPDFConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)}),
Expand Down Expand Up @@ -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),
Expand All @@ -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),
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions react-native-pspdfkit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion samples/Catalog/.tool-versions

This file was deleted.

24 changes: 12 additions & 12 deletions samples/Catalog/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion samples/Catalog/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "catalog",
"version": "2.8.0",
"version": "2.8.1",
"private": true,
"scripts": {
"android": "npx react-native run-android",
Expand Down
2 changes: 1 addition & 1 deletion samples/Catalog/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
24 changes: 12 additions & 12 deletions samples/NativeCatalog/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion samples/NativeCatalog/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "native-catalog",
"version": "2.8.0",
"version": "2.8.1",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand Down
2 changes: 1 addition & 1 deletion samples/NativeCatalog/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 439f544

Please sign in to comment.