Skip to content

Commit 1fd7765

Browse files
✨ Add NFC reading feature on iOS project
1 parent 3ef0af9 commit 1fd7765

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

ReactIdcheckioClient/ios/ReactIdcheckioClient.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
4DBB2275EF4EEBF18C119C17 /* Pods-ReactIdcheckioClient.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactIdcheckioClient.release.xcconfig"; path = "Target Support Files/Pods-ReactIdcheckioClient/Pods-ReactIdcheckioClient.release.xcconfig"; sourceTree = "<group>"; };
4040
7580B792818DAC9AAD330710 /* Pods-ReactIdcheckioClient.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactIdcheckioClient.debug.xcconfig"; path = "Target Support Files/Pods-ReactIdcheckioClient/Pods-ReactIdcheckioClient.debug.xcconfig"; sourceTree = "<group>"; };
4141
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactIdcheckioClient/LaunchScreen.storyboard; sourceTree = "<group>"; };
42+
A824B12E292E55D100DF640E /* ReactIdcheckioClient.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = ReactIdcheckioClient.entitlements; path = ReactIdcheckioClient/ReactIdcheckioClient.entitlements; sourceTree = "<group>"; };
4243
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
4344
/* End PBXFileReference section */
4445

@@ -81,6 +82,7 @@
8182
13B07FAE1A68108700A75B9A /* ReactIdcheckioClient */ = {
8283
isa = PBXGroup;
8384
children = (
85+
A824B12E292E55D100DF640E /* ReactIdcheckioClient.entitlements */,
8486
13B07FAF1A68108700A75B9A /* AppDelegate.h */,
8587
13B07FB01A68108700A75B9A /* AppDelegate.m */,
8688
13B07FB51A68108700A75B9A /* Images.xcassets */,
@@ -397,6 +399,7 @@
397399
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
398400
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES;
399401
CLANG_ENABLE_MODULES = YES;
402+
CODE_SIGN_ENTITLEMENTS = ReactIdcheckioClient/ReactIdcheckioClient.entitlements;
400403
CURRENT_PROJECT_VERSION = 1;
401404
DEVELOPMENT_TEAM = M3JN9ZX8YT;
402405
ENABLE_BITCODE = NO;
@@ -425,6 +428,7 @@
425428
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
426429
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES;
427430
CLANG_ENABLE_MODULES = YES;
431+
CODE_SIGN_ENTITLEMENTS = ReactIdcheckioClient/ReactIdcheckioClient.entitlements;
428432
CURRENT_PROJECT_VERSION = 1;
429433
DEVELOPMENT_TEAM = M3JN9ZX8YT;
430434
INFOPLIST_FILE = ReactIdcheckioClient/Info.plist;

ReactIdcheckioClient/ios/ReactIdcheckioClient/Info.plist

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
<string>1</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
27+
<key>NFCReaderUsageDescription</key>
28+
<string>We need Near Field Communication permission in order to scan your document's chip</string>
2729
<key>NSAppTransportSecurity</key>
2830
<dict>
2931
<key>NSExceptionDomains</key>
@@ -35,6 +37,8 @@
3537
</dict>
3638
</dict>
3739
</dict>
40+
<key>NSCameraUsageDescription</key>
41+
<string>We need to access your camera in order to scan your document</string>
3842
<key>NSLocationWhenInUseUsageDescription</key>
3943
<string></string>
4044
<key>UILaunchStoryboardName</key>
@@ -49,8 +53,6 @@
4953
<string>UIInterfaceOrientationLandscapeLeft</string>
5054
<string>UIInterfaceOrientationLandscapeRight</string>
5155
</array>
52-
<key>NSCameraUsageDescription</key>
53-
<string>We need to access your camera in order to scan your document</string>
5456
<key>UIViewControllerBasedStatusBarAppearance</key>
5557
<false/>
5658
</dict>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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>NDEF</string>
8+
<string>TAG</string>
9+
<string>PACE</string>
10+
</array>
11+
</dict>
12+
</plist>

0 commit comments

Comments
 (0)