Skip to content

Commit bfb5c01

Browse files
Switch to SDK v7.0.0 - New IPS flow + rework activation
1 parent 021c4de commit bfb5c01

23 files changed

+380
-621
lines changed

Diff for: README.md

+24-22
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,46 @@ To get this sample running, please follow the instructions :
1212

1313
2. To be able to fetch IDCheckIOSDK, you need to have a .netrc file with your credentials given by our team to let Cocoapods authenticate through our Nexus repository.
1414
Just create a .netrc file in the root directory of your user and add the following lines :
15-
```
16-
machine repoman.rennes.ariadnext.com
17-
login YOUR_LOGIN
18-
password YOUR_PASSWORD
19-
```
2015

21-
3. Open your terminal and execute the following commands in order to install dependencies:
22-
```
23-
$ cd idcheckio-sdk-sample-ios
24-
$ pod install
25-
```
16+
```
17+
machine repoman.rennes.ariadnext.com
18+
login YOUR_LOGIN
19+
password YOUR_PASSWORD
20+
```
2621

27-
⚠️ Cocoapods v1.10 is needed.
28-
> More information at https://cocoapods.org/
22+
3. Open your terminal and execute the following commands in order to install dependencies:
2923

24+
```shell
25+
$ cd idcheckio-sdk-sample-ios
26+
$ pod install --repo-update
27+
```
3028

31-
4. Add your SDK's licence
29+
⚠️ **Cocoapods v1.10 is needed** > More information at https://cocoapods.org/
3230

33-
To be able to use the sample, please :
31+
4. Add your SDK's token
32+
With your application bundle identifier, ask the [Customer Success Managers](mailto:[email protected]) to create an `idToken` to activate the SDK. You can then integrate it in your project using the **Token.swift** file or your own file or variable:
3433

35-
- Add your license file in the `idcheckio-sdk-sample-ios` folder of this project.
36-
- _(same directory as the `idcheckio-sdk-sample-ios.xcworkspace` and the `Podfile`)_
37-
- Name it "**licence.axt**".
34+
```swift
35+
import Foundation
3836

39-
> 💡   Do not forget to **edit the sample's app bundle identifier to match the one configured for your license**, otherwise the SDK will throw an invaid license error.
37+
public enum Token: String {
38+
case demo = "YOUR_ID_TOKEN"
39+
}
40+
```
4041

4142
5. Run the project
4243

4344
You are now good to go !
4445

4546
## Sample application
46-
47+
4748
This sample project aims to showcase all possibilities of the **IDCheck.io Mobile SDK** and the associated best practices regarding these features. It also helps you understand how you can easily integrate the SDK, activate it and customise/adapt it to your application and business needs.
48-
49+
4950
The main screen displays a sliding tile to choose between four distinct capture flows :
51+
5052
- **Online flow** : this flow uses the SDK for capturing an ID document first, and then continues with a Biometric Liveness session capture. It shows what you need to do in order to chain multiple online captures and keep transferring the *OnlineContext* through all these captures.
5153
- **Simple capture** : this flow has a specific selector to show you how to setup the SDK in order to capture a specific document (from ID to address proof, or even selfie).
52-
- **Advanced capture** : this flow is identical to the *Simple capture* regarding the SDK configuration, but it shows you how you can register your application as a listener to every SDK Interaction and display your own UI over the SDK. This way, yous can easily "override" the SDK while capturing a document and show your own designed screens and messages to the user.
54+
- **IPS session** : Specific capture session that will handle ID + Biometric Liveness capture in the most secure way (PVID certified).
5355
- **Analyze** : this flow uses the `Idcheckio.analyze` API which is useful when you don't want to use the camera feed for live-capturing and analyzing a document, but instead use a static image provided by the user from his phone's gallery.
54-
56+
5557
Select the flow you want to try, and click on *Give it a try* button to start capturing documents with the SDK.

