From 5049a3224c8046606536c09cf7a9f887cdf1e0bc Mon Sep 17 00:00:00 2001 From: Shachar Udi Date: Tue, 10 Dec 2024 10:01:39 -0500 Subject: [PATCH] MOB-1417 #comment implemented generateDebugPin --- .../TsIdentityOrchestrationModule.kt | 15 + .../gradle/wrapper/gradle-wrapper.properties | 1 + example/ios/Podfile.lock | 26 +- .../project.pbxproj | 104 +- example/src/app/screens/LoginScreen.tsx | 10 + example/src/app/services/ido-service.ts | 14 +- ios/TsIdentityOrchestration.mm | 1 + ios/TsIdentityOrchestration.swift | 16 + src/index.tsx | 15 + yarn.lock | 3229 ++++++++--------- 10 files changed, 1731 insertions(+), 1700 deletions(-) diff --git a/android/src/main/java/com/tsidentityorchestration/TsIdentityOrchestrationModule.kt b/android/src/main/java/com/tsidentityorchestration/TsIdentityOrchestrationModule.kt index 022d8df..33f49a2 100644 --- a/android/src/main/java/com/tsidentityorchestration/TsIdentityOrchestrationModule.kt +++ b/android/src/main/java/com/tsidentityorchestration/TsIdentityOrchestrationModule.kt @@ -107,6 +107,21 @@ class TsIdentityOrchestrationModule(private val reactContext: ReactApplicationCo promise.resolve(true) } + @ReactMethod + fun generateDebugPin(promise: Promise) { + TSIdo.generateDebugPin(object : TSIdoCallback { + override fun idoSuccess(result: String) { + promise.resolve(result) + } + + override fun idoError(error: TSIdoSdkError) { + promise.reject("Error during generateDebugPin", error.toString()) + } + }) + } + + // region Private Methods + private fun readableMapToNativeMap(readableMap: ReadableMap?): Map? { if (readableMap == null) { return null diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index 798186e..43279da 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -6,3 +6,4 @@ networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists +org.gradle.jvmargs=-Xmx4096m diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index c2d8a9f..d3a4355 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -7,8 +7,8 @@ PODS: - hermes-engine (0.74.0): - hermes-engine/Pre-built (= 0.74.0) - hermes-engine/Pre-built (0.74.0) - - IdentityOrchestration (1.1.3): - - TSCoreSDK (~> 1.0.21) + - IdentityOrchestration (1.1.10): + - TSCoreSDK (~> 1.0.25) - RCT-Folly (2024.01.01.00): - boost - DoubleConversion @@ -937,13 +937,13 @@ PODS: - React-Mapbuffer (0.74.0): - glog - React-debug - - react-native-safe-area-context (4.10.1): + - react-native-safe-area-context (4.14.0): - React-Core - - react-native-ts-identity-orchestration (0.1.2): + - react-native-ts-identity-orchestration (0.1.3): - DoubleConversion - glog - hermes-engine - - IdentityOrchestration (~> 1.1.3) + - IdentityOrchestration (~> 1.1.10) - RCT-Folly (= 2024.01.01.00) - RCTRequired - RCTTypeSafety @@ -1189,7 +1189,7 @@ PODS: - React-logger (= 0.74.0) - React-perflogger (= 0.74.0) - React-utils (= 0.74.0) - - RNGestureHandler (2.16.2): + - RNGestureHandler (2.21.2): - DoubleConversion - glog - hermes-engine @@ -1211,7 +1211,7 @@ PODS: - ReactCommon/turbomodule/core - Yoga - SocketRocket (0.7.0) - - TSCoreSDK (1.0.21) + - TSCoreSDK (1.0.25) - Yoga (0.0.0) DEPENDENCIES: @@ -1405,7 +1405,7 @@ SPEC CHECKSUMS: fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120 glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2 hermes-engine: 6eae7edb2f563ee41d7c1f91f4f2e57c26d8a5c3 - IdentityOrchestration: 75ca0cece800f69a8b1a46428e1abe3d70053b9f + IdentityOrchestration: 7726478e7074269bf878706d152c54ea28f761a5 RCT-Folly: 045d6ecaa59d826c5736dfba0b2f4083ff8d79df RCTDeprecation: 3ca8b6c36bfb302e1895b72cfe7db0de0c92cd47 RCTRequired: 9fc183af555fd0c89a366c34c1ae70b7e03b1dc5 @@ -1430,8 +1430,8 @@ SPEC CHECKSUMS: React-jsitracing: 36a2bbc272300313653d980de5ab700ec86c534a React-logger: 03f2f7b955cfe24593a2b8c9705c23e142d1ad24 React-Mapbuffer: 5e05d78fe6505f4a054b86f415733d4ad02dd314 - react-native-safe-area-context: dcab599c527c2d7de2d76507a523d20a0b83823d - react-native-ts-identity-orchestration: c6cee38cb54f6c3ab41c6c5d7eab692ffd185c51 + react-native-safe-area-context: 4532f1a0c5d34a46b9324ccaaedcb5582a302b7d + react-native-ts-identity-orchestration: 67e40e45d58b3d10724da8b9aa2dae64587a5df8 React-nativeconfig: 951ec32f632e81cbd7d40aebb3211313251c092e React-NativeModulesApple: 0b3a42ca90069119ef79d8b2327d01441d71abd4 React-perflogger: 271f1111779fef70f9502d1d38da5132e5585230 @@ -1455,11 +1455,11 @@ SPEC CHECKSUMS: React-runtimescheduler: 7fe561d179b97cecd0c2bec0bbd08f9fd8581c26 React-utils: f013537c3371270d2095bff1d594d00d4bc9261b ReactCommon: 2cde697fd80bd31da1d6448d25a5803088585219 - RNGestureHandler: 2282cfbcf86c360d29f44ace393203afd5c6cff7 + RNGestureHandler: 6fee3422fd8c81c5ee756fa72e3d1780e9943d9d SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d - TSCoreSDK: e30a537480334e5b9971f955ec3d3cdaa334f0a4 + TSCoreSDK: 990252f585af4d3cc75431edbb462b163b68fe63 Yoga: 56f906bf6c11c931588191dde1229fd3e4e3d557 PODFILE CHECKSUM: f777f0c5807a83892cf2097336bfdabd48dde969 -COCOAPODS: 1.14.2 +COCOAPODS: 1.15.2 diff --git a/example/ios/TsIdentityOrchestrationExample.xcodeproj/project.pbxproj b/example/ios/TsIdentityOrchestrationExample.xcodeproj/project.pbxproj index 4534b62..45f99e2 100644 --- a/example/ios/TsIdentityOrchestrationExample.xcodeproj/project.pbxproj +++ b/example/ios/TsIdentityOrchestrationExample.xcodeproj/project.pbxproj @@ -8,13 +8,13 @@ /* Begin PBXBuildFile section */ 00E356F31AD99517003FC87E /* TsIdentityOrchestrationExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* TsIdentityOrchestrationExampleTests.m */; }; - 0C80B921A6F3F58F76C31292 /* libPods-TsIdentityOrchestrationExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-TsIdentityOrchestrationExample.a */; }; 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 652197D02BECE31500D93FEC /* TransmitSecurity.plist in Resources */ = {isa = PBXBuildFile; fileRef = 652197CE2BECE12400D93FEC /* TransmitSecurity.plist */; }; - 7699B88040F8A987B510C191 /* libPods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.a */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; + B17512F4F055596927F8E6B9 /* libPods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C338560FEC0AA10E38F6D614 /* libPods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.a */; }; + CDD7F90BE702653B32A3F5DA /* libPods-TsIdentityOrchestrationExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DFF8C2591D44B2CF831475FC /* libPods-TsIdentityOrchestrationExample.a */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -31,6 +31,7 @@ 00E356EE1AD99517003FC87E /* TsIdentityOrchestrationExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TsIdentityOrchestrationExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 00E356F21AD99517003FC87E /* TsIdentityOrchestrationExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TsIdentityOrchestrationExampleTests.m; sourceTree = ""; }; + 0A206497025CCE9368C41701 /* Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.debug.xcconfig"; sourceTree = ""; }; 13B07F961A680F5B00A75B9A /* TsIdentityOrchestrationExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TsIdentityOrchestrationExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = TsIdentityOrchestrationExample/AppDelegate.h; sourceTree = ""; }; 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = TsIdentityOrchestrationExample/AppDelegate.mm; sourceTree = ""; }; @@ -38,14 +39,13 @@ 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = TsIdentityOrchestrationExample/Info.plist; sourceTree = ""; }; 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = TsIdentityOrchestrationExample/main.m; sourceTree = ""; }; 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = PrivacyInfo.xcprivacy; path = TsIdentityOrchestrationExample/PrivacyInfo.xcprivacy; sourceTree = ""; }; - 19F6CBCC0A4E27FBF8BF4A61 /* libPods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 3B4392A12AC88292D35C810B /* Pods-TsIdentityOrchestrationExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TsIdentityOrchestrationExample.debug.xcconfig"; path = "Target Support Files/Pods-TsIdentityOrchestrationExample/Pods-TsIdentityOrchestrationExample.debug.xcconfig"; sourceTree = ""; }; - 5709B34CF0A7D63546082F79 /* Pods-TsIdentityOrchestrationExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TsIdentityOrchestrationExample.release.xcconfig"; path = "Target Support Files/Pods-TsIdentityOrchestrationExample/Pods-TsIdentityOrchestrationExample.release.xcconfig"; sourceTree = ""; }; - 5B7EB9410499542E8C5724F5 /* Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.debug.xcconfig"; sourceTree = ""; }; - 5DCACB8F33CDC322A6C60F78 /* libPods-TsIdentityOrchestrationExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-TsIdentityOrchestrationExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 3EF03B94A74C5B4B8D939792 /* Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.release.xcconfig"; path = "Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.release.xcconfig"; sourceTree = ""; }; 652197CE2BECE12400D93FEC /* TransmitSecurity.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = TransmitSecurity.plist; sourceTree = ""; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = TsIdentityOrchestrationExample/LaunchScreen.storyboard; sourceTree = ""; }; - 89C6BE57DB24E9ADA2F236DE /* Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.release.xcconfig"; path = "Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.release.xcconfig"; sourceTree = ""; }; + AE15106E8AC628A6DCE0136E /* Pods-TsIdentityOrchestrationExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TsIdentityOrchestrationExample.debug.xcconfig"; path = "Target Support Files/Pods-TsIdentityOrchestrationExample/Pods-TsIdentityOrchestrationExample.debug.xcconfig"; sourceTree = ""; }; + C338560FEC0AA10E38F6D614 /* libPods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + DAEC91D2FD41DC93DD21EE66 /* Pods-TsIdentityOrchestrationExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TsIdentityOrchestrationExample.release.xcconfig"; path = "Target Support Files/Pods-TsIdentityOrchestrationExample/Pods-TsIdentityOrchestrationExample.release.xcconfig"; sourceTree = ""; }; + DFF8C2591D44B2CF831475FC /* libPods-TsIdentityOrchestrationExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-TsIdentityOrchestrationExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; /* End PBXFileReference section */ @@ -54,7 +54,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 7699B88040F8A987B510C191 /* libPods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.a in Frameworks */, + B17512F4F055596927F8E6B9 /* libPods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -62,7 +62,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 0C80B921A6F3F58F76C31292 /* libPods-TsIdentityOrchestrationExample.a in Frameworks */, + CDD7F90BE702653B32A3F5DA /* libPods-TsIdentityOrchestrationExample.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -105,8 +105,8 @@ isa = PBXGroup; children = ( ED297162215061F000B7C4FE /* JavaScriptCore.framework */, - 5DCACB8F33CDC322A6C60F78 /* libPods-TsIdentityOrchestrationExample.a */, - 19F6CBCC0A4E27FBF8BF4A61 /* libPods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.a */, + DFF8C2591D44B2CF831475FC /* libPods-TsIdentityOrchestrationExample.a */, + C338560FEC0AA10E38F6D614 /* libPods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.a */, ); name = Frameworks; sourceTree = ""; @@ -145,10 +145,10 @@ BBD78D7AC51CEA395F1C20DB /* Pods */ = { isa = PBXGroup; children = ( - 3B4392A12AC88292D35C810B /* Pods-TsIdentityOrchestrationExample.debug.xcconfig */, - 5709B34CF0A7D63546082F79 /* Pods-TsIdentityOrchestrationExample.release.xcconfig */, - 5B7EB9410499542E8C5724F5 /* Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.debug.xcconfig */, - 89C6BE57DB24E9ADA2F236DE /* Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.release.xcconfig */, + AE15106E8AC628A6DCE0136E /* Pods-TsIdentityOrchestrationExample.debug.xcconfig */, + DAEC91D2FD41DC93DD21EE66 /* Pods-TsIdentityOrchestrationExample.release.xcconfig */, + 0A206497025CCE9368C41701 /* Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.debug.xcconfig */, + 3EF03B94A74C5B4B8D939792 /* Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.release.xcconfig */, ); path = Pods; sourceTree = ""; @@ -160,12 +160,12 @@ isa = PBXNativeTarget; buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "TsIdentityOrchestrationExampleTests" */; buildPhases = ( - A55EABD7B0C7F3A422A6CC61 /* [CP] Check Pods Manifest.lock */, + 9846AAE3EE802B53F63B8590 /* [CP] Check Pods Manifest.lock */, 00E356EA1AD99517003FC87E /* Sources */, 00E356EB1AD99517003FC87E /* Frameworks */, 00E356EC1AD99517003FC87E /* Resources */, - C59DA0FBD6956966B86A3779 /* [CP] Embed Pods Frameworks */, - F6A41C54EA430FDDC6A6ED99 /* [CP] Copy Pods Resources */, + F206B3548A2A48AD57AB6AEC /* [CP] Embed Pods Frameworks */, + EE70C5D01BFDE871837717D7 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -181,13 +181,13 @@ isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "TsIdentityOrchestrationExample" */; buildPhases = ( - C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */, + 89CD184E22B3293449A5B97B /* [CP] Check Pods Manifest.lock */, 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, - 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */, - E235C05ADACE081382539298 /* [CP] Copy Pods Resources */, + 4D08356D135842C4A6DB34E3 /* [CP] Embed Pods Frameworks */, + 7CE05CEF46FE797C3A56C81C /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -271,7 +271,7 @@ shellPath = /bin/sh; shellScript = "set -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; }; - 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = { + 4D08356D135842C4A6DB34E3 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -288,29 +288,24 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample/Pods-TsIdentityOrchestrationExample-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - A55EABD7B0C7F3A422A6CC61 /* [CP] Check Pods Manifest.lock */ = { + 7CE05CEF46FE797C3A56C81C /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample/Pods-TsIdentityOrchestrationExample-resources-${CONFIGURATION}-input-files.xcfilelist", ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; + name = "[CP] Copy Pods Resources"; outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests-checkManifestLockResult.txt", + "${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample/Pods-TsIdentityOrchestrationExample-resources-${CONFIGURATION}-output-files.xcfilelist", ); 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-TsIdentityOrchestrationExample/Pods-TsIdentityOrchestrationExample-resources.sh\"\n"; showEnvVarsInLog = 0; }; - C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */ = { + 89CD184E22B3293449A5B97B /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -332,55 +327,60 @@ 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; }; - C59DA0FBD6956966B86A3779 /* [CP] Embed Pods Frameworks */ = { + 9846AAE3EE802B53F63B8590 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); - name = "[CP] Embed Pods Frameworks"; + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests-frameworks.sh\"\n"; + 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; }; - E235C05ADACE081382539298 /* [CP] Copy Pods Resources */ = { + EE70C5D01BFDE871837717D7 /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample/Pods-TsIdentityOrchestrationExample-resources-${CONFIGURATION}-input-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests-resources-${CONFIGURATION}-input-files.xcfilelist", ); name = "[CP] Copy Pods Resources"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample/Pods-TsIdentityOrchestrationExample-resources-${CONFIGURATION}-output-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests-resources-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample/Pods-TsIdentityOrchestrationExample-resources.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests-resources.sh\"\n"; showEnvVarsInLog = 0; }; - F6A41C54EA430FDDC6A6ED99 /* [CP] Copy Pods Resources */ = { + F206B3548A2A48AD57AB6AEC /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests-resources-${CONFIGURATION}-input-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); - name = "[CP] Copy Pods Resources"; + name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests-resources-${CONFIGURATION}-output-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests-resources.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests/Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; /* End PBXShellScriptBuildPhase section */ @@ -416,7 +416,7 @@ /* Begin XCBuildConfiguration section */ 00E356F61AD99517003FC87E /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 5B7EB9410499542E8C5724F5 /* Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.debug.xcconfig */; + baseConfigurationReference = 0A206497025CCE9368C41701 /* Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.debug.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; GCC_PREPROCESSOR_DEFINITIONS = ( @@ -443,7 +443,7 @@ }; 00E356F71AD99517003FC87E /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 89C6BE57DB24E9ADA2F236DE /* Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.release.xcconfig */; + baseConfigurationReference = 3EF03B94A74C5B4B8D939792 /* Pods-TsIdentityOrchestrationExample-TsIdentityOrchestrationExampleTests.release.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; COPY_PHASE_STRIP = NO; @@ -467,7 +467,7 @@ }; 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 3B4392A12AC88292D35C810B /* Pods-TsIdentityOrchestrationExample.debug.xcconfig */; + baseConfigurationReference = AE15106E8AC628A6DCE0136E /* Pods-TsIdentityOrchestrationExample.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; @@ -496,7 +496,7 @@ }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 5709B34CF0A7D63546082F79 /* Pods-TsIdentityOrchestrationExample.release.xcconfig */; + baseConfigurationReference = DAEC91D2FD41DC93DD21EE66 /* Pods-TsIdentityOrchestrationExample.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; diff --git a/example/src/app/screens/LoginScreen.tsx b/example/src/app/screens/LoginScreen.tsx index fd9f30f..9beea84 100644 --- a/example/src/app/screens/LoginScreen.tsx +++ b/example/src/app/screens/LoginScreen.tsx @@ -52,6 +52,15 @@ class LoginScreen extends React.Component { console.error('Error during journey', results); } + private handleGenerateDebugPin = async () => { + const debugPin = await idoService.generateDebugPin(); + if (debugPin) { + Alert.alert('Debug PIN', debugPin); + } else { + Alert.alert('Error', 'Error generating debug pin'); + } + } + render() { return ( @@ -63,6 +72,7 @@ class LoginScreen extends React.Component { onChangeText={this.handleUsernameChange} />