Skip to content

Commit 191ff5d

Browse files
authored
Update for PSPDFKit 10.2 for iOS, Xcode 12.4 and React Native 0.63.4 (#387)
* Update requirements in the README * Update NativeCatalog README * Update the Catalog and NativeCatalog Xcode projects for Xcode 12.4 * Bump version to 1.30.6
1 parent b7c9af4 commit 191ff5d

File tree

10 files changed

+24
-40
lines changed

10 files changed

+24
-40
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ To make sure this is fast, please use a work email and have someone from your co
3838
#### Requirements
3939

4040
- The latest [Xcode](https://developer.apple.com/xcode/).
41-
- PSPDFKit 10.1.0 for iOS or later
42-
- react-native >= 0.63.3
43-
- CocoaPods >= 1.10.0
41+
- PSPDFKit 10.2.0 for iOS or later
42+
- react-native >= 0.63.4
43+
- CocoaPods >= 1.10.1
4444

4545
#### Getting Started
4646

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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": "1.30.5",
3+
"version": "1.30.6",
44
"description": "A React Native module for the PSPDFKit library.",
55
"keywords": [
66
"react native",

samples/Catalog/ios/Catalog.xcodeproj/project.pbxproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@
667667
isa = PBXProject;
668668
attributes = {
669669
CLASSPREFIX = RCTPSPDF;
670-
LastUpgradeCheck = 1020;
670+
LastUpgradeCheck = 1240;
671671
ORGANIZATIONNAME = "PSPDFKit GmbH";
672672
TargetAttributes = {
673673
00E356ED1AD99517003FC87E = {
@@ -1112,7 +1112,7 @@
11121112
"$(inherited)",
11131113
);
11141114
INFOPLIST_FILE = CatalogTests/Info.plist;
1115-
IPHONEOS_DEPLOYMENT_TARGET = 8.2;
1115+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
11161116
LD_RUNPATH_SEARCH_PATHS = (
11171117
"$(inherited)",
11181118
"@executable_path/Frameworks",
@@ -1130,7 +1130,7 @@
11301130
BUNDLE_LOADER = "$(TEST_HOST)";
11311131
COPY_PHASE_STRIP = NO;
11321132
INFOPLIST_FILE = CatalogTests/Info.plist;
1133-
IPHONEOS_DEPLOYMENT_TARGET = 8.2;
1133+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
11341134
LD_RUNPATH_SEARCH_PATHS = (
11351135
"$(inherited)",
11361136
"@executable_path/Frameworks",
@@ -1154,7 +1154,7 @@
11541154
);
11551155
HEADER_SEARCH_PATHS = "";
11561156
INFOPLIST_FILE = Catalog/Info.plist;
1157-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
1157+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
11581158
LD_RUNPATH_SEARCH_PATHS = (
11591159
"$(inherited)",
11601160
"@executable_path/Frameworks",
@@ -1181,7 +1181,7 @@
11811181
);
11821182
HEADER_SEARCH_PATHS = "";
11831183
INFOPLIST_FILE = Catalog/Info.plist;
1184-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
1184+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
11851185
LD_RUNPATH_SEARCH_PATHS = (
11861186
"$(inherited)",
11871187
"@executable_path/Frameworks",

samples/Catalog/ios/Catalog.xcodeproj/xcshareddata/xcschemes/Catalog.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1200"
3+
LastUpgradeVersion = "1240"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "NO"

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": "1.30.5",
3+
"version": "1.30.6",
44
"private": true,
55
"scripts": {
66
"start": "react-native start",

samples/NativeCatalog/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Native Catalog
22

3-
This second, Android only, Catalog example serves to show you how you can leverage the `PdfView` in your own view manager to provide more advanced integrations with PSPDFKit while still using react-native where possible.
3+
This second Catalog example serves to show you how you can leverage `PdfView` (Android) and `PSPDFViewController` (iOS) in your own view manager to provide more advanced integrations with PSPDFKit while still using React Native where possible.
44

55
### Running this Sample on Android
66

samples/NativeCatalog/ios/NativeCatalog.xcodeproj/project.pbxproj

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@
233233
buildPhases = (
234234
34456C36ED5A4F745E28E799 /* [CP] Check Pods Manifest.lock */,
235235
FD10A7F022414F080027D42C /* Start Packager */,
236-
3C8539E9E2E42A92B1663037 /* [CP] Prepare Artifacts */,
237236
13B07F871A680F5B00A75B9A /* Sources */,
238237
13B07F8C1A680F5B00A75B9A /* Frameworks */,
239238
13B07F8E1A680F5B00A75B9A /* Resources */,
@@ -255,7 +254,7 @@
255254
83CBB9F71A601CBA00E9B192 /* Project object */ = {
256255
isa = PBXProject;
257256
attributes = {
258-
LastUpgradeCheck = 1120;
257+
LastUpgradeCheck = 1240;
259258
ORGANIZATIONNAME = Facebook;
260259
TargetAttributes = {
261260
00E356ED1AD99517003FC87E = {
@@ -343,37 +342,22 @@
343342
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
344343
showEnvVarsInLog = 0;
345344
};
346-
3C8539E9E2E42A92B1663037 /* [CP] Prepare Artifacts */ = {
347-
isa = PBXShellScriptBuildPhase;
348-
buildActionMask = 2147483647;
349-
files = (
350-
);
351-
inputPaths = (
352-
"${PODS_ROOT}/Target Support Files/Pods-NativeCatalog/Pods-NativeCatalog-artifacts.sh",
353-
"${PODS_ROOT}/Instant/Instant.xcframework",
354-
"${PODS_ROOT}/PSPDFKit/PSPDFKit.xcframework",
355-
"${PODS_ROOT}/PSPDFKit/PSPDFKitUI.xcframework",
356-
);
357-
name = "[CP] Prepare Artifacts";
358-
outputPaths = (
359-
"${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt",
360-
);
361-
runOnlyForDeploymentPostprocessing = 0;
362-
shellPath = /bin/sh;
363-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-NativeCatalog/Pods-NativeCatalog-artifacts.sh\"\n";
364-
showEnvVarsInLog = 0;
365-
};
366345
A55FE3DA6D56DB9652C17360 /* [CP] Embed Pods Frameworks */ = {
367346
isa = PBXShellScriptBuildPhase;
368347
buildActionMask = 2147483647;
369348
files = (
370349
);
371350
inputPaths = (
372351
"${PODS_ROOT}/Target Support Files/Pods-NativeCatalog/Pods-NativeCatalog-frameworks.sh",
373-
"${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt",
352+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Instant/Instant.framework/Instant",
353+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/PSPDFKit/PSPDFKit.framework/PSPDFKit",
354+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/PSPDFKitUI/PSPDFKitUI.framework/PSPDFKitUI",
374355
);
375356
name = "[CP] Embed Pods Frameworks";
376357
outputPaths = (
358+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Instant.framework",
359+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PSPDFKit.framework",
360+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PSPDFKitUI.framework",
377361
);
378362
runOnlyForDeploymentPostprocessing = 0;
379363
shellPath = /bin/sh;
@@ -484,7 +468,7 @@
484468
"$(inherited)",
485469
);
486470
INFOPLIST_FILE = NativeCatalogTests/Info.plist;
487-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
471+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
488472
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
489473
OTHER_LDFLAGS = (
490474
"-ObjC",
@@ -505,7 +489,7 @@
505489
BUNDLE_LOADER = "$(TEST_HOST)";
506490
COPY_PHASE_STRIP = NO;
507491
INFOPLIST_FILE = NativeCatalogTests/Info.plist;
508-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
492+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
509493
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
510494
OTHER_LDFLAGS = (
511495
"-ObjC",

samples/NativeCatalog/ios/NativeCatalog.xcodeproj/xcshareddata/xcschemes/NativeCatalog.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1130"
3+
LastUpgradeVersion = "1240"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

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": "NativeCatalog",
3-
"version": "1.30.5",
3+
"version": "1.30.6",
44
"private": true,
55
"scripts": {
66
"android": "react-native run-android",

0 commit comments

Comments
 (0)