In my venture, I’m making an attempt so as to add the next pods:
Permission-Microphone, Permission-Digicam, and Permission-PhotoLibrary
. Nevertheless, I encounter an error when working
pod set up
.
Right here is my Podfile:
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, 14.0
prepare_react_native_project!
use_frameworks! :linkage => :static
# Outline the node_require operate
def node_require(script)
# Resolve script with node to permit for hoisting
require Pod::Executable.execute_command('node', ['-p',
"require.resolve(
'#{script}',
{paths: [process.argv[1]]},
)", __dir__]).strip
finish
# Use node_require to incorporate vital scripts
node_require('react-native/scripts/react_native_pods.rb')
node_require('react-native-permissions/scripts/setup.rb')
setup_permissions([
# 'AppTrackingTransparency',
# 'Bluetooth',
# 'Calendars',
# 'CalendarsWriteOnly',
'Camera',
# 'Contacts',
# 'FaceID',
'LocationAccuracy',
'LocationAlways',
'LocationWhenInUse',
'MediaLibrary',
'Microphone',
# 'Motion',
'Notifications',
'PhotoLibrary',
'PhotoLibraryAddOnly',
'Reminders',
'Siri',
# 'SpeechRecognition',
'StoreKit'
])
# In case you are utilizing a `react-native-flipper` your iOS construct will fail when `NO_FLIPPER=1` is ready.
# as a result of `react-native-flipper` will depend on (FlipperKit,...) that will likely be excluded
#
# To repair this you can even exclude `react-native-flipper` utilizing a `react-native.config.js`
# ```js
# module.exports = {
# dependencies: {
# ...(course of.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.places "Configuring Pod with #{linkage}ally linked Frameworks".inexperienced
use_frameworks! :linkage => linkage.to_sym
finish
permissions_path="../node_modules/react-native-permissions/ios"
notifee_path="../../node_modules/@notifee/react-native/RNNotifeeCore.podspec"
goal 'MyProj' do
config = use_native_modules!
places "React Native Path: #{config[:reactNativePath]}"
places "App Path: #{Pod::Config.occasion.installation_root}/.."
use_react_native!(
:path => config[:reactNativePath],
# An absolute path to your software root.
:app_path => "#{Pod::Config.occasion.installation_root}/.."
)
pod 'GoogleUtilities', :modular_headers => true;
pod 'FirebaseCore', :modular_headers => true
pod 'Firebase/Messaging', :modular_headers => true;
pod 'Firebase/Analytics', :modular_headers => true;
pod 'VitalCore'
pod 'VitalDevices'
pod 'VitalHealthKit'
pod 'SendBirdSDK', :modular_headers => true
pod 'SendBirdUIKit', :modular_headers => true
pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone"
pod 'Permission-Digicam', :path => "#{permissions_path}/Digicam"
pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary"
pod 'Permission-PhotoLibraryAddOnly', :path => "#{permissions_path}/PhotoLibraryAddOnly"
pod 'RNNotifeeCore', :path => notifee_path
# Permits Flipper.
#
# Notice that when you've got use_frameworks! enabled, Flipper won't work and
# it's best to disable the subsequent line.
#use_flipper!()
goal 'MyProjTests' do
inherit! :full
# Pods for testing
finish
post_install do |installer|
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
)
# __apply_Xcode_12_5_M1_post_install_workaround(installer)
finish
finish