Skip to content

Commit

Permalink
Final commit for 3.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JumioMobileTeam committed Mar 17, 2021
1 parent f356025 commit 126f302
Show file tree
Hide file tree
Showing 15 changed files with 16,678 additions and 22,643 deletions.
11 changes: 7 additions & 4 deletions DemoApp/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# DemoApp for React Native

## Usage
Adjust your credentials in **index.js** file, open a bash and run the following commands

Adjust your credentials in **index.js**, open a bash and run the following commands

### Both
Required to retrieve all dependencies that are required by this demo app:
Expand All @@ -10,14 +11,15 @@ npm install
```

### iOS

```
cd ios
pod install
cd ..
react-native run-ios
```

Jumio SDK dependencies added in version 3.8.0 made it necessary to add the following pre-install hook to the Podfile:
Becaues of Jumio SDK dependencies added in version 3.8.0, a post install hook was added in the Podfile.
```
dynamic_frameworks = ['Socket.IO-Client-Swift', 'Starscream', 'iProov']
Expand All @@ -35,9 +37,9 @@ pre_install do |installer|
end
end
```
This was added because iProov dependencies __SocketIO__ and __Starscream__ need to be build as dynamic frameworks while React Native are supported only as static libraries. This pre-install hook ensures that the pods added as `dynamic_frameworks` are built as dynamic frameworks, while the other pods are built as static libraries.
This was added because the depencencies of iProov: SocketIO and Starscream need to be build as dynamic frameworks while React Native are supported only as static libraries. This pre install hook, ensures that the pod added in `dynamic_frameworks` are build as dynamic frameworks, while the other pods are build as static libraries.

One additional post-install hook needs to be added to the Podfile so that the dependencies are build for distribution:
One additional post install hook needs to be added to the Podfile so that the dependencies are build for distribution
```
post_install do |installer|
installer.pods_project.targets.each do |target|
Expand All @@ -49,6 +51,7 @@ end
```

### Android

```
npm run android-windows
// or
Expand Down
1 change: 1 addition & 0 deletions DemoApp/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
android.enableJetifier=true
android.useAndroidX=true
android.useDeprecatedNdk=true
android.jetifier.blacklist=bcprov-jdk15on
3 changes: 0 additions & 3 deletions DemoApp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ const startNetverify = () => {
//watchlistSearchProfile: "YOURPROFILENAME"
});

// Android only
//JumioMobileSDKNetverify.enableEMRTD();

JumioMobileSDKNetverify.startNetverify();
};

