E-TWOW-Connect/ios/Podfile

82 lines
2.6 KiB
Ruby
Executable File

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
# mapbox start
$RNMapboxMapsImpl = 'maplibre' # mapbox-gl, maplibre
platform :ios, '13.0'
if $RNMapboxMapsImpl == 'maplibre'
$RNMapboxMapsSwiftPackageManager = {
url: "https://github.com/maplibre/maplibre-gl-native-distribution",
requirement: {
kind: "upToNextMajorVersion",
minimumVersion: "5.12.1"
},
product_name: "Mapbox"
}
end
# mapbox end
target 'etwowconnect' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => true
)
# default version
# pod 'react-native-mapbox-gl', :path => '../../', :inhibit_warnings => false
# use_native_modules!
pre_install do |installer|
# mapbox start
$RNMapboxMaps.pre_install(installer)
# mapbox end
end
# Enables Flipper.
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
# use_flipper!({ 'Flipper-Folly' => '2.5.3', 'Flipper' => '0.87.0', 'Flipper-RSocket' => '1.3.1' })
post_install do |installer|
# flipper_post_install(installer)
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"
config.build_settings["DEVELOPMENT_TEAM"] = "CD4K4PMBA2"
config.build_settings["CODE_SIGNING_ALLOWED"] = "NO"
end
end
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
# mapbox start
$RNMapboxMaps.post_install(installer)
# mapbox end
end
# permissions library
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-BluetoothPeripheral', :path => "#{permissions_path}/BluetoothPeripheral"
pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways"
pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse"
pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications"
pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone"
# polidea (bluetooth module)
target 'etwowconnectTests' do
inherit! :complete
# Pods for testing
end
end
# enable onesignal for push notifications
target 'OneSignalNotificationServiceExtension' do
pod 'OneSignalXCFramework', '>= 3.0', '< 4.0'
end