Skip to content

Commit 62fcc02

Browse files
chore: nfc capabilities (#252)
* chore: added nfc capabilities to wallet sample * chore: added nfc permissions to pos app * chore: ios project changes
1 parent 83dc946 commit 62fcc02

File tree

12 files changed

+42
-12
lines changed

12 files changed

+42
-12
lines changed

dapps/pos-app/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ android {
9494
applicationId 'com.reown.mobilepos'
9595
minSdkVersion rootProject.ext.minSdkVersion
9696
targetSdkVersion rootProject.ext.targetSdkVersion
97-
versionCode 1
97+
versionCode 2
9898
versionName "1.0.0"
9999

100100
buildConfigField "String", "REACT_NATIVE_RELEASE_LEVEL", "\"${findProperty('reactNativeReleaseLevel') ?: 'stable'}\""

dapps/pos-app/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22
<uses-permission android:name="android.permission.INTERNET"/>
3+
<uses-permission android:name="android.permission.NFC"/>
34
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
45
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
56
<uses-permission android:name="android.permission.VIBRATE"/>

dapps/pos-app/app.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
"appleTeamId": "W5R8AG9K22",
1515
"config": {
1616
"usesNonExemptEncryption": false
17+
},
18+
"infoPlist": {
19+
"NFCReaderUsageDescription": "This app requires NFC to send messages"
20+
},
21+
"entitlements": {
22+
"com.apple.developer.nfc.readersession.formats": ["TAG"]
1723
}
1824
},
1925
"android": {
@@ -26,6 +32,7 @@
2632
"edgeToEdgeEnabled": true,
2733
"predictiveBackGestureEnabled": false,
2834
"package": "com.reown.mobilepos",
35+
"permissions": ["android.permission.NFC"],
2936
"versionCode": 2
3037
},
3138
"web": {

dapps/pos-app/ios/mobilepos.xcodeproj/project.pbxproj

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,34 @@
88

99
/* Begin PBXBuildFile section */
1010
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
11+
144C98A7BBB5414F98C6A185 /* KHTeka-Light.otf in Resources */ = {isa = PBXBuildFile; fileRef = 16CB0849012C4C499C4859C4 /* KHTeka-Light.otf */; };
1112
3A3F8486D042A5317ECD78BF /* libPods-mobilepos.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64F9C26B8EF3B56879C1087E /* libPods-mobilepos.a */; };
1213
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
1314
751A2E60847A43B6DA842DCD /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 922FF57656C74C7EF846D99F /* ExpoModulesProvider.swift */; };
15+
953CEADADE6F4E799B0F871D /* KHTeka-Medium.otf in Resources */ = {isa = PBXBuildFile; fileRef = CE6DFD3E88E042D6A187A462 /* KHTeka-Medium.otf */; };
16+
9A9EA94CE856487491D0050E /* KHTeka-Regular.otf in Resources */ = {isa = PBXBuildFile; fileRef = 96800C0DD5F242B2A8FD6BAD /* KHTeka-Regular.otf */; };
1417
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; };
1518
C7DCDA39216BB26DEC9530E4 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = E8B1347B2DAD18500EC8D4CE /* PrivacyInfo.xcprivacy */; };
1619
F11748422D0307B40044C1D9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F11748412D0307B40044C1D9 /* AppDelegate.swift */; };
17-
144C98A7BBB5414F98C6A185 /* KHTeka-Light.otf in Resources */ = {isa = PBXBuildFile; fileRef = 16CB0849012C4C499C4859C4 /* KHTeka-Light.otf */; };
18-
9A9EA94CE856487491D0050E /* KHTeka-Regular.otf in Resources */ = {isa = PBXBuildFile; fileRef = 96800C0DD5F242B2A8FD6BAD /* KHTeka-Regular.otf */; };
19-
953CEADADE6F4E799B0F871D /* KHTeka-Medium.otf in Resources */ = {isa = PBXBuildFile; fileRef = CE6DFD3E88E042D6A187A462 /* KHTeka-Medium.otf */; };
2020
/* End PBXBuildFile section */
2121