Expand Down
98 changes: 61 additions & 37 deletions DemoApp/ios/DemoApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
objects = {

/* Begin PBXBuildFile section */
0B224509113C5CFF37E306DE /* Pods_DemoApp.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F2501043ACBE73F865D6A0E7 /* Pods_DemoApp.framework */; };
13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
23D7F81EAC112128CFC78BE0 /* Pods_DemoApp.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 097DB924E834F0DD2B1D7C08 /* Pods_DemoApp.framework */; };
76A9FCE325AC61AA006D0C6D /* File.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76A9FCE225AC61AA006D0C6D /* File.swift */; };
96673C9922662D4200EE3C95 /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96673C6B22662D4200EE3C95 /* JavaScriptCore.framework */; };
/* End PBXBuildFile section */
Expand Down Expand Up @@ -285,7 +285,8 @@
00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = "<group>"; };
00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = "<group>"; };
00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = "<group>"; };
097DB924E834F0DD2B1D7C08 /* Pods_DemoApp.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_DemoApp.framework; sourceTree = BUILT_PRODUCTS_DIR; };
016079F2E804D6C2ADDBB6A7 /* Pods-DemoApp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DemoApp.release.xcconfig"; path = "Target Support Files/Pods-DemoApp/Pods-DemoApp.release.xcconfig"; sourceTree = "<group>"; };
0B04A6162BFB94B1ADB012BD /* Pods-DemoApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DemoApp.debug.xcconfig"; path = "Target Support Files/Pods-DemoApp/Pods-DemoApp.debug.xcconfig"; sourceTree = "<group>"; };
139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = "<group>"; };
139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = "<group>"; };
13B07F961A680F5B00A75B9A /* DemoApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DemoApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand All @@ -303,9 +304,8 @@
78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = "<group>"; };
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = "<group>"; };
96673C6B22662D4200EE3C95 /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
AAA0AFEE17514565D7769F8E /* Pods-DemoApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DemoApp.debug.xcconfig"; path = "Pods/Target Support Files/Pods-DemoApp/Pods-DemoApp.debug.xcconfig"; sourceTree = "<group>"; };
ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = "<group>"; };
E9B5940AE874425A0D02A1FB /* Pods-DemoApp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DemoApp.release.xcconfig"; path = "Pods/Target Support Files/Pods-DemoApp/Pods-DemoApp.release.xcconfig"; sourceTree = "<group>"; };
F2501043ACBE73F865D6A0E7 /* Pods_DemoApp.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_DemoApp.framework; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -314,7 +314,7 @@
buildActionMask = 2147483647;
files = (
96673C9922662D4200EE3C95 /* JavaScriptCore.framework in Frameworks */,
23D7F81EAC112128CFC78BE0 /* Pods_DemoApp.framework in Frameworks */,
0B224509113C5CFF37E306DE /* Pods_DemoApp.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -367,7 +367,7 @@
isa = PBXGroup;
children = (
96673C6B22662D4200EE3C95 /* JavaScriptCore.framework */,
097DB924E834F0DD2B1D7C08 /* Pods_DemoApp.framework */,
F2501043ACBE73F865D6A0E7 /* Pods_DemoApp.framework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down Expand Up @@ -483,9 +483,9 @@
13B07FAE1A68108700A75B9A /* DemoApp */,
832341AE1AAA6A7D00B99B32 /* Libraries */,
83CBBA001A601CBA00E9B192 /* Products */,
9B8CF5E62609CE1F07808039 /* Pods */,
0976E2600E74B5C26861E76B /* Frameworks */,
76A9FCE125AC61A9006D0C6D /* DemoApp-Bridging-Header.h */,
EF966B9335F86099E11C9777 /* Pods */,
);
indentWidth = 2;
sourceTree = "<group>";
Expand All @@ -500,22 +500,23 @@
name = Products;
sourceTree = "<group>";
};
9B8CF5E62609CE1F07808039 /* Pods */ = {
ADBDB9201DFEBF0600ED6528 /* Products */ = {
isa = PBXGroup;
children = (
AAA0AFEE17514565D7769F8E /* Pods-DemoApp.debug.xcconfig */,
E9B5940AE874425A0D02A1FB /* Pods-DemoApp.release.xcconfig */,
ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */,
54B07384203DC7CC00E7C643 /* libRCTBlob-tvOS.a */,
);
name = Pods;
name = Products;
sourceTree = "<group>";
};
ADBDB9201DFEBF0600ED6528 /* Products */ = {
EF966B9335F86099E11C9777 /* Pods */ = {
isa = PBXGroup;
children = (
ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */,
54B07384203DC7CC00E7C643 /* libRCTBlob-tvOS.a */,
0B04A6162BFB94B1ADB012BD /* Pods-DemoApp.debug.xcconfig */,
016079F2E804D6C2ADDBB6A7 /* Pods-DemoApp.release.xcconfig */,
);
name = Products;
name = Pods;
path = Pods;
sourceTree = "<group>";
};
/* End PBXGroup section */
Expand All @@ -525,12 +526,13 @@
isa = PBXNativeTarget;
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "DemoApp" */;
buildPhases = (
B74DA3C783A9348EEF2F21F1 /* [CP] Check Pods Manifest.lock */,
84A223FF8340CA3FA285A37C /* [CP] Check Pods Manifest.lock */,
13B07F871A680F5B00A75B9A /* Sources */,
13B07F8C1A680F5B00A75B9A /* Frameworks */,
13B07F8E1A680F5B00A75B9A /* Resources */,
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
023F63DA8EE58FFB99AB1A2B /* [CP] Embed Pods Frameworks */,
857FA575F836D6DE40E6237B /* [CP] Embed Pods Frameworks */,
AA5AF2D348FD9543DA1DB31B /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -914,23 +916,45 @@
shellPath = /bin/sh;
shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n";
};
023F63DA8EE58FFB99AB1A2B /* [CP] Embed Pods Frameworks */ = {
84A223FF8340CA3FA285A37C /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-DemoApp-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
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";
showEnvVarsInLog = 0;
};
857FA575F836D6DE40E6237B /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-DemoApp/Pods-DemoApp-frameworks.sh",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.8.0/JumioCore.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.8.0/BAMCheckout.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.8.0/Netverify.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.8.0/MicroBlink.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.8.0/NetverifyBarcode.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.8.0/NetverifyFace.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.8.0/ZoomAuthentication.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.8.0/DocumentVerification.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.8.0/JumioNFC.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.8.0/JumioIProov.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.9.0/JumioCore.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.9.0/BAMCheckout.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.9.0/Netverify.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.9.0/Microblink.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.9.0/NetverifyBarcode.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.9.0/NetverifyFace.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.9.0/ZoomAuthentication.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.9.0/DocumentVerification.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.9.0/JumioNFC.framework",
"${PODS_ROOT}/JumioMobileSDK/JumioMobileSDK-3.9.0/JumioIProov.framework",
"${BUILT_PRODUCTS_DIR}/Socket.IO-Client-Swift/SocketIO.framework",
"${BUILT_PRODUCTS_DIR}/Starscream/Starscream.framework",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/iProov/iProov.framework/iProov",
Expand All @@ -940,7 +964,7 @@
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/JumioCore.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BAMCheckout.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Netverify.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MicroBlink.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Microblink.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/NetverifyBarcode.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/NetverifyFace.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ZoomAuthentication.framework",
Expand All @@ -956,22 +980,22 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-DemoApp/Pods-DemoApp-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
B74DA3C783A9348EEF2F21F1 /* [CP] Check Pods Manifest.lock */ = {
AA5AF2D348FD9543DA1DB31B /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
"${PODS_ROOT}/Target Support Files/Pods-DemoApp/Pods-DemoApp-resources.sh",
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
);
name = "[CP] Check Pods Manifest.lock";
name = "[CP] Copy Pods Resources";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-DemoApp-checkManifestLockResult.txt",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
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";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-DemoApp/Pods-DemoApp-resources.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
Expand Down Expand Up @@ -1004,7 +1028,7 @@
/* Begin XCBuildConfiguration section */
13B07F941A680F5B00A75B9A /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = AAA0AFEE17514565D7769F8E /* Pods-DemoApp.debug.xcconfig */;
baseConfigurationReference = 0B04A6162BFB94B1ADB012BD /* Pods-DemoApp.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = DemoApp/DemoApp.entitlements;
Expand All @@ -1030,7 +1054,7 @@
};
13B07F951A680F5B00A75B9A /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = E9B5940AE874425A0D02A1FB /* Pods-DemoApp.release.xcconfig */;
baseConfigurationReference = 016079F2E804D6C2ADDBB6A7 /* Pods-DemoApp.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = DemoApp/DemoApp.entitlements;
Expand Down
2 changes: 1 addition & 1 deletion DemoApp/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def pods()
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon"
pod 'React-callinvoker', :path => "../node_modules/react-native/ReactCommon/callinvoker"
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
Expand Down
Loading

0 comments on commit 126f302

Please sign in to comment.