react-native-maps 1.21.0-alpha.127 → 1.21.0-alpha.129

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 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.127",
8
+ "version": "1.21.0-alpha.129",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",
@@ -25,19 +25,31 @@ Pod::Spec.new do |s|
25
25
  {
26
26
  :name => 'Check react-native-google-maps Availability',
27
27
  :script => %(
28
- GOOGLE_MAPS_HEADER_PATH="$PODS_ROOT/Headers/Public/react-native-google-maps/AIRGoogleMap.h"
29
- DEFINES_FILE="$CONFIGURATION_BUILD_DIR/react-native-maps/RNMapsDefines.h"
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"
30
32
 
31
- # Ensure the defines file directory exists
32
- mkdir -p "$(dirname "$DEFINES_FILE")"
33
+ echo "GOOGLE_MAPS_HEADER_PATH=$GOOGLE_MAPS_HEADER_PATH"
34
+ echo "DEFINES_FILE=$DEFINES_FILE"
33
35
 
34
- # Check if Google Maps header exists
35
- if [ -f "$GOOGLE_MAPS_HEADER_PATH" ]; then
36
- echo "#define HAVE_GOOGLE_MAPS 1" > "$DEFINES_FILE"
37
- echo "Google Maps detected. HAVE_GOOGLE_MAPS defined."
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."
38
43
  else
39
44
  echo "#define HAVE_GOOGLE_MAPS 0" > "$DEFINES_FILE"
40
- echo "Google Maps not detected."
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"
41
53
  fi
42
54
  ),
43
55
  :execution_position => :before_compile