Diff for: idcheckio-sdk-sample-ios/Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem 'cocoapods', '~> 1.10'

Diff for: idcheckio-sdk-sample-ios/Gemfile.lock

+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.3)
5+
activesupport (5.2.4.4)
6+
concurrent-ruby (~> 1.0, >= 1.0.2)
7+
i18n (>= 0.7, < 2)
8+
minitest (~> 5.1)
9+
tzinfo (~> 1.1)
10+
addressable (2.7.0)
11+
public_suffix (>= 2.0.2, < 5.0)
12+
algoliasearch (1.27.5)
13+
httpclient (~> 2.8, >= 2.8.3)
14+
json (>= 1.5.1)
15+
atomos (0.1.3)
16+
claide (1.0.3)
17+
cocoapods (1.10.1)
18+
addressable (~> 2.6)
19+
claide (>= 1.0.2, < 2.0)
20+
cocoapods-core (= 1.10.1)
21+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
22+
cocoapods-downloader (>= 1.4.0, < 2.0)
23+
cocoapods-plugins (>= 1.0.0, < 2.0)
24+
cocoapods-search (>= 1.0.0, < 2.0)
25+
cocoapods-trunk (>= 1.4.0, < 2.0)
26+
cocoapods-try (>= 1.1.0, < 2.0)
27+
colored2 (~> 3.1)
28+
escape (~> 0.0.4)
29+
fourflusher (>= 2.3.0, < 3.0)
30+
gh_inspector (~> 1.0)
31+
molinillo (~> 0.6.6)
32+
nap (~> 1.0)
33+
ruby-macho (~> 1.4)
34+
xcodeproj (>= 1.19.0, < 2.0)
35+
cocoapods-core (1.10.1)
36+
activesupport (> 5.0, < 6)
37+
addressable (~> 2.6)
38+
algoliasearch (~> 1.0)
39+
concurrent-ruby (~> 1.1)
40+
fuzzy_match (~> 2.0.4)
41+
nap (~> 1.0)
42+
netrc (~> 0.11)
43+
public_suffix
44+
typhoeus (~> 1.0)
45+
cocoapods-deintegrate (1.0.4)
46+
cocoapods-downloader (1.4.0)
47+
cocoapods-plugins (1.0.0)
48+
nap
49+
cocoapods-search (1.0.0)
50+
cocoapods-trunk (1.5.0)
51+
nap (>= 0.8, < 2.0)
52+
netrc (~> 0.11)
53+
cocoapods-try (1.2.0)
54+
colored2 (3.1.2)
55+
concurrent-ruby (1.1.8)
56+
escape (0.0.4)
57+
ethon (0.12.0)
58+
ffi (>= 1.3.0)
59+
ffi (1.14.2)
60+
fourflusher (2.3.1)
61+
fuzzy_match (2.0.4)
62+
gh_inspector (1.1.3)
63+
httpclient (2.8.3)
64+
i18n (1.8.7)
65+
concurrent-ruby (~> 1.0)
66+
json (2.5.1)
67+
minitest (5.14.3)
68+
molinillo (0.6.6)
69+
nanaimo (0.3.0)
70+
nap (1.1.0)
71+
netrc (0.11.0)
72+
public_suffix (4.0.6)
73+
ruby-macho (1.4.0)
74+
thread_safe (0.3.6)
75+
typhoeus (1.4.0)
76+
ethon (>= 0.9.0)
77+
tzinfo (1.2.9)
78+
thread_safe (~> 0.1)
79+
xcodeproj (1.19.0)
80+
CFPropertyList (>= 2.3.3, < 4.0)
81+
atomos (~> 0.1.3)
82+
claide (>= 1.0.2, < 2.0)
83+
colored2 (~> 3.1)
84+
nanaimo (~> 0.3.0)
85+
86+
PLATFORMS
87+
ruby
88+
x86_64-darwin-20
89+
90+
DEPENDENCIES
91+
cocoapods (~> 1.10)
92+
93+
BUNDLED WITH
94+
2.2.6