2222
/* Begin PBXFileReference section */
2323
13B07F961A680F5B00A75B9A /* mobilepos.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = mobilepos.app; sourceTree = BUILT_PRODUCTS_DIR; };
2424
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = mobilepos/Images.xcassets; sourceTree = "<group>"; };
2525
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = mobilepos/Info.plist; sourceTree = "<group>"; };
26+
16CB0849012C4C499C4859C4 /* KHTeka-Light.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = "KHTeka-Light.otf"; path = "../assets/fonts/KHTeka-Light.otf"; sourceTree = "<group>"; };
2627
24CBE55C0F94CBE555C73920 /* Pods-mobilepos.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-mobilepos.debug.xcconfig"; path = "Target Support Files/Pods-mobilepos/Pods-mobilepos.debug.xcconfig"; sourceTree = "<group>"; };
2728
64F9C26B8EF3B56879C1087E /* libPods-mobilepos.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-mobilepos.a"; sourceTree = BUILT_PRODUCTS_DIR; };
2829
922FF57656C74C7EF846D99F /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-mobilepos/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
30+
96800C0DD5F242B2A8FD6BAD /* KHTeka-Regular.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = "KHTeka-Regular.otf"; path = "../assets/fonts/KHTeka-Regular.otf"; sourceTree = "<group>"; };
2931
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = mobilepos/SplashScreen.storyboard; sourceTree = "<group>"; };
3032
B72486B4B4F086BB6495C5F4 /* Pods-mobilepos.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-mobilepos.release.xcconfig"; path = "Target Support Files/Pods-mobilepos/Pods-mobilepos.release.xcconfig"; sourceTree = "<group>"; };
3133
BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = "<group>"; };
34+
CE6DFD3E88E042D6A187A462 /* KHTeka-Medium.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = "KHTeka-Medium.otf"; path = "../assets/fonts/KHTeka-Medium.otf"; sourceTree = "<group>"; };
3235
E8B1347B2DAD18500EC8D4CE /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = mobilepos/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
3336
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
3437
F11748412D0307B40044C1D9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = mobilepos/AppDelegate.swift; sourceTree = "<group>"; };
3538
F11748442D0722820044C1D9 /* mobilepos-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "mobilepos-Bridging-Header.h"; path = "mobilepos/mobilepos-Bridging-Header.h"; sourceTree = "<group>"; };
36-
16CB0849012C4C499C4859C4 /* KHTeka-Light.otf */ = {isa = PBXFileReference; name = "KHTeka-Light.otf"; path = "../assets/fonts/KHTeka-Light.otf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
37-
96800C0DD5F242B2A8FD6BAD /* KHTeka-Regular.otf */ = {isa = PBXFileReference; name = "KHTeka-Regular.otf"; path = "../assets/fonts/KHTeka-Regular.otf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
38-
CE6DFD3E88E042D6A187A462 /* KHTeka-Medium.otf */ = {isa = PBXFileReference; name = "KHTeka-Medium.otf"; path = "../assets/fonts/KHTeka-Medium.otf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
3939
/* End PBXFileReference section */
4040

4141
/* Begin PBXFrameworksBuildPhase section */
@@ -139,15 +139,15 @@
139139
sourceTree = "<group>";
140140
};
141141
CEC0D1A03F8A4221B100BB39 /* Resources */ = {
142-
isa = "PBXGroup";
142+
isa = PBXGroup;
143143
children = (
144144
16CB0849012C4C499C4859C4 /* KHTeka-Light.otf */,
145145
96800C0DD5F242B2A8FD6BAD /* KHTeka-Regular.otf */,
146146
CE6DFD3E88E042D6A187A462 /* KHTeka-Medium.otf */,
147147
);
148148
name = Resources;
149-
sourceTree = "<group>";
150149
path = "";
150+
sourceTree = "<group>";
151151
};
152152
/* End PBXGroup section */
153153

@@ -407,7 +407,7 @@
407407
);
408408
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
409409
PRODUCT_BUNDLE_IDENTIFIER = com.reown.mobilepos;
410-
PRODUCT_NAME = "mobilepos";
410+
PRODUCT_NAME = mobilepos;
411411
PROVISIONING_PROFILE_SPECIFIER = "";
412412
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match AppStore com.reown.mobilepos";
413413
SWIFT_OBJC_BRIDGING_HEADER = "mobilepos/mobilepos-Bridging-Header.h";
@@ -444,7 +444,7 @@
444444
);
445445
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
446446
PRODUCT_BUNDLE_IDENTIFIER = com.reown.mobilepos;
447-
PRODUCT_NAME = "mobilepos";
447+
PRODUCT_NAME = mobilepos;
448448
PROVISIONING_PROFILE_SPECIFIER = "";
449449
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match AppStore com.reown.mobilepos";
450450
SWIFT_OBJC_BRIDGING_HEADER = "mobilepos/mobilepos-Bridging-Header.h";

dapps/pos-app/ios/mobilepos/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
<string>12.0</string>
4141
<key>LSRequiresIPhoneOS</key>
4242
<true/>
43+
<key>NFCReaderUsageDescription</key>
44+
<string>This app requires NFC to send messages</string>
4345
<key>NSAppTransportSecurity</key>
4446
<dict>
4547
<key>NSAllowsArbitraryLoads</key>
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
4-
<dict/>
4+
<dict>
5+
<key>com.apple.developer.nfc.readersession.formats</key>
6+
<array>
7+
<string>TAG</string>
8+
</array>
9+
</dict>
510
</plist>

wallets/rn_cli_wallet/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<uses-permission android:name="android.permission.INTERNET" />
44
<uses-permission android:name="android.permission.CAMERA" />
55
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
6+
<uses-permission android:name="android.permission.NFC" />
67

78
<application
89
android:name=".MainApplication"

wallets/rn_cli_wallet/ios/RNWeb3Wallet/Debug-Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>NFCReaderUsageDescription</key>
6+
<string>This app requires NFC to send messages</string>
57
<key>CADisableMinimumFrameDurationOnPhone</key>
68
<true/>
79
<key>CFBundleDevelopmentRegion</key>

wallets/rn_cli_wallet/ios/RNWeb3Wallet/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>NFCReaderUsageDescription</key>
6+
<string>This app requires NFC to send messages</string>
57
<key>CADisableMinimumFrameDurationOnPhone</key>
68
<true/>
79
<key>CFBundleDevelopmentRegion</key>

wallets/rn_cli_wallet/ios/RNWeb3Wallet/Internal-Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>NFCReaderUsageDescription</key>
6+
<string>This app requires NFC to send messages</string>
57
<key>CADisableMinimumFrameDurationOnPhone</key>
68
<true/>
79
<key>CFBundleDevelopmentRegion</key>

0 commit comments

Comments
 (0)