Skip to content

Commit ff3133b

Browse files
authored
Merge pull request #32 from klippa-app/development
Development
2 parents f0f6bfd + 14f6033 commit ff3133b

File tree

10 files changed

+39
-11
lines changed

10 files changed

+39
-11
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.2.10
2+
3+
* Bump Android to 0.7.8
4+
* Bump iOS to 0.6.0
5+
16
## 0.2.9
27

38
* Bump Android to 0.7.7

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ android {
5353

5454
dependencies {
5555
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
56-
def klippaIdentityVerificationVersion = project.hasProperty('klippaIdentityVerificationVersion') ? project.klippaIdentityVerificationVersion : "0.7.7"
56+
def klippaIdentityVerificationVersion = project.hasProperty('klippaIdentityVerificationVersion') ? project.klippaIdentityVerificationVersion : "0.7.8"
5757
implementation "com.klippa:identity_verification:$klippaIdentityVerificationVersion"
5858
}

android/src/main/kotlin/com/klippa/identity_verification/klippa_identity_verification_sdk/KlippaIdentityVerificationSdkPlugin.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ class KlippaIdentityVerificationSdkPlugin : FlutterPlugin, MethodCallHandler, Ac
158158
}
159159

160160
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?): Boolean {
161+
if (requestCode != REQUEST_CODE) {
162+
return false
163+
}
164+
161165
val mappedResultCode = IdentitySessionResultCode.mapResultCode(resultCode)
162166
when (mappedResultCode) {
163167
IdentitySessionResultCode.FINISHED -> identityVerificationFinished()

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
2222
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
2323
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
24+
4A6948D82D018BCC00089CF0 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
2425
6D0B49640ECC799CB7C3844F /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
2526
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
2627
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
@@ -93,6 +94,7 @@
9394
97C146F01CF9000F007C117D /* Runner */ = {
9495
isa = PBXGroup;
9596
children = (
97+
4A6948D82D018BCC00089CF0 /* Runner.entitlements */,
9698
97C146FA1CF9000F007C117D /* Main.storyboard */,
9799
97C146FD1CF9000F007C117D /* Assets.xcassets */,
98100
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
@@ -369,6 +371,7 @@
369371
buildSettings = {
370372
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
371373
CLANG_ENABLE_MODULES = YES;
374+
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
372375
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
373376
DEVELOPMENT_TEAM = 7ZXKJ433J8;
374377
ENABLE_BITCODE = NO;
@@ -515,6 +518,7 @@
515518
buildSettings = {
516519
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
517520
CLANG_ENABLE_MODULES = YES;
521+
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
518522
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
519523
DEVELOPMENT_TEAM = 7ZXKJ433J8;
520524
ENABLE_BITCODE = NO;
@@ -547,6 +551,7 @@
547551
buildSettings = {
548552
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
549553
CLANG_ENABLE_MODULES = YES;
554+
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
550555
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
551556
DEVELOPMENT_TEAM = 7ZXKJ433J8;
552557
ENABLE_BITCODE = NO;

example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30-
<Testables>
31-
</Testables>
3230
<MacroExpansion>
3331
<BuildableReference
3432
BuildableIdentifier = "primary"
@@ -38,8 +36,8 @@
3836
ReferencedContainer = "container:Runner.xcodeproj">
3937
</BuildableReference>
4038
</MacroExpansion>
41-
<AdditionalOptions>
42-
</AdditionalOptions>
39+
<Testables>
40+
</Testables>
4341
</TestAction>
4442
<LaunchAction
4543
buildConfiguration = "Debug"
@@ -61,8 +59,6 @@
6159
ReferencedContainer = "container:Runner.xcodeproj">
6260
</BuildableReference>
6361
</BuildableProductRunnable>
64-
<AdditionalOptions>
65-
</AdditionalOptions>
6662
</LaunchAction>
6763
<ProfileAction
6864
buildConfiguration = "Profile"

example/ios/Runner/Info.plist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,13 @@
4949
<true/>
5050
<key>UIApplicationSupportsIndirectInputEvents</key>
5151
<true/>
52+
<key>NFCReaderUsageDescription</key>
53+
<string>This app uses NFC to scan your ID</string>
54+
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
55+
<array>
56+
<string>A0000002471001</string>
57+
<string>A0000002472001</string>
58+
<string>00000000000000</string>
59+
</array>
5260
</dict>
5361
</plist>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.developer.nfc.readersession.formats</key>
6+
<array>
7+
<string>TAG</string>
8+
</array>
9+
</dict>
10+
</plist>

ios/Classes/SwiftKlippaIdentityVerificationSdkPlugin.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,14 @@ public class SwiftKlippaIdentityVerificationSdkPlugin: NSObject, FlutterPlugin,
142142
switch error {
143143
case KlippaError.InsufficientPermissions:
144144
return "Insufficient permissions"
145+
case KlippaError.InputDeviceError:
146+
return "Invalid input device"
145147
case KlippaError.SessionToken:
146148
return "Invalid session token"
147149
case KlippaError.UserCanceled:
148150
return "User canceled session"
149151
case KlippaError.NoInternetConnection:
150152
return "No internet connection"
151-
default:
152-
return "The user canceled"
153153
}
154154
}()
155155

ios/sdk_version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.20
1+
0.6.0

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: klippa_identity_verification_sdk
22
description: Allows you to do identity verification with the Klippa Identity Verification SDK from Flutter apps.
3-
version: 0.2.9
3+
version: 0.2.10
44
homepage: https://github.com/klippa-app/flutter-klippa-identity-verification-sdk
55

66
environment:

0 commit comments

Comments
 (0)