Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: only request Android permissions on Android #12

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ PODS:
- React-debug
- react-native-safe-area-context (4.9.0):
- React-Core
- react-native-wallet-sdk (0.0.1):
- react-native-wallet-sdk (0.1.0):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
Expand Down Expand Up @@ -1274,7 +1274,7 @@ SPEC CHECKSUMS:
React-logger: 0331362115f0f5b392bd7ed14636d1a3ea612479
React-Mapbuffer: 7c35cd53a22d0be04d3f26f7881c7fb7dd230216
react-native-safe-area-context: b97eb6f9e3b7f437806c2ce5983f479f8eb5de4b
react-native-wallet-sdk: c7516c613c1dceece960786ff1ea693e0e0f6626
react-native-wallet-sdk: c96c74a3babe71264e2acdc98ad0776e400a38ca
React-nativeconfig: 1166714a4f7ea57a0df5c2cb44fbc70f98d580f9
React-NativeModulesApple: 726664e9829eb5eed8170241000e46ead269a05f
React-perflogger: 0dd9f1725d55f8264b81efadd373fe1d9cca7dc2
Expand Down
5 changes: 4 additions & 1 deletion example/src/ShareTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
PermissionsAndroid,
ScrollView,
Switch,
Platform,
Text,
View,
} from 'react-native';
Expand Down Expand Up @@ -163,7 +164,9 @@ export default function ShareTab() {

const presentButtonOnPress = async () => {
console.log('share', globalThis.mdocUuid, globalThis.privateKeyUuid);
await requestPermissions();
if (Platform.OS === 'android') {
await requestPermissions();
}
BleSessionManager.startPresentMdoc(
globalThis.mdocUuid,
globalThis.privateKeyUuid,
Expand Down
Loading