Diff for: idcheckio-sdk-sample-ios/Podfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ target 'idcheckio-sdk-sample-ios' do
88
use_frameworks!
99
platform :ios, '12.0'
1010
# Pods for idcheckio-sdk-sample-ios
11-
pod 'IDCheckIOSDK', '6.1.0'
11+
pod 'IDCheckIOSDK', '7.0.0'
1212

1313
end

Diff for: idcheckio-sdk-sample-ios/Podfile.lock

+5-14
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
PODS:
2-
- IDCheckIOSDK (6.0.0):
3-
- Starscream (~> 4.0.4)
4-
- SwiftProtobuf (~> 1.6.0)
5-
- Starscream (4.0.4)
6-
- SwiftProtobuf (1.6.0)
2+
- IDCheckIOSDK (7.0.0)
73

84
DEPENDENCIES:
9-
- IDCheckIOSDK (= 6.0.0)
5+
- IDCheckIOSDK (= 7.0.0)
106

117
SPEC REPOS:
128
https://git-externe.rennes.ariadnext.com/idcheckio/axt-podspecs.git:
139
- IDCheckIOSDK
14-
https://github.com/CocoaPods/Specs.git:
15-
- Starscream
16-
- SwiftProtobuf
1710

1811
SPEC CHECKSUMS:
19-
IDCheckIOSDK: 57feccf02a2fba4290480c5cd76280d4a1eb64b1
20-
Starscream: 5178aed56b316f13fa3bc55694e583d35dd414d9
21-
SwiftProtobuf: e905ca1366405696411aaf174411c4b19c0ef73d
12+
IDCheckIOSDK: 7e4279e0e41f0e1a54a95f9b6ac70c9e1277adc2
2213

23-
PODFILE CHECKSUM: 5d0764523ecae94df62bc34b4e56edfe28befd4e
14+
PODFILE CHECKSUM: 9201d6543a7f39c36e278560c1318dfc11109afe
2415

25-
COCOAPODS: 1.10.1
16+
COCOAPODS: 1.11.3

Diff for: idcheckio-sdk-sample-ios/idcheckio-sdk-sample-ios.xcodeproj/project.pbxproj

+12-12
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
/* Begin PBXBuildFile section */
1010
7C23A43726AAFEAB00FFA724 /* ExternalAccessory.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7C23A43626AAFEAB00FFA724 /* ExternalAccessory.framework */; };
1111
7CB20C1A269835D400AD4B7A /* SDKConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CB20C19269835D400AD4B7A /* SDKConfig.swift */; };
12+
A833763628FDA72C00722F0F /* IpsSessionCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = A833763528FDA72C00722F0F /* IpsSessionCoordinator.swift */; };
13+
A833763828FDA73300722F0F /* IpsFlowViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A833763728FDA73300722F0F /* IpsFlowViewController.swift */; };
14+
A899911928FDA5B80019EC7A /* Token.swift in Sources */ = {isa = PBXBuildFile; fileRef = A899911828FDA5B80019EC7A /* Token.swift */; };
1215
B603EDD825F76CE200E2CE7A /* OnlineFlowCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = B603EDD725F76CE200E2CE7A /* OnlineFlowCoordinator.swift */; };
1316
B603EDDB25F775DB00E2CE7A /* OnlineFlowViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B603EDDA25F775DB00E2CE7A /* OnlineFlowViewController.swift */; };
1417
B60857BE25C07F6300AABCBB /* Coordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = B60857BD25C07F6300AABCBB /* Coordinator.swift */; };
@@ -17,14 +20,11 @@
1720
B611BED125E4126900F0A145 /* DisplayInfoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B611BED025E4126900F0A145 /* DisplayInfoViewController.swift */; };
1821
B611BEEB25E41B7800F0A145 /* DisplayInfoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B611BEEA25E41B7800F0A145 /* DisplayInfoView.swift */; };
1922
B611BEEE25E41BA500F0A145 /* DisplayInfoView.xib in Resources */ = {isa = PBXBuildFile; fileRef = B611BEED25E41BA500F0A145 /* DisplayInfoView.xib */; };
20-
B62269DE25D19B4C00BAD6E1 /* AdvancedCaptureCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62269DD25D19B4C00BAD6E1 /* AdvancedCaptureCoordinator.swift */; };
21-
B62269E225D19C2600BAD6E1 /* AdvancedSessionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62269E125D19C2600BAD6E1 /* AdvancedSessionViewController.swift */; };
2223
B674365225ECE2DA00F817CF /* ResultViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B674365125ECE2DA00F817CF /* ResultViewController.swift */; };
2324
B674366425ECF4FF00F817CF /* UIStackView+Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = B674366325ECF4FF00F817CF /* UIStackView+Utils.swift */; };
2425
B6750FC025F135DB0011A536 /* AnalyzeManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6750FBF25F135DB0011A536 /* AnalyzeManager.swift */; };
2526
B6C9D72B25BF08FC0060B0DE /* SDKScenario.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6C9D72A25BF08FC0060B0DE /* SDKScenario.swift */; };
2627
B6D37A5C25C1C85100D012C8 /* SimpleCaptureCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6D37A5B25C1C85100D012C8 /* SimpleCaptureCoordinator.swift */; };
27-
B6D37C5E25C2F51000D012C8 /* licence.axt in Resources */ = {isa = PBXBuildFile; fileRef = B6D37C5D25C2F51000D012C8 /* licence.axt */; };
2828
B6D8222825BB1B7500FFF853 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6D8222725BB1B7500FFF853 /* AppDelegate.swift */; };
2929
B6D8222F25BB1B7500FFF853 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B6D8222D25BB1B7500FFF853 /* Main.storyboard */; };
3030
B6D8223125BB1B7700FFF853 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B6D8223025BB1B7700FFF853 /* Assets.xcassets */; };
@@ -40,6 +40,9 @@
4040
7C23A43526AAFEAB00FFA724 /* idcheckio-sdk-sample-ios.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "idcheckio-sdk-sample-ios.entitlements"; sourceTree = "<group>"; };
4141
7C23A43626AAFEAB00FFA724 /* ExternalAccessory.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ExternalAccessory.framework; path = System/Library/Frameworks/ExternalAccessory.framework; sourceTree = SDKROOT; };
4242
7CB20C19269835D400AD4B7A /* SDKConfig.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SDKConfig.swift; sourceTree = "<group>"; };
43+
A833763528FDA72C00722F0F /* IpsSessionCoordinator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IpsSessionCoordinator.swift; sourceTree = "<group>"; };
44+
A833763728FDA73300722F0F /* IpsFlowViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IpsFlowViewController.swift; sourceTree = "<group>"; };
45+
A899911828FDA5B80019EC7A /* Token.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Token.swift; sourceTree = "<group>"; };
4346
B603EDD725F76CE200E2CE7A /* OnlineFlowCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnlineFlowCoordinator.swift; sourceTree = "<group>"; };
4447
B603EDDA25F775DB00E2CE7A /* OnlineFlowViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnlineFlowViewController.swift; sourceTree = "<group>"; };
4548
B60857BD25C07F6300AABCBB /* Coordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Coordinator.swift; sourceTree = "<group>"; };
@@ -48,14 +51,11 @@
4851
B611BED025E4126900F0A145 /* DisplayInfoViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DisplayInfoViewController.swift; sourceTree = "<group>"; };
4952
B611BEEA25E41B7800F0A145 /* DisplayInfoView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DisplayInfoView.swift; sourceTree = "<group>"; };
5053
B611BEED25E41BA500F0A145 /* DisplayInfoView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DisplayInfoView.xib; sourceTree = "<group>"; };
51-
B62269DD25D19B4C00BAD6E1 /* AdvancedCaptureCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdvancedCaptureCoordinator.swift; sourceTree = "<group>"; };
52-
B62269E125D19C2600BAD6E1 /* AdvancedSessionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdvancedSessionViewController.swift; sourceTree = "<group>"; };
5354
B674365125ECE2DA00F817CF /* ResultViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResultViewController.swift; sourceTree = "<group>"; };
5455
B674366325ECF4FF00F817CF /* UIStackView+Utils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIStackView+Utils.swift"; sourceTree = "<group>"; };
5556
B6750FBF25F135DB0011A536 /* AnalyzeManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnalyzeManager.swift; sourceTree = "<group>"; };
5657
B6C9D72A25BF08FC0060B0DE /* SDKScenario.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SDKScenario.swift; sourceTree = "<group>"; };
5758
B6D37A5B25C1C85100D012C8 /* SimpleCaptureCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SimpleCaptureCoordinator.swift; sourceTree = "<group>"; };
58-
B6D37C5D25C2F51000D012C8 /* licence.axt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = licence.axt; sourceTree = "<group>"; };
5959
B6D8222425BB1B7500FFF853 /* idcheckio-sdk-sample-ios.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "idcheckio-sdk-sample-ios.app"; sourceTree = BUILT_PRODUCTS_DIR; };
6060
B6D8222725BB1B7500FFF853 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
6161
B6D8222E25BB1B7500FFF853 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
@@ -92,11 +92,11 @@
9292
B60857BC25C07E1600AABCBB /* Coordinator */ = {
9393
isa = PBXGroup;
9494
children = (
95+
A833763528FDA72C00722F0F /* IpsSessionCoordinator.swift */,
9596
B60857BD25C07F6300AABCBB /* Coordinator.swift */,
9697
B60857C025C07FAE00AABCBB /* MainCoordinator.swift */,
9798
B60857C525C086C100AABCBB /* ScenariosCoordinator.swift */,
9899
B6D37A5B25C1C85100D012C8 /* SimpleCaptureCoordinator.swift */,
99-
B62269DD25D19B4C00BAD6E1 /* AdvancedCaptureCoordinator.swift */,
100100
B603EDD725F76CE200E2CE7A /* OnlineFlowCoordinator.swift */,
101101
);
102102
path = Coordinator;
@@ -105,7 +105,7 @@
105105
B62269E025D19C0600BAD6E1 /* Sessions */ = {
106106
isa = PBXGroup;
107107
children = (
108-
B62269E125D19C2600BAD6E1 /* AdvancedSessionViewController.swift */,
108+
A833763728FDA73300722F0F /* IpsFlowViewController.swift */,
109109
B611BED025E4126900F0A145 /* DisplayInfoViewController.swift */,
110110
B603EDDA25F775DB00E2CE7A /* OnlineFlowViewController.swift */,
111111
);
@@ -141,7 +141,6 @@
141141
B6D8221B25BB1B7500FFF853 = {
142142
isa = PBXGroup;
143143
children = (
144-
B6D37C5D25C2F51000D012C8 /* licence.axt */,
145144
B6D8222625BB1B7500FFF853 /* idcheckio-sdk-sample-ios */,
146145
B6D8222525BB1B7500FFF853 /* Products */,
147146
E3BA822A37F50014A0CF68DF /* Pods */,
@@ -173,6 +172,7 @@
173172
B6D8223525BB1B7700FFF853 /* Info.plist */,
174173
B6C9D72A25BF08FC0060B0DE /* SDKScenario.swift */,
175174
7CB20C19269835D400AD4B7A /* SDKConfig.swift */,
175+
A899911828FDA5B80019EC7A /* Token.swift */,
176176
);
177177
path = "idcheckio-sdk-sample-ios";
178178
sourceTree = "<group>";
@@ -259,7 +259,6 @@
259259
B6D8223425BB1B7700FFF853 /* LaunchScreen.storyboard in Resources */,
260260
B6D8223125BB1B7700FFF853 /* Assets.xcassets in Resources */,
261261
B6D8222F25BB1B7500FFF853 /* Main.storyboard in Resources */,
262-
B6D37C5E25C2F51000D012C8 /* licence.axt in Resources */,
263262
);
264263
runOnlyForDeploymentPostprocessing = 0;
265264
};
@@ -314,7 +313,6 @@
314313
files = (
315314
B603EDDB25F775DB00E2CE7A /* OnlineFlowViewController.swift in Sources */,
316315
B674365225ECE2DA00F817CF /* ResultViewController.swift in Sources */,
317-
B62269DE25D19B4C00BAD6E1 /* AdvancedCaptureCoordinator.swift in Sources */,
318316
B611BEEB25E41B7800F0A145 /* DisplayInfoView.swift in Sources */,
319317
B611BED125E4126900F0A145 /* DisplayInfoViewController.swift in Sources */,
320318
B6D8222825BB1B7500FFF853 /* AppDelegate.swift in Sources */,
@@ -323,12 +321,14 @@
323321
B603EDD825F76CE200E2CE7A /* OnlineFlowCoordinator.swift in Sources */,
324322
B674366425ECF4FF00F817CF /* UIStackView+Utils.swift in Sources */,
325323
B60857C625C086C100AABCBB /* ScenariosCoordinator.swift in Sources */,
324+
A833763628FDA72C00722F0F /* IpsSessionCoordinator.swift in Sources */,
326325
B60857C125C07FAE00AABCBB /* MainCoordinator.swift in Sources */,
327326
B6D37A5C25C1C85100D012C8 /* SimpleCaptureCoordinator.swift in Sources */,
327+
A833763828FDA73300722F0F /* IpsFlowViewController.swift in Sources */,
328328
B6C9D72B25BF08FC0060B0DE /* SDKScenario.swift in Sources */,
329329
7CB20C1A269835D400AD4B7A /* SDKConfig.swift in Sources */,
330+
A899911928FDA5B80019EC7A /* Token.swift in Sources */,
330331
B60857BE25C07F6300AABCBB /* Coordinator.swift in Sources */,
331-
B62269E225D19C2600BAD6E1 /* AdvancedSessionViewController.swift in Sources */,
332332
B6750FC025F135DB0011A536 /* AnalyzeManager.swift in Sources */,
333333
);
334334
runOnlyForDeploymentPostprocessing = 0;

Diff for: idcheckio-sdk-sample-ios/idcheckio-sdk-sample-ios/Analyze/AnalyzeManager.swift

+2-6
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class AnalyzeManager {
1414

1515
func start(images: (UIImage, UIImage?), completion: ((Result<IdcheckioResult?, Error>) -> ())?) {
1616
self.finishCompletion = completion
17-
//Activate the SDK with your licence file provided by ARIADNEXT
18-
Idcheckio.shared.activate(withLicenseFilename: "licence.axt", extractData: true, sdkEnvironment: .demo) { (error) in
17+
// Activate the SDK with your token provided by ARIADNEXT
18+
Idcheckio.shared.activate(withToken: Token.demo.rawValue, extractData: true) { error in
1919
if let activationError = error {
2020
self.finishCompletion?(.failure(activationError))
2121
return
@@ -43,8 +43,4 @@ extension AnalyzeManager: IdcheckioDelegate {
4343
}
4444
finishCompletion?(.success(result))
4545
}
46-
47-
func idcheckioDidSendEvent(interaction: IdcheckioInteraction, msg: IdcheckioMsg?) {
48-
// Not used here.
49-
}
5046
}

0 commit comments

Comments
 (0)