mirror of
https://github.com/expo/react-native-maps.git
synced 2026-11-15 09:18:08 -10:00
This allows setting up the library to work with Google Maps on iOS via `react-native link` instead of only via CocoaPods. Because Google-Maps-iOS-Utils is not distributed as a binary (at this time), it disables functionality that depends on this library and raises an exception that points to the reason why there's a problem. Additionally: - A missing file has been added back into the AirMaps.xcodeproj project.
16 lines
417 B
Bash
Executable File
16 lines
417 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
GOOGLE_MAPS_INSTALL_LOCATION=$1
|
|
|
|
if [[ -z "$GOOGLE_MAPS_INSTALL_LOCATION" ]]; then
|
|
echo "usage: enable-google-maps <google-frameworks-relative-install-dir>"
|
|
exit 1
|
|
fi
|
|
|
|
cat > lib/ios/User.xcconfig <<EOF
|
|
FRAMEWORK_SEARCH_PATHS = \$(inherited) \$(SRCROOT)/../../../../$GOOGLE_MAPS_INSTALL_LOCATION
|
|
GCC_PREPROCESSOR_DEFINITIONS = \$(inherited) HAVE_GOOGLE_MAPS=1
|
|
EOF
|