Skip to content

Commit

Permalink
Update react-native-permissions + others (#1893)
Browse files Browse the repository at this point in the history
  • Loading branch information
onghwan authored Oct 7, 2024
1 parent f969071 commit e46687e
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 132 deletions.
44 changes: 36 additions & 8 deletions packages/core-mobile/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,44 @@ ENV['USE_HERMES'] = '0'
use_modular_headers!

# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', __dir__]).strip
def node_require(script)
# Resolve script with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
"require.resolve(
'#{script}',
{paths: [process.argv[1]]},
)", __dir__]).strip
end

# Use it to require both react-native's and this package's scripts:
node_require('react-native/scripts/react_native_pods.rb')
node_require('react-native-permissions/scripts/setup.rb')

prepare_react_native_project!

setup_permissions([
# 'AppTrackingTransparency',
# 'Bluetooth',
# 'Calendars',
# 'CalendarsWriteOnly',
'Camera',
# 'Contacts',
'FaceID',
# 'LocationAccuracy',
# 'LocationAlways',
'LocationWhenInUse',
# 'MediaLibrary',
# 'Microphone',
# 'Motion',
'Notifications',
# 'PhotoLibrary',
# 'PhotoLibraryAddOnly',
# 'Reminders',
# 'Siri',
# 'SpeechRecognition',
# 'StoreKit',
])

platform :ios, '14'

linkage = ENV['USE_FRAMEWORKS']
Expand All @@ -37,9 +67,7 @@ abstract_target 'common' do
)

pod 'RNFS', :path => '../node_modules/react-native-fs'
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-Camera', :path => "#{permissions_path}/Camera"


# specify OpenSSL version explicitly due to https://github.com/margelo/react-native-quick-crypto/issues/189
pod "OpenSSL-Universal", "1.1.1100"

Expand Down
24 changes: 9 additions & 15 deletions packages/core-mobile/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ PODS:
- nanopb/encode (3.30910.0)
- OpenSSL-Universal (1.1.1100)
- OpenTelemetrySwiftApi (1.6.0)
- Permission-Camera (3.6.0):
- RNPermissions
- PLCrashReporter (1.11.2)
- PromisesObjC (2.4.0)
- RCT-Folly (2022.05.16.00):
Expand Down Expand Up @@ -1273,14 +1271,14 @@ PODS:
- React-Core
- RNLocalize (3.2.1):
- React-Core
- RNNotifee (9.1.0):
- RNNotifee (9.1.1):
- React-Core
- RNNotifee/NotifeeCore (= 9.1.0)
- RNNotifee/NotifeeCore (9.1.0):
- RNNotifee/NotifeeCore (= 9.1.1)
- RNNotifee/NotifeeCore (9.1.1):
- React-Core
- RNOS (1.2.6):
- React
- RNPermissions (3.6.0):
- RNPermissions (4.1.5):
- React-Core
- RNReactNativeHapticFeedback (2.0.3):
- React-Core
Expand All @@ -1296,7 +1294,7 @@ PODS:
- React-RCTImage
- RNSensors (7.3.6):
- React-Core
- RNSentry (5.33.1):
- RNSentry (5.33.2):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
Expand Down Expand Up @@ -1328,7 +1326,6 @@ DEPENDENCIES:
- jail-monkey (from `../node_modules/jail-monkey`)
- lottie-react-native (from `../node_modules/lottie-react-native`)
- OpenSSL-Universal (= 1.1.1100)
- Permission-Camera (from `../node_modules/react-native-permissions/ios/Camera`)
- RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
- RCT-Folly/Fabric (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
- RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
Expand Down Expand Up @@ -1479,8 +1476,6 @@ EXTERNAL SOURCES:
:path: "../node_modules/jail-monkey"
lottie-react-native:
:path: "../node_modules/lottie-react-native"
Permission-Camera:
:path: "../node_modules/react-native-permissions/ios/Camera"
RCT-Folly:
:podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
RCTRequired:
Expand Down Expand Up @@ -1702,7 +1697,6 @@ SPEC CHECKSUMS:
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
OpenTelemetrySwiftApi: 657da8071c2908caecce11548e006f779924ff9c
Permission-Camera: 0a0fb4341f50ab242f496fb2f73380e0ec454fe7
PLCrashReporter: 499c53b0104f95c302d94fd723ebb03c56d9bac8
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
RCT-Folly: 7169b2b1c44399c76a47b5deaaba715eeeb476c0
Expand Down Expand Up @@ -1784,14 +1778,14 @@ SPEC CHECKSUMS:
RNInAppBrowser: e36d6935517101ccba0e875bac8ad7b0cb655364
RNKeychain: ff836453cba46938e0e9e4c22e43d43fa2c90333
RNLocalize: 4f22418187ecd5ca693231093ff1d912d1b3c9bc
RNNotifee: abfacfc1bf391aaa3beaa79d540078f17aa11985
RNNotifee: 35b5f984d11083b02d7f2990b3408cd99a0aeeac
RNOS: 6f2f9a70895bbbfbdad7196abd952e7b01d45027
RNPermissions: de7b7c3fe1680d974ac7a85e3e97aa539c0e68ea
RNPermissions: 0202407390834f85dd944f317aedb4fb25f11077
RNReactNativeHapticFeedback: afa5bf2794aecbb2dba2525329253da0d66656df
RNReanimated: 00ee495a70897aa9d541e76debec14253133b812
RNScreens: 29418ceffb585b8f0ebd363de304288c3dce8323
RNSensors: 117ba71c7eeeea0407ea0c0bb79e3495d602049b
RNSentry: bddb3584da79757405fbf9a551c7a822c39f445b
RNSentry: 08fd316b26e160e40e811a7e455d2d20beb2b4b1
RNSound: 6c156f925295bdc83e8e422e7d8b38d33bc71852
RNSVG: 4590aa95758149fa27c5c83e54a6a466349a1688
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
Expand All @@ -1800,6 +1794,6 @@ SPEC CHECKSUMS:
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
Yoga: 47d399a73c0c0caa9ff824e5c657eae31215bfee

PODFILE CHECKSUM: 15adc354162352c0923b004573ce27998cf9b548
PODFILE CHECKSUM: 7320c8c19484ef614b2cbccc9cc6ef8fa1880f6f

COCOAPODS: 1.15.2
6 changes: 3 additions & 3 deletions packages/core-mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@metamask/eth-sig-util": "7.0.3",
"@metamask/rpc-errors": "6.3.0",
"@noble/secp256k1": "2.1.0",
"@notifee/react-native": "9.1.0",
"@notifee/react-native": "9.1.1",
"@openzeppelin/contracts": "5.0.2",
"@paraswap/sdk": "6.10.0",
"@react-native-async-storage/async-storage": "2.0.0",
Expand All @@ -71,7 +71,7 @@
"@react-navigation/native-stack": "6.11.0",
"@react-navigation/stack": "6.4.1",
"@reduxjs/toolkit": "1.8.1",
"@sentry/react-native": "5.33.1",
"@sentry/react-native": "5.33.2",
"@shopify/flash-list": "1.7.1",
"@shopify/react-native-performance": "4.1.2",
"@shopify/react-native-skia": "0.1.233",
Expand Down Expand Up @@ -144,7 +144,7 @@
"react-native-pager-view": "6.4.1",
"react-native-passkey": "2.1.1",
"react-native-performance": "5.1.2",
"react-native-permissions": "3.6.0",
"react-native-permissions": "4.1.5",
"react-native-popable": "0.4.3",
"react-native-qrcode-scanner": "1.5.5",
"react-native-qrcode-svg": "6.3.2",
Expand Down
Loading

0 comments on commit e46687e

Please sign in to comment.