react-native-maps 1.5.1-beta.1 → 1.5.1-beta.3
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.
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
#import <objc/runtime.h>
|
|
26
26
|
|
|
27
27
|
#ifdef HAVE_GOOGLE_MAPS_UTILS
|
|
28
|
-
#import
|
|
29
|
-
#import
|
|
30
|
-
#import
|
|
31
|
-
#import
|
|
28
|
+
#import "GMUKMLParser.h"
|
|
29
|
+
#import "GMUPlacemark.h"
|
|
30
|
+
#import "GMUPoint.h"
|
|
31
|
+
#import "GMUGeometryRenderer.h"
|
|
32
32
|
#define REQUIRES_GOOGLE_MAPS_UTILS(feature) do {} while (0)
|
|
33
33
|
#else
|
|
34
34
|
#define GMUKMLParser void
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
- (void)setCoordinates:(NSArray<AIRMapCoordinate *> *)coordinates {
|
|
72
72
|
_coordinates = coordinates;
|
|
73
|
-
CLLocationCoordinate2D coords
|
|
73
|
+
CLLocationCoordinate2D *coords = calloc(coordinates.count, sizeof(CLLocationCoordinate2D));
|
|
74
74
|
for(int i = 0; i < coordinates.count; i++)
|
|
75
75
|
{
|
|
76
76
|
coords[i] = coordinates[i].coordinate;
|
|
@@ -80,7 +80,8 @@
|
|
|
80
80
|
} else {
|
|
81
81
|
self.polyline = [MKPolyline polylineWithCoordinates:coords count:coordinates.count];
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
free(coords);
|
|
84
|
+
|
|
84
85
|
self.renderer = [self createRenderer];
|
|
85
86
|
[self update];
|
|
86
87
|
}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"main": "lib/index.js",
|
|
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.5.1-beta.
|
|
8
|
+
"version": "1.5.1-beta.3",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
"test": "jest",
|
|
16
16
|
"prepare": "husky install",
|
|
17
17
|
"release": "semantic-release",
|
|
18
|
-
"
|
|
18
|
+
"bundle-install": "cd example && bundle install",
|
|
19
|
+
"pod-install": "cd example/ios && bundle exec pod install",
|
|
20
|
+
"bootstrap": "yarn --cwd example && yarn && yarn bundle-install && yarn pod-install"
|
|
19
21
|
},
|
|
20
22
|
"files": [
|
|
21
23
|
"lib",
|
|
@@ -61,6 +63,7 @@
|
|
|
61
63
|
"@types/jest": "29.5.0",
|
|
62
64
|
"@types/react-native": "0.70.13",
|
|
63
65
|
"babel-jest": "29.5.0",
|
|
66
|
+
"detox": "20.7.0",
|
|
64
67
|
"eslint": "8.38.0",
|
|
65
68
|
"husky": "8.0.3",
|
|
66
69
|
"jest": "29.5.0",
|
|
@@ -74,6 +77,10 @@
|
|
|
74
77
|
"@types/geojson": "^7946.0.10"
|
|
75
78
|
},
|
|
76
79
|
"jest": {
|
|
77
|
-
"preset": "react-native"
|
|
80
|
+
"preset": "react-native",
|
|
81
|
+
"testPathIgnorePatterns": [
|
|
82
|
+
"/node_modules/",
|
|
83
|
+
"e2e"
|
|
84
|
+
]
|
|
78
85
|
}
|
|
79
86
|
}
|
|
@@ -13,7 +13,8 @@ Pod::Spec.new do |s|
|
|
|
13
13
|
|
|
14
14
|
s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }
|
|
15
15
|
s.source_files = "ios/AirGoogleMaps/**/*.{h,m}"
|
|
16
|
-
s.compiler_flags = '-DHAVE_GOOGLE_MAPS=1', '-DHAVE_GOOGLE_MAPS_UTILS=1'
|
|
16
|
+
s.compiler_flags = '-DHAVE_GOOGLE_MAPS=1', '-DHAVE_GOOGLE_MAPS_UTILS=1'
|
|
17
|
+
s.pod_target_xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"${PODS_CONFIGURATION_BUILD_DIR}/react-native-maps"' }
|
|
17
18
|
|
|
18
19
|
s.dependency 'React-Core'
|
|
19
20
|
s.dependency 'GoogleMaps', '7.3.0'
|