Skip to content

Commit 439f544

Browse files
author
PSPDFKit
committed
Release 2.8.1
1 parent 3c6ec7b commit 439f544

File tree

11 files changed

+38
-61
lines changed

11 files changed

+38
-61
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
## Newest Release
22

3+
### 2.8.1 - 27 Feb 2024
4+
5+
- Updates for PSPDFKit 13.3.1 for iOS. (#43565)
6+
- Removes `scrollViewInsetAdjustment`, `spreadFitting` and `allowedMenuActions` configuration options which are deprecated in PSPDFKit for iOS. (#43565)
7+
8+
## Previous Releases
9+
310
### 2.8.0 - 18 Dec 2023
411

512
- Adds TypeScript types support to PSPDFKit plugin. (#42380)
@@ -13,8 +20,6 @@
1320
- Fixes issue where onAnnotationsChanged event did not fire when a form field was updated on Android. (#42525)
1421
- Fixes issue where annotation toolbar color picker wasn't added by default. (#42761)
1522

16-
## Previous Releases
17-
1823
### 2.7.0 - 07 Sep 2023
1924

2025
- Adds Annotation Preset customization. (#41528)

ios/RCTPSPDFKit/Converters/RCTConvert+PSPDFConfiguration.m

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,6 @@ + (NSDictionary *)processConfigurationOptionsDictionaryForPrefix:(NSDictionary *
147147
PSPDFPageTransitionScrollPerSpread,
148148
unsignedIntegerValue)
149149

150-
RCT_ENUM_CONVERTER(PSPDFScrollInsetAdjustment,
151-
(@{@"none" : @(PSPDFScrollInsetAdjustmentNone),
152-
@"fixedElements" : @(PSPDFScrollInsetAdjustmentFixedElements),
153-
@"allElements" : @(PSPDFScrollInsetAdjustmentAllElements)}),
154-
PSPDFScrollInsetAdjustmentNone,
155-
unsignedIntegerValue)
156-
157150
RCT_ENUM_CONVERTER(PSPDFDrawCreateMode,
158151
(@{@"separate" : @(PSPDFDrawCreateModeSeparate),
159152
@"mergeIfPossible" : @(PSPDFDrawCreateModeMergeIfPossible)}),
@@ -238,16 +231,6 @@ + (NSDictionary *)processConfigurationOptionsDictionaryForPrefix:(NSDictionary *
238231
PSPDFAnnotationTypeNone,
239232
unsignedIntegerValue)
240233

241-
RCT_MULTI_ENUM_CONVERTER(PSPDFTextSelectionMenuAction,
242-
(@{@"none" : @(PSPDFTextSelectionMenuActionNone),
243-
@"search" : @(PSPDFTextSelectionMenuActionSearch),
244-
@"define" : @(PSPDFTextSelectionMenuActionDefine),
245-
@"wikipedia" : @(PSPDFTextSelectionMenuActionWikipedia),
246-
@"speak" : @(PSPDFTextSelectionMenuActionSpeak),
247-
@"all" : @(PSPDFTextSelectionMenuActionAll)}),
248-
PSPDFTextSelectionMenuActionNone,
249-
unsignedIntegerValue)
250-
251234
RCT_MULTI_ENUM_CONVERTER(PSPDFAppearanceMode,
252235
(@{@"default" : @(PSPDFAppearanceModeDefault),
253236
@"sepia" : @(PSPDFAppearanceModeSepia),
@@ -268,13 +251,6 @@ + (NSDictionary *)processConfigurationOptionsDictionaryForPrefix:(NSDictionary *
268251
PSPDFSettingsOptionAll,
269252
unsignedIntegerValue)
270253

271-
RCT_ENUM_CONVERTER(PSPDFConfigurationSpreadFitting,
272-
(@{@"fit" : @(PSPDFConfigurationSpreadFittingFit),
273-
@"fill" : @(PSPDFConfigurationSpreadFittingFill),
274-
@"adaptive" : @(PSPDFConfigurationSpreadFittingAdaptive)}),
275-
PSPDFScrollInsetAdjustmentNone,
276-
unsignedIntegerValue)
277-
278254
RCT_MULTI_ENUM_CONVERTER(PSPDFDocumentSharingFileFormatOptions,
279255
(@{@"PDF" : @(PSPDFDocumentSharingFileFormatOptionPDF),
280256
@"original": @(PSPDFDocumentSharingFileFormatOptionOriginal),
@@ -317,7 +293,6 @@ - (void)setupFromJSON:(id)json {
317293
SET(scrollDirection, PSPDFScrollDirection)
318294
SET(pageTransition, PSPDFPageTransition)
319295
SET(shouldScrollToChangedPage, BOOL)
320-
SET(scrollViewInsetAdjustment, PSPDFScrollInsetAdjustment)
321296
SET(formElementZoomEnabled, BOOL)
322297
SET_PROPERTY(enableTextSelection, textSelectionEnabled, BOOL)
323298
SET(imageSelectionEnabled, BOOL)
@@ -342,7 +317,6 @@ - (void)setupFromJSON:(id)json {
342317
SET(pageMode, PSPDFPageMode)
343318
SET(firstPageAlwaysSingle, BOOL)
344319
SET(clipToPageBoundaries, BOOL)
345-
SET(spreadFitting, PSPDFConfigurationSpreadFitting)
346320
SET(backgroundColor, UIColor)
347321
SET(renderAnimationEnabled, BOOL)
348322
SET(renderStatusViewPosition, PSPDFRenderStatusViewPosition)
@@ -371,7 +345,6 @@ - (void)setupFromJSON:(id)json {
371345
SET(searchResultZoomScale, CGFloat)
372346
SET(additionalScrollViewFrameInsets, UIEdgeInsets)
373347
SET(additionalContentInsets, UIEdgeInsets)
374-
SET(allowedMenuActions, PSPDFTextSelectionMenuAction)
375348
SET(settingsOptions, PSPDFSettingsOptions)
376349
SET(shadowEnabled, BOOL)
377350
SET(shadowOpacity, CGFloat)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-pspdfkit",
3-
"version": "2.8.0",
3+
"version": "2.8.1",
44
"description": "React Native PDF Library by PSPDFKit",
55
"keywords": [
66
"react native",

react-native-pspdfkit.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Pod::Spec.new do |s|
2020
s.source = { git: "https://github.com/PSPDFKit/react-native" }
2121
s.source_files = "ios/*.{xcodeproj}", "ios/RCTPSPDFKit/*.{h,m,swift}", "ios/RCTPSPDFKit/Converters/*.{h,m,swift}"
2222
s.dependency("React")
23-
s.dependency("PSPDFKit", "13.1.0")
24-
s.dependency("Instant", "13.1.0")
23+
s.dependency("PSPDFKit", "13.3.1")
24+
s.dependency("Instant", "13.3.1")
2525
s.frameworks = "UIKit"
2626
end

samples/Catalog/.tool-versions

Lines changed: 0 additions & 1 deletion
This file was deleted.

samples/Catalog/ios/Podfile.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ PODS:
7171
- hermes-engine (0.73.0):
7272
- hermes-engine/Pre-built (= 0.73.0)
7373
- hermes-engine/Pre-built (0.73.0)
74-
- Instant (13.1.0)
74+
- Instant (13.3.1)
7575
- libevent (2.1.12)
7676
- OpenSSL-Universal (1.1.1100)
77-
- PSPDFKit (13.1.0):
78-
- PSPDFKit/Core (= 13.1.0)
79-
- PSPDFKit/Core (13.1.0)
77+
- PSPDFKit (13.3.1):
78+
- PSPDFKit/Core (= 13.3.1)
79+
- PSPDFKit/Core (13.3.1)
8080
- RCT-Folly (2022.05.16.00):
8181
- boost
8282
- DoubleConversion
@@ -948,9 +948,9 @@ PODS:
948948
- React-Mapbuffer (0.73.0):
949949
- glog
950950
- React-debug
951-
- react-native-pspdfkit (2.8.0):
952-
- Instant (= 13.1.0)
953-
- PSPDFKit (= 13.1.0)
951+
- react-native-pspdfkit (2.8.1):
952+
- Instant (= 13.3.1)
953+
- PSPDFKit (= 13.3.1)
954954
- React
955955
- react-native-safe-area (0.5.1):
956956
- React
@@ -1368,10 +1368,10 @@ SPEC CHECKSUMS:
13681368
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
13691369
glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2
13701370
hermes-engine: 34304f8c6e8fa68f63a5fe29af82f227d817d7a7
1371-
Instant: 3f30e011da0c0b2fe5f46cd6d67ef1eb84adc505
1371+
Instant: a15ca1e24402a7e03821268b1352333fab6bbcd2
13721372
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
13731373
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
1374-
PSPDFKit: e107b219f944d3d4ec1be1fc52a67055444f1657
1374+
PSPDFKit: 55697d64f1296860a179e1701236dd8239c366a4
13751375
RCT-Folly: 7169b2b1c44399c76a47b5deaaba715eeeb476c0
13761376
RCTRequired: 5e3631b27c08716986980ef23eed8abdee1cdcaf
13771377
RCTTypeSafety: 02a64828b0b428eb4f63de1397d44fb2d0747e85
@@ -1393,7 +1393,7 @@ SPEC CHECKSUMS:
13931393
React-jsinspector: 9f6fb9ed9f03a0fb961ab8dc2e0e0ee0dc729e77
13941394
React-logger: 008caec0d6a587abc1e71be21bfac5ba1662fe6a
13951395
React-Mapbuffer: 58fe558faf52ecde6705376700f848d0293d1cef
1396-
react-native-pspdfkit: edf58100b9dfa4af08ab023f22a8bfa55e3c592c
1396+
react-native-pspdfkit: 7e3741c63b65af2149047e197f4b812b2ec47887
13971397
react-native-safe-area: e8230b0017d76c00de6b01e2412dcf86b127c6a3
13981398
react-native-safe-area-context: cd1169d797a2ef722a00bfc5af10748d5b6c94f9
13991399
React-nativeconfig: a063483672b8add47a4875b0281e202908ff6747
@@ -1421,8 +1421,8 @@ SPEC CHECKSUMS:
14211421
RNGestureHandler: 61bfdfc05db9b79dd61f894dcd29d3dcc6db3c02
14221422
RNScreens: b582cb834dc4133307562e930e8fa914b8c04ef2
14231423
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
1424-
Yoga: 44003f970aa541b79dfdd59cf236fda41bd5890f
1424+
Yoga: 20d6a900dcc8d61d5e3b799bbf627cc34474a8c4
14251425

14261426
PODFILE CHECKSUM: c62711289da4cd7e2158ac353387fd0d3d211c7f
14271427

1428-
COCOAPODS: 1.14.3
1428+
COCOAPODS: 1.12.1

samples/Catalog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "catalog",
3-
"version": "2.8.0",
3+
"version": "2.8.1",
44
"private": true,
55
"scripts": {
66
"android": "npx react-native run-android",

samples/Catalog/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6633,7 +6633,7 @@ react-native-gradle-plugin@^0.71.19:
66336633
integrity sha512-1dVk9NwhoyKHCSxcrM6vY6cxmojeATsBobDicX0ZKr7DgUF2cBQRTKsimQFvzH8XhOVXyH8p4HyDSZNIFI8OlQ==
66346634

66356635
"react-native-pspdfkit@file:../..":
6636-
version "2.8.0"
6636+
version "2.8.1"
66376637

66386638
react-native-safe-area-context@^4.8.0:
66396639
version "4.8.1"

samples/NativeCatalog/ios/Podfile.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ PODS:
7171
- hermes-engine (0.73.0):
7272
- hermes-engine/Pre-built (= 0.73.0)
7373
- hermes-engine/Pre-built (0.73.0)
74-
- Instant (13.1.0)
74+
- Instant (13.3.1)
7575
- libevent (2.1.12)
7676
- OpenSSL-Universal (1.1.1100)
77-
- PSPDFKit (13.1.0):
78-
- PSPDFKit/Core (= 13.1.0)
79-
- PSPDFKit/Core (13.1.0)
77+
- PSPDFKit (13.3.1):
78+
- PSPDFKit/Core (= 13.3.1)
79+
- PSPDFKit/Core (13.3.1)
8080
- RCT-Folly (2022.05.16.00):
8181
- boost
8282
- DoubleConversion
@@ -948,9 +948,9 @@ PODS:
948948
- React-Mapbuffer (0.73.0):
949949
- glog
950950
- React-debug
951-
- react-native-pspdfkit (2.7.0):
952-
- Instant
953-
- PSPDFKit
951+
- react-native-pspdfkit (2.8.1):
952+
- Instant (= 13.3.1)
953+
- PSPDFKit (= 13.3.1)
954954
- React
955955
- react-native-safe-area (0.5.1):
956956
- React
@@ -1368,10 +1368,10 @@ SPEC CHECKSUMS:
13681368
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
13691369
glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2
13701370
hermes-engine: 34304f8c6e8fa68f63a5fe29af82f227d817d7a7
1371-
Instant: 3f30e011da0c0b2fe5f46cd6d67ef1eb84adc505
1371+
Instant: a15ca1e24402a7e03821268b1352333fab6bbcd2
13721372
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
13731373
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
1374-
PSPDFKit: e107b219f944d3d4ec1be1fc52a67055444f1657
1374+
PSPDFKit: 55697d64f1296860a179e1701236dd8239c366a4
13751375
RCT-Folly: 7169b2b1c44399c76a47b5deaaba715eeeb476c0
13761376
RCTRequired: 5e3631b27c08716986980ef23eed8abdee1cdcaf
13771377
RCTTypeSafety: 02a64828b0b428eb4f63de1397d44fb2d0747e85
@@ -1393,7 +1393,7 @@ SPEC CHECKSUMS:
13931393
React-jsinspector: 9f6fb9ed9f03a0fb961ab8dc2e0e0ee0dc729e77
13941394
React-logger: 008caec0d6a587abc1e71be21bfac5ba1662fe6a
13951395
React-Mapbuffer: 58fe558faf52ecde6705376700f848d0293d1cef
1396-
react-native-pspdfkit: 5d34d760f4c16d7b9be291348bb4ee147bd19384
1396+
react-native-pspdfkit: 7e3741c63b65af2149047e197f4b812b2ec47887
13971397
react-native-safe-area: e8230b0017d76c00de6b01e2412dcf86b127c6a3
13981398
react-native-safe-area-context: d1c8161a1e9560f7066e8926a7d825eb57c5dab5
13991399
React-nativeconfig: a063483672b8add47a4875b0281e202908ff6747
@@ -1421,8 +1421,8 @@ SPEC CHECKSUMS:
14211421
RNGestureHandler: 61bfdfc05db9b79dd61f894dcd29d3dcc6db3c02
14221422
RNScreens: b582cb834dc4133307562e930e8fa914b8c04ef2
14231423
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
1424-
Yoga: 44003f970aa541b79dfdd59cf236fda41bd5890f
1424+
Yoga: 20d6a900dcc8d61d5e3b799bbf627cc34474a8c4
14251425

14261426
PODFILE CHECKSUM: 292d35f4e5aa8d903425625ad1381b619edec803
14271427

1428-
COCOAPODS: 1.14.3
1428+
COCOAPODS: 1.12.1

samples/NativeCatalog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "native-catalog",
3-
"version": "2.8.0",
3+
"version": "2.8.1",
44
"private": true,
55
"scripts": {
66
"android": "react-native run-android",

0 commit comments

Comments
 (0)