react-native-maps 1.21.0-alpha.130 → 1.21.0-alpha.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/react-native-maps.podspec +14 -12
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
|
|
7
7
|
"homepage": "https://github.com/react-native-maps/react-native-maps#readme",
|
|
8
|
-
"version": "1.21.0-alpha.
|
|
8
|
+
"version": "1.21.0-alpha.131",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|
|
@@ -23,28 +23,30 @@ Pod::Spec.new do |s|
|
|
|
23
23
|
# Add script phase to detect Google Maps
|
|
24
24
|
s.script_phases = [
|
|
25
25
|
{
|
|
26
|
-
:name => 'Check react-native-google-
|
|
26
|
+
:name => 'Check react-native-google-Maps Availability',
|
|
27
27
|
:script => %(
|
|
28
|
-
set -
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
set -x
|
|
29
|
+
echo "Running Google Maps detection script..."
|
|
30
|
+
GOOGLE_MAPS_HEADER_PATH="$PODS_ROOT/Headers/Public/react-native-google-maps/AIRGoogleMap.h"
|
|
31
|
+
DEFINES_DIR="${PODS_TARGET_SRCROOT}/ios/AirMaps"
|
|
32
|
+
DEFINES_FILE="${DEFINES_DIR}/RNMapsDefines.h"
|
|
32
33
|
|
|
33
34
|
echo "GOOGLE_MAPS_HEADER_PATH=$GOOGLE_MAPS_HEADER_PATH"
|
|
34
35
|
echo "DEFINES_FILE=$DEFINES_FILE"
|
|
35
36
|
|
|
36
|
-
# Check
|
|
37
|
-
if
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
# Check if Google Maps is available and write to the defines file
|
|
38
|
+
if [ -f "$GOOGLE_MAPS_HEADER_PATH" ]; then
|
|
39
|
+
echo "#define HAVE_GOOGLE_MAPS 1" > "$DEFINES_FILE"
|
|
40
|
+
echo "Google Maps detected. HAVE_GOOGLE_MAPS defined."
|
|
40
41
|
else
|
|
41
42
|
echo "#define HAVE_GOOGLE_MAPS 0" > "$DEFINES_FILE"
|
|
42
|
-
|
|
43
|
+
echo "Google Maps not detected."
|
|
43
44
|
fi
|
|
44
45
|
|
|
45
46
|
# Verify the file was written
|
|
46
|
-
if [-f "$DEFINES_FILE"]; then
|
|
47
|
-
|
|
47
|
+
if [ -f "$DEFINES_FILE" ]; then
|
|
48
|
+
echo "Successfully wrote to $DEFINES_FILE"
|
|
49
|
+
cat "$DEFINES_FILE"
|
|
48
50
|
else
|
|
49
51
|
echo "ERROR: Failed to write to $DEFINES_FILE"
|
|
50
52
|
fi
|