Skip to content

Commit affb076

Browse files
Update IDCheck.io SDK version to 7.1.0
1 parent f9842aa commit affb076

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

ReactIdcheckioClient/ios/ReactIdcheckioClient/Info.plist

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
2727
<key>NFCReaderUsageDescription</key>
28-
<string>We need Near Field Communication permission in order to scan your document's chip</string>
28+
<string>We need Near Field Communication permission in order to scan your document&apos;s chip</string>
2929
<key>NSAppTransportSecurity</key>
3030
<dict>
3131
<key>NSExceptionDomains</key>
@@ -55,5 +55,11 @@
5555
</array>
5656
<key>UIViewControllerBasedStatusBarAppearance</key>
5757
<false/>
58+
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
59+
<array>
60+
<string>A0000002471001</string>
61+
<string>A0000002472001</string>
62+
<string>00000000000000</string>
63+
</array>
5864
</dict>
5965
</plist>

react-idcheckio/ReactIdcheckio.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "ReactIdcheckio"
3-
s.version = "7.0.1"
3+
s.version = "7.1.0"
44
s.summary = "React Native plugin for IDCheck.io Mobile SDK for iOS"
55
s.homepage = "https://www.github.com//react-idcheckio"
66
s.license = { :type => "ISC" }
@@ -11,5 +11,5 @@ Pod::Spec.new do |s|
1111
s.swift_version = '5.5'
1212

1313
s.dependency 'React'
14-
s.dependency 'IDCheckIOSDK', '~> 7.0.1'
14+
s.dependency 'IDCheckIOSDK', '~> 7.1.0'
1515
end

react-idcheckio/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ repositories {
4545

4646
dependencies {
4747
implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}"
48-
implementation('com.ariadnext.android.idcheckio:sdk:7.0.1@aar') {
48+
implementation('com.ariadnext.android.idcheckio:sdk:7.1.0@aar') {
4949
transitive = true
5050
}
5151
}

react-idcheckio/android/src/main/java/com/ariadnext/idcheckio/IdcheckioActivity.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import androidx.annotation.NonNull;
1212
import androidx.fragment.app.FragmentActivity;
1313
import com.ariadnext.idcheckio.sdk.bean.DayNightTheme;
14-
import com.ariadnext.idcheckio.sdk.bean.DisplayMode;
1514
import com.ariadnext.idcheckio.sdk.bean.IpsCustomization;
1615
import com.ariadnext.idcheckio.sdk.bean.OnlineContext;
1716
import com.ariadnext.idcheckio.sdk.bean.Orientation;
@@ -60,9 +59,7 @@ protected void onCreate(@androidx.annotation.Nullable Bundle savedInstanceState)
6059
R.color.idcheckio_sdk_primary_color,
6160
// If you let the title and text color null, it will automatically switch between white and black depending on the background it is on.
6261
null,
63-
null,
64-
// The display mode will be removed in a future update
65-
DisplayMode.DEFAULT
62+
null
6663
);
6764
IpsCustomization ipsCustomization = new IpsCustomization(dayNightTheme, Orientation.AUTOMATIC);
6865
Idcheckio.startIps(this, folderUid, this, ipsCustomization, null);

react-idcheckio/ios/Idcheckio.m

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,17 @@ @implementation IdcheckioModule
7777
idcheckioViewController.isOnlineSession = true;
7878
idcheckioViewController.onlineContext = onlineContext;
7979
[idcheckioViewController setResultCompletion:^(IdcheckioResult *result, NSError *error) {
80-
dispatch_async(dispatch_get_main_queue(), ^{
81-
[[[UIApplication sharedApplication] keyWindow].rootViewController dismissViewControllerAnimated:true completion:^{}];
82-
});
83-
if(result != nil){
84-
captureResolver([IdcheckioObjcUtil resultToJSON:result]);
85-
} else if(error != nil){
86-
captureRejecter(@"0", [IdcheckioObjcUtil getErrorJson:error], error);
87-
}
80+
dispatch_async(dispatch_get_main_queue(), ^{
81+
[[[UIApplication sharedApplication] keyWindow].rootViewController dismissViewControllerAnimated:true completion:^{
82+
dispatch_async(dispatch_get_main_queue(), ^{
83+
if(result != nil){
84+
captureResolver([IdcheckioObjcUtil resultToJSON:result]);
85+
} else if(error != nil){
86+
captureRejecter(@"0", [IdcheckioObjcUtil getErrorJson:error], error);
87+
}
88+
});
89+
}];
90+
});
8891
}];
8992
[[[UIApplication sharedApplication] keyWindow].rootViewController presentViewController:idcheckioViewController animated:true completion:nil];
9093
});

0 commit comments

Comments
 (0)