Created
March 4, 2018 18:12
-
-
Save ahmetilhann/d0c8171410843ab4ac45af78cb2cd6c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uncomment the next line to define a global platform for your project | |
platform :ios, '9.0' | |
target 'walking' do | |
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks | |
# use_frameworks! | |
# Pods for walking | |
# Your 'node_modules' directory is probably in the root of your project, | |
# Explicitly include Yoga if you are using RN >= 0.42.0 | |
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga' | |
# but if not, adjust the `:path` accordingly | |
pod 'React', :path => '../node_modules/react-native', :subspecs => [ | |
'Core', | |
'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43 | |
'RCTText', | |
'RCTNetwork', | |
'RCTWebSocket', | |
'RCTActionSheet', | |
'RCTAnimation', | |
'RCTGeolocation', | |
'RCTImage', | |
'RCTLinkingIOS', | |
'RCTSettings', | |
'RCTVibration', | |
'BatchedBridge' | |
# needed for debugging | |
# Add any other subspecs you want to use in your project | |
] | |
# Third party deps podspec link | |
# pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' | |
# pod 'GLog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec' | |
# pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' | |
# Custom pods | |
pod 'Firebase/Messaging' | |
pod 'react-native-maps', path: '../node_modules/react-native-maps' | |
end | |
post_install do |installer| | |
installer.pods_project.targets.each do |target| | |
if target.name == 'react-native-google-maps' | |
target.build_configurations.each do |config| | |
config.build_settings['CLANG_ENABLE_MODULES'] = 'No' | |
end | |
end | |
if target.name == 'yoga' | |
# Workaround: react-native v0.52 bug issue #17274 | |
# node_modules/react-native/ReactCommon/yoga/yoga/YGNodePrint.cpp:208:46: Implicit conversion loses integer | |
# precision: 'size_type' (aka 'unsigned long') to 'const uint32_t' (aka 'const unsigned int') | |
# https://github.com/facebook/react-native/issues/17274#issuecomment-356363557 | |
target.build_configurations.each do |config| | |
config.build_settings['GCC_TREAT_WARNINGS_AS_ERRORS'] = 'NO' | |
config.build_settings['GCC_WARN_64_TO_32_BIT_CONVERSION'] = 'NO' | |
end | |
end | |
if target.name == "React" | |
target.remove_from_project | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment