react-native-maps 1.21.0-alpha.117 → 1.21.0-alpha.119

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.117",
8
+ "version": "1.21.0-alpha.119",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",
@@ -23,32 +23,4 @@ Pod::Spec.new do |s|
23
23
  s.dependency 'react-native-maps-generated'
24
24
  install_modules_dependencies(s)
25
25
 
26
- # Add script phase to detect Google Maps
27
- s.script_phases = [
28
- {
29
- :name => 'Check react-native-google-maps Availability',
30
- :script => %(
31
- GOOGLE_MAPS_HEADER_PATH="$PODS_ROOT/Headers/Public/react-native-google-maps/GoogleMaps.h"
32
- DEFINES_FILE="$CONFIGURATION_BUILD_DIR/react-native-maps/RNMapsDefines.h"
33
-
34
- # Ensure the defines file directory exists
35
- mkdir -p "$(dirname "$DEFINES_FILE")"
36
-
37
- # Check if Google Maps header exists
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."
41
- else
42
- echo "#define HAVE_GOOGLE_MAPS 0" > "$DEFINES_FILE"
43
- echo "Google Maps not detected."
44
- fi
45
- ),
46
- :execution_position => :before_compile
47
- }
48
- ]
49
-
50
- # Add the generated defines header to the header search path
51
- s.pod_target_xcconfig = {
52
- 'HEADER_SEARCH_PATHS' => '$(CONFIGURATION_BUILD_DIR)/react-native-maps'
53
- }
54
26
  end
@@ -19,4 +19,33 @@ Pod::Spec.new do |s|
19
19
  s.compiler_flags = folly_compiler_flags
20
20
  s.dependency 'react-native-maps-generated'
21
21
  install_modules_dependencies(s)
22
+
23
+ # Add script phase to detect Google Maps
24
+ s.script_phases = [
25
+ {
26
+ :name => 'Check react-native-google-maps Availability',
27
+ :script => %(
28
+ GOOGLE_MAPS_HEADER_PATH="$PODS_ROOT/Headers/Public/react-native-google-maps/GoogleMaps.h"
29
+ DEFINES_FILE="$CONFIGURATION_BUILD_DIR/react-native-maps/RNMapsDefines.h"
30
+
31
+ # Ensure the defines file directory exists
32
+ mkdir -p "$(dirname "$DEFINES_FILE")"
33
+
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."
38
+ else
39
+ echo "#define HAVE_GOOGLE_MAPS 0" > "$DEFINES_FILE"
40
+ echo "Google Maps not detected."
41
+ fi
42
+ ),
43
+ :execution_position => :before_compile
44
+ }
45
+ ]
46
+
47
+ # Add the generated defines header to the header search path
48
+ s.pod_target_xcconfig = {
49
+ 'HEADER_SEARCH_PATHS' => '$(CONFIGURATION_BUILD_DIR)/react-native-maps'
50
+ }
22
51
  end