-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf15ed7
commit a8e0f65
Showing
56 changed files
with
814 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
sample/SampleApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
96 changes: 96 additions & 0 deletions
96
sample/SampleApp.xcodeproj/xcshareddata/xcschemes/SampleApp.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1240" | ||
version = "1.7"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<PreActions> | ||
<ExecutionAction | ||
ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction"> | ||
<ActionContent | ||
title = "Checkout Jumio" | ||
scriptText = "${PROJECT_DIR}/jumio-sdk-checkout.sh "> | ||
<EnvironmentBuildable> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "967A1E6526988857005A1233" | ||
BuildableName = "SampleApp.app" | ||
BlueprintName = "SampleApp" | ||
ReferencedContainer = "container:SampleApp.xcodeproj"> | ||
</BuildableReference> | ||
</EnvironmentBuildable> | ||
</ActionContent> | ||
</ExecutionAction> | ||
</PreActions> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "967A1E6526988857005A1233" | ||
BuildableName = "SampleApp.app" | ||
BlueprintName = "SampleApp" | ||
ReferencedContainer = "container:SampleApp.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
</Testables> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "967A1E6526988857005A1233" | ||
BuildableName = "SampleApp.app" | ||
BlueprintName = "SampleApp" | ||
ReferencedContainer = "container:SampleApp.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "967A1E6526988857005A1233" | ||
BuildableName = "SampleApp.app" | ||
BlueprintName = "SampleApp" | ||
ReferencedContainer = "container:SampleApp.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
JUMIO_SDK_VERSION=4.0.0 | ||
DOWNLOAD_PATH=https://mobile-sdk.jumio.com/com/jumio/ios/jumio-mobile-sdk/${JUMIO_SDK_VERSION}/ios-jumio-mobile-sdk-${JUMIO_SDK_VERSION}.zip | ||
FRAMEWORK_DIR=${PROJECT_DIR}/Frameworks | ||
FRAMEWORK_ZIP=${FRAMEWORK_DIR}/frameworks.zip | ||
|
||
if [ -d ${FRAMEWORK_DIR}/Jumio+Liveness/Jumio.xcframework ]; then | ||
if grep ${JUMIO_SDK_VERSION} ${FRAMEWORK_DIR}/Jumio+Liveness/Jumio.xcframework/ios-arm64/Jumio.framework/Info.plist; then | ||
echo "Jumio frameworks already available (see ${FRAMEWORK_DIR})" | ||
exit 0 | ||
fi | ||
fi | ||
|
||
rm -rf ${FRAMEWORK_DIR} | ||
mkdir ${FRAMEWORK_DIR} | ||
curl -n --connect-timeout 5 -o ${FRAMEWORK_ZIP} --fail ${DOWNLOAD_PATH} | ||
|
||
if [ -f ${FRAMEWORK_ZIP} ]; then | ||
unzip ${FRAMEWORK_ZIP} -d ${FRAMEWORK_DIR} | ||
rm ${FRAMEWORK_ZIP} | ||
else | ||
echo "error: Unable to retrieve latest Jumio SDK ${JUMIO_SDK_VERSION} for iOS" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
echo "Target architectures: $ARCHS" | ||
|
||
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}" | ||
|
||
find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK | ||
do | ||
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable) | ||
FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME" | ||
echo "Executable is $FRAMEWORK_EXECUTABLE_PATH" | ||
echo $(lipo -info "$FRAMEWORK_EXECUTABLE_PATH") | ||
|
||
FRAMEWORK_TMP_PATH="$FRAMEWORK_EXECUTABLE_PATH-tmp" | ||
|
||
# remove simulator's archs if location is not simulator's directory | ||
case "${TARGET_BUILD_DIR}" in | ||
*"iphonesimulator") | ||
echo "No need to remove archs" | ||
;; | ||
*) | ||
if $(lipo "$FRAMEWORK_EXECUTABLE_PATH" -verify_arch "i386") ; then | ||
lipo -output "$FRAMEWORK_TMP_PATH" -remove "i386" "$FRAMEWORK_EXECUTABLE_PATH" | ||
echo "i386 architecture removed" | ||
rm "$FRAMEWORK_EXECUTABLE_PATH" | ||
mv "$FRAMEWORK_TMP_PATH" "$FRAMEWORK_EXECUTABLE_PATH" | ||
fi | ||
if $(lipo "$FRAMEWORK_EXECUTABLE_PATH" -verify_arch "x86_64") ; then | ||
lipo -output "$FRAMEWORK_TMP_PATH" -remove "x86_64" "$FRAMEWORK_EXECUTABLE_PATH" | ||
echo "x86_64 architecture removed" | ||
rm "$FRAMEWORK_EXECUTABLE_PATH" | ||
mv "$FRAMEWORK_TMP_PATH" "$FRAMEWORK_EXECUTABLE_PATH" | ||
fi | ||
;; | ||
esac | ||
|
||
echo "Completed for executable $FRAMEWORK_EXECUTABLE_PATH" | ||
echo $(lipo -info "$FRAMEWORK_EXECUTABLE_PATH") | ||
|
||
done |