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

[MOB-8902] updates podfiles and babel library and config #562

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
17 changes: 16 additions & 1 deletion SampleApp/javascript/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/react-native/scripts/react_native_pods'

platform :ios, '10.0'
platform :ios, '12.0'

target 'SampleApp' do
config = use_native_modules!
Expand All @@ -11,3 +11,18 @@ end
target 'Rich Notification Extension' do
pod 'Iterable-iOS-AppExtensions'
end

deployment_target = '12.0'

post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
end
end
project.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
end
end
end
4 changes: 3 additions & 1 deletion SampleApp/typescript/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
presets: [['module:metro-react-native-babel-preset', {
unstable_disableES6Transforms: true
}]],
};
17 changes: 16 additions & 1 deletion SampleApp/typescript/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/react-native/scripts/react_native_pods'

platform :ios, '10.0'
platform :ios, '12.0'

target 'SampleApp' do
config = use_native_modules!
Expand All @@ -11,3 +11,18 @@ end
target 'Rich Notification Extension' do
pod 'Iterable-iOS-AppExtensions'
end

deployment_target = '12.0'

post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
end
end
project.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
end
end
end
2 changes: 1 addition & 1 deletion SampleApp/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@types/react-native": "^0.62.10",
"@types/react-native-vector-icons": "^6.4.5",
"eslint": "^6.8.0",
"metro-react-native-babel-preset": "^0.58.0",
"metro-react-native-babel-preset": "^0.59.0",
"react-test-renderer": "16.9.0"
}
}
Loading