Skip to content

Instantly share code, notes, and snippets.

@alien3d
Created February 26, 2018 15:37
Show Gist options
  • Save alien3d/19bf37950d5e85c7e5b6b05680b0fc3c to your computer and use it in GitHub Desktop.
Save alien3d/19bf37950d5e85c7e5b6b05680b0fc3c to your computer and use it in GitHub Desktop.
platform :ios, '9.3'
target 'rentcssbeta' do
rn_path = '../node_modules/react-native'
pod 'react-native-maps', path: '../node_modules/react-native-maps'
pod 'RNFirebase', path: '../node_modules/react-native-firebase/ios'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/Crash'
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'Core',
'tvOS',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
'BatchedBridge',
'DevSupport'
]
pod 'react-native-camera-kit', :path => '../node_modules/react-native-camera-kit'
pod 'RNDeviceInfo', :path => '../node_modules/react-native-device-info'
pod 'react-native-fetch-blob', :path => '../node_modules/react-native-fetch-blob'
pod 'RNFS', :path => '../node_modules/react-native-fs'
pod 'react-native-image-picker', :path => '../node_modules/react-native-image-picker'
pod 'react-native-image-resizer', :path => '../node_modules/react-native-image-resizer'
pod 'ReactNativeLocalization', :path => '../node_modules/react-native-localization'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
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
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment