react-native-maps 1.21.0-alpha.127 → 1.21.0-alpha.128
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 +34 -22
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.128",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|
|
@@ -21,28 +21,40 @@ Pod::Spec.new do |s|
|
|
|
21
21
|
install_modules_dependencies(s)
|
|
22
22
|
|
|
23
23
|
# Add script phase to detect Google Maps
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
24
|
+
# Add script phase to detect Google Maps
|
|
25
|
+
s.script_phases = [{
|
|
26
|
+
: name => 'Check react-native-google-maps Availability',
|
|
27
|
+
: script => % (
|
|
28
|
+
set - x echo "Running Google Maps detection script..."
|
|
29
|
+
GOOGLE_MAPS_HEADER_PATH = "$PODS_ROOT/Headers/Public/react-native-google-maps/AIRGoogleMap.h"
|
|
30
|
+
DEFINES_DIR = "${PODS_TARGET_SRCROOT}/ios/AirMaps"
|
|
31
|
+
DEFINES_FILE = "${DEFINES_DIR}/RNMapsDefines.h"
|
|
32
|
+
|
|
33
|
+
echo "GOOGLE_MAPS_HEADER_PATH=$GOOGLE_MAPS_HEADER_PATH"
|
|
34
|
+
echo "DEFINES_FILE=$DEFINES_FILE"
|
|
35
|
+
|
|
36
|
+
# Create directory with explicit bash commands /
|
|
37
|
+
bin / mkdir - p "$DEFINES_DIR"
|
|
38
|
+
|
|
39
|
+
# Check
|
|
40
|
+
if Google Maps is available and write to the defines file
|
|
41
|
+
if [-f "$GOOGLE_MAPS_HEADER_PATH"]; then echo "#define HAVE_GOOGLE_MAPS 1" > "$DEFINES_FILE"
|
|
42
|
+
echo "Google Maps detected. HAVE_GOOGLE_MAPS defined."
|
|
43
|
+
else
|
|
44
|
+
echo "#define HAVE_GOOGLE_MAPS 0" > "$DEFINES_FILE"
|
|
45
|
+
echo "Google Maps not detected."
|
|
46
|
+
fi
|
|
47
|
+
|
|
48
|
+
# Verify the file was written
|
|
49
|
+
if [-f "$DEFINES_FILE"]; then echo "Successfully wrote to $DEFINES_FILE"
|
|
50
|
+
cat "$DEFINES_FILE"
|
|
51
|
+
else
|
|
52
|
+
echo "ERROR: Failed to write to $DEFINES_FILE"
|
|
53
|
+
fi
|
|
54
|
+
|
|
55
|
+
),
|
|
56
|
+
: execution_position =>: before_compile
|
|
57
|
+
}]
|
|
46
58
|
|
|
47
59
|
# Add the generated defines header to the header search path
|
|
48
60
|
s.pod_target_xcconfig = {
|