Skip to content

Commit

Permalink
Enhance Podfile. (react-native-maps#1252)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermepontes authored and codedre committed Aug 15, 2017
1 parent 30c8ff9 commit 038c53b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ platform :ios, '8.0'

# Change 'AirMapsExplorer' to match the target in your Xcode project.
target 'AirMapsExplorer' do
rn_path = '../../node_modules/react-native'

pod 'Yoga', :path => '../../node_modules/react-native/ReactCommon/yoga/Yoga.podspec'
pod 'React', path: '../../node_modules/react-native', :subspecs => [
pod 'Yoga', path: "#{rn_path}/ReactCommon/yoga/Yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'Core',
'RCTActionSheet',
'RCTAnimation',
Expand All @@ -22,16 +23,14 @@ target 'AirMapsExplorer' do
'BatchedBridge'
]

pod 'GoogleMaps' # <~~ remove this line if you do not want to support GoogleMaps on iOS
pod 'GoogleMaps' # Remove this line if you don't want to support GoogleMaps on iOS
pod 'react-native-maps', path: '../../'
pod 'react-native-google-maps', path: '../../' # <~~ if you need GoogleMaps support on iOS

pod 'react-native-google-maps', path: '../../' # If you need GoogleMaps support on iOS
end


post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "react-native-google-maps"
if target.name == 'react-native-google-maps'
target.build_configurations.each do |config|
config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
end
Expand Down

0 comments on commit 038c53b

Please sign in to comment.