react-native-maps 1.21.0-alpha.62 → 1.21.0-alpha.64

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.
@@ -101,9 +101,9 @@ repositories {
101
101
 
102
102
  dependencies {
103
103
  implementation 'com.facebook.react:react-native:+'
104
- implementation "com.google.android.gms:play-services-base:${safeExtGet('playServicesVersion', '18.5.0')}"
105
- implementation "com.google.android.gms:play-services-maps:${safeExtGet('playServicesVersion', '18.5.0')}"
106
- implementation "com.google.android.gms:play-services-location:21.0.1"
104
+ implementation "com.google.android.gms:play-services-base:${safeExtGet('googlePlayServicesBaseVersion', '18.5.0')}"
105
+ implementation "com.google.android.gms:play-services-maps:${safeExtGet('googlePlayServicesMapsVersion', '19.0.0')}"
106
+ implementation "com.google.android.gms:play-services-location:${safeExtGet('googlePlayServicesLocationVersion', '21.3.0')}"
107
107
  implementation 'com.google.maps.android:android-maps-utils:3.10.0'
108
- implementation "androidx.work:work-runtime:2.7.1"
108
+ implementation "androidx.work:work-runtime:2.9.1"
109
109
  }
@@ -14,10 +14,11 @@ import androidx.annotation.Nullable;
14
14
  import com.facebook.react.bridge.ColorPropConverter;
15
15
  import com.facebook.react.bridge.ReadableArray;
16
16
  import com.facebook.react.bridge.ReadableMap;
17
+ import com.facebook.react.uimanager.BaseViewManager;
17
18
  import com.facebook.react.uimanager.BaseViewManagerDelegate;
18
- import com.facebook.react.uimanager.BaseViewManagerInterface;
19
+ import com.facebook.react.uimanager.LayoutShadowNode;
19
20
 
20
- public class RNMapsMapViewManagerDelegate<T extends View, U extends BaseViewManagerInterface<T> & RNMapsMapViewManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
21
+ public class RNMapsMapViewManagerDelegate<T extends View, U extends BaseViewManager<T, ? extends LayoutShadowNode> & RNMapsMapViewManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
21
22
  public RNMapsMapViewManagerDelegate(U viewManager) {
22
23
  super(viewManager);
23
24
  }
@@ -14,10 +14,11 @@ import androidx.annotation.Nullable;
14
14
  import com.facebook.react.bridge.ColorPropConverter;
15
15
  import com.facebook.react.bridge.ReadableArray;
16
16
  import com.facebook.react.bridge.ReadableMap;
17
+ import com.facebook.react.uimanager.BaseViewManager;
17
18
  import com.facebook.react.uimanager.BaseViewManagerDelegate;
18
- import com.facebook.react.uimanager.BaseViewManagerInterface;
19
+ import com.facebook.react.uimanager.LayoutShadowNode;
19
20
 
20
- public class RNMapsMarkerManagerDelegate<T extends View, U extends BaseViewManagerInterface<T> & RNMapsMarkerManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
21
+ public class RNMapsMarkerManagerDelegate<T extends View, U extends BaseViewManager<T, ? extends LayoutShadowNode> & RNMapsMarkerManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
21
22
  public RNMapsMarkerManagerDelegate(U viewManager) {
22
23
  super(viewManager);
23
24
  }
@@ -25,7 +25,6 @@
25
25
  @property (nonatomic, strong) UIColor *strokeColor;
26
26
  @property (nonatomic, strong) NSArray<UIColor *> *strokeColors;
27
27
  @property (nonatomic, assign) double strokeWidth;
28
- @property (nonatomic, assign) UIColor *fillColor;
29
28
  @property (nonatomic, strong) NSArray<NSNumber *> *lineDashPattern;
30
29
  @property (nonatomic, assign) BOOL geodesic;
31
30
  @property (nonatomic, assign) NSString *title;
@@ -19,7 +19,6 @@
19
19
  {
20
20
  if (self = [super init]) {
21
21
  _polyline = [[AIRGMSPolyline alloc] init];
22
- _polyline.spans = @[[GMSStyleSpan spanWithColor:_strokeColor]];
23
22
  _polyline.strokeColor = _strokeColor;
24
23
  }
25
24
  return self;
@@ -79,12 +78,6 @@
79
78
  _polyline.strokeWidth = strokeWidth;
80
79
  }
81
80
 
82
- -(void)setFillColor:(UIColor *)fillColor
83
- {
84
- _fillColor = fillColor;
85
- _polyline.spans = @[[GMSStyleSpan spanWithColor:fillColor]];
86
- }
87
-
88
81
  - (void)setLineDashPattern:(NSArray<NSNumber *> *)lineDashPattern {
89
82
  _lineDashPattern = lineDashPattern;
90
83
  [self configureStyleSpansIfNeeded];
@@ -516,7 +516,6 @@ const NSInteger AIRMapMaxZoomLevel = 20;
516
516
 
517
517
  - (void)setUserInterfaceStyle:(NSString*)userInterfaceStyle
518
518
  {
519
- if (@available(iOS 13.0, *)) {
520
519
  if([userInterfaceStyle isEqualToString:@"light"]) {
521
520
  self.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
522
521
  } else if([userInterfaceStyle isEqualToString:@"dark"]) {
@@ -524,9 +523,6 @@ const NSInteger AIRMapMaxZoomLevel = 20;
524
523
  } else {
525
524
  self.overrideUserInterfaceStyle = UIUserInterfaceStyleUnspecified;
526
525
  }
527
- } else {
528
- NSLog(@"UserInterfaceStyle not supported below iOS 13");
529
- }
530
526
  }
531
527
 
532
528
  - (void)setTintColor:(UIColor *)tintColor
@@ -654,8 +650,6 @@ const NSInteger AIRMapMaxZoomLevel = 20;
654
650
  }
655
651
 
656
652
  - (void)setCameraZoomRange:(NSDictionary *)cameraZoomRange {
657
- if (@available(iOS 13.0, *)) {
658
-
659
653
  if (cameraZoomRange == nil) {
660
654
  cameraZoomRange = @{};
661
655
  }
@@ -686,7 +680,6 @@ const NSInteger AIRMapMaxZoomLevel = 20;
686
680
 
687
681
  self.legacyZoomConstraintsEnabled = NO;
688
682
  [super setCameraZoomRange:zoomRange animated:animated];
689
- }
690
683
  }
691
684
 
692
685
 
@@ -3,7 +3,7 @@
3
3
  #ifdef RCT_NEW_ARCH_ENABLED
4
4
 
5
5
  #import <Foundation/Foundation.h>
6
- #import <react-native-maps-generated//RNMapsSpecs.h>
6
+ #import <react-native-maps-generated/RNMapsSpecs.h>
7
7
 
8
8
  NS_ASSUME_NONNULL_BEGIN
9
9
 
@@ -14,7 +14,7 @@ export type MapPolylineProps = ViewProps & {
14
14
  * The fill color to use for the path.
15
15
  *
16
16
  * @default `#000`, `rgba(r,g,b,0.5)`
17
- * @platform iOS: Supported
17
+ * @platform iOS: Apple Maps only
18
18
  * @platform Android: Not supported
19
19
  */
20
20
  fillColor?: string;
package/lib/MapView.d.ts CHANGED
@@ -492,7 +492,7 @@ export type MapViewProps = ViewProps & {
492
492
  * Sets the map to the style selected.
493
493
  *
494
494
  * @default System setting
495
- * @platform iOS: Apple Maps only (iOS >= 13.0)
495
+ * @platform iOS: Supported
496
496
  * @platform Android: Supported
497
497
  */
498
498
  userInterfaceStyle?: 'light' | 'dark';
@@ -630,8 +630,8 @@ export interface MapFabricNativeProps extends ViewProps {
630
630
  * Sets the map to the style selected.
631
631
  *
632
632
  * @default System setting
633
- * @platform iOS: Apple Maps only (iOS >= 13.0)
634
- * @platform Android: Not supported
633
+ * @platform iOS: Supported
634
+ * @platform Android: Supported
635
635
  */
636
636
  userInterfaceStyle?: WithDefault<'system' | 'light' | 'dark', 'system'>;
637
637
  /**
@@ -736,8 +736,8 @@ export interface MapFabricNativeProps extends ViewProps {
736
736
  * Sets the map to the style selected.
737
737
  *
738
738
  * @default System setting
739
- * @platform iOS: Apple Maps only (iOS >= 13.0)
740
- * @platform Android: Not supported
739
+ * @platform iOS: Supported
740
+ * @platform Android: Supported
741
741
  */
742
742
  userInterfaceStyle?: WithDefault<'system' | 'light' | 'dark', 'system'>;
743
743
  /**
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.21.0-alpha.62",
8
+ "version": "1.21.0-alpha.64",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",
@@ -44,8 +44,8 @@
44
44
  "mapkit"
45
45
  ],
46
46
  "peerDependencies": {
47
- "react": ">= 17.0.1",
48
- "react-native": ">= 0.64.3",
47
+ "react": ">= 18.2.0",
48
+ "react-native": ">= 0.74.0",
49
49
  "react-native-web": ">= 0.11"
50
50
  },
51
51
  "peerDependenciesMeta": {
@@ -64,18 +64,17 @@
64
64
  "@babel/core": "^7.25.2",
65
65
  "@babel/preset-env": "^7.25.3",
66
66
  "@babel/runtime": "^7.25.0",
67
- "react-native": "^0.76.5",
67
+ "react-native": "^0.77.1",
68
68
  "@react-native-community/cli": "15.0.1",
69
69
  "react": "^18.3.1",
70
- "@react-native/babel-preset": "0.76.5",
71
- "@react-native/eslint-config": "0.76.5",
72
- "@react-native/metro-config": "0.76.5",
73
- "@react-native/typescript-config": "0.76.5",
70
+ "@react-native/babel-preset": "0.77.1",
71
+ "@react-native/eslint-config": "0.77.1",
72
+ "@react-native/metro-config": "0.77.1",
73
+ "@react-native/typescript-config": "0.77.1",
74
74
  "@types/react": "^18.2.6",
75
75
  "@types/react-test-renderer": "^18.0.0",
76
- "babel-jest": "^29.6.3",
77
76
  "eslint": "^8.19.0",
78
- "@types/jest": "29.5.1",
77
+ "@types/jest": "29.5.13",
79
78
  "jest": "^29.6.3",
80
79
  "prettier": "2.8.8",
81
80
  "react-test-renderer": "18.3.1",
@@ -9,7 +9,7 @@ Pod::Spec.new do |s|
9
9
  s.authors = package["author"]
10
10
  s.homepage = package["homepage"]
11
11
  s.license = package["license"]
12
- s.platform = :ios, "12.0"
12
+ s.platform = :ios, "13.0"
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/AirMaps/**/*.{h,m,mm,swift}"