react-native-google-maps-plus 1.8.4 → 1.8.6

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.
Files changed (73) hide show
  1. package/README.md +107 -129
  2. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +19 -0
  3. package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +6 -2
  4. package/android/src/main/java/com/rngooglemapsplus/extensions/RNUserInterfaceExtension.kt +1 -1
  5. package/ios/GoogleMapViewImpl.swift +38 -13
  6. package/ios/MapMarkerBuilder.swift +2 -1
  7. package/ios/extensions/RNUserInterface+Extension.swift +1 -1
  8. package/lib/typescript/src/types.d.ts +1 -1
  9. package/lib/typescript/src/types.d.ts.map +1 -1
  10. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusModuleSpec.cpp +6 -0
  11. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusModuleSpec.hpp +1 -0
  12. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +6 -0
  13. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +1 -0
  14. package/nitrogen/generated/android/c++/JRNUserInterfaceStyle.hpp +3 -3
  15. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorBuilding.kt +0 -1
  16. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorLevel.kt +0 -1
  17. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNLatLng.kt +0 -1
  18. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNLocation.kt +0 -1
  19. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNLocationErrorCode.kt +0 -1
  20. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNMapErrorCode.kt +0 -1
  21. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNRegion_RNCamera.kt +0 -1
  22. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNRegion_RNCamera_bool.kt +0 -1
  23. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_bool.kt +0 -1
  24. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_std__string.kt +0 -1
  25. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_std__string_RNLatLng.kt +0 -1
  26. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_std__string_std__string_RNLatLng.kt +0 -1
  27. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusModuleSpec.kt +7 -1
  28. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +7 -2
  29. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNAndroidLocationConfig.kt +2 -1
  30. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCamera.kt +2 -1
  31. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCameraUpdate.kt +2 -1
  32. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCircle.kt +2 -1
  33. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmap.kt +2 -1
  34. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmapGradient.kt +2 -1
  35. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmapPoint.kt +2 -1
  36. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIOSLocationConfig.kt +2 -1
  37. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIndoorBuilding.kt +2 -1
  38. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIndoorLevel.kt +2 -1
  39. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt +2 -1
  40. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNKMLayer.kt +2 -1
  41. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLatLng.kt +2 -1
  42. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLatLngBounds.kt +2 -1
  43. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocation.kt +2 -1
  44. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationAndroid.kt +2 -1
  45. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationConfig.kt +2 -1
  46. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationIOS.kt +2 -1
  47. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationPermissionResult.kt +2 -1
  48. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapPadding.kt +2 -1
  49. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapUiSettings.kt +2 -1
  50. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapZoomConfig.kt +2 -1
  51. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +2 -1
  52. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarkerSvg.kt +2 -1
  53. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolygon.kt +2 -1
  54. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolygonHole.kt +2 -1
  55. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolyline.kt +2 -1
  56. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPosition.kt +2 -1
  57. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNRegion.kt +2 -1
  58. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNSize.kt +2 -1
  59. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNSnapshotOptions.kt +2 -1
  60. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNUrlTileOverlay.kt +2 -1
  61. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNUserInterfaceStyle.kt +1 -1
  62. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +4 -6
  63. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusModuleSpecSwift.hpp +3 -0
  64. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +3 -0
  65. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusModuleSpec.swift +8 -0
  66. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusModuleSpec_cxx.swift +10 -1
  67. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +8 -0
  68. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +10 -1
  69. package/nitrogen/generated/ios/swift/RNHeatmapGradient.swift +15 -11
  70. package/nitrogen/generated/ios/swift/RNUserInterfaceStyle.swift +4 -4
  71. package/nitrogen/generated/shared/c++/RNUserInterfaceStyle.hpp +4 -4
  72. package/package.json +8 -8
  73. package/src/types.ts +1 -1
@@ -145,7 +145,6 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
145
145
  #include "RNSize.hpp"
146
146
  #include "RNUrlTileOverlay.hpp"
147
147
  #include "RNUserInterfaceStyle.hpp"
148
- #include <NitroModules/FastVectorCopy.hpp>
149
148
  #include <NitroModules/Promise.hpp>
150
149
  #include <NitroModules/PromiseHolder.hpp>
151
150
  #include <NitroModules/Result.hpp>
@@ -680,11 +679,10 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
680
679
  * Specialized version of `std::vector<double>`.
681
680
  */
682
681
  using std__vector_double_ = std::vector<double>;
683
- inline std::vector<double> copy_std__vector_double_(const double* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
684
- return margelo::nitro::FastVectorCopy<double>(data, size);
685
- }
686
- inline const double* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_double_(const std::vector<double>& vector) noexcept {
687
- return vector.data();
682
+ inline std::vector<double> create_std__vector_double_(size_t size) noexcept {
683
+ std::vector<double> vector;
684
+ vector.reserve(size);
685
+ return vector;
688
686
  }
689
687
 
690
688
  // pragma MARK: std::optional<RNHeatmapGradient>
@@ -59,6 +59,9 @@ namespace margelo::nitro::rngooglemapsplus {
59
59
  void dispose() noexcept override {
60
60
  _swiftPart.dispose();
61
61
  }
62
+ std::string toString() override {
63
+ return _swiftPart.toString();
64
+ }
62
65
 
63
66
  public:
64
67
  // Properties
@@ -185,6 +185,9 @@ namespace margelo::nitro::rngooglemapsplus {
185
185
  void dispose() noexcept override {
186
186
  _swiftPart.dispose();
187
187
  }
188
+ std::string toString() override {
189
+ return _swiftPart.toString();
190
+ }
188
191
 
189
192
  public:
190
193
  // Properties
@@ -7,6 +7,7 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
+ import NitroModules
10
11
 
11
12
  /// See ``HybridRNGoogleMapsPlusModuleSpec``
12
13
  public protocol HybridRNGoogleMapsPlusModuleSpec_protocol: HybridObject {
@@ -20,6 +21,13 @@ public protocol HybridRNGoogleMapsPlusModuleSpec_protocol: HybridObject {
20
21
  func isGooglePlayServicesAvailable() throws -> Bool
21
22
  }
22
23
 
24
+ public extension HybridRNGoogleMapsPlusModuleSpec_protocol {
25
+ /// Default implementation of ``HybridObject.toString``
26
+ func toString() -> String {
27
+ return "[HybridObject RNGoogleMapsPlusModule]"
28
+ }
29
+ }
30
+
23
31
  /// See ``HybridRNGoogleMapsPlusModuleSpec``
24
32
  open class HybridRNGoogleMapsPlusModuleSpec_base {
25
33
  private weak var cxxWrapper: HybridRNGoogleMapsPlusModuleSpec_cxx? = nil
@@ -7,6 +7,7 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
+ import NitroModules
10
11
 
11
12
  /**
12
13
  * A class implementation that bridges HybridRNGoogleMapsPlusModuleSpec over to C++.
@@ -76,7 +77,7 @@ open class HybridRNGoogleMapsPlusModuleSpec_cxx {
76
77
  */
77
78
  public func getCxxPart() -> bridge.std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ {
78
79
  let cachedCxxPart = self.__cxxPart.lock()
79
- if cachedCxxPart.__convertToBool() {
80
+ if Bool(fromCxx: cachedCxxPart) {
80
81
  return cachedCxxPart
81
82
  } else {
82
83
  let newCxxPart = bridge.create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(self.toUnsafe())
@@ -105,6 +106,14 @@ open class HybridRNGoogleMapsPlusModuleSpec_cxx {
105
106
  self.__implementation.dispose()
106
107
  }
107
108
 
109
+ /**
110
+ * Call toString() on the Swift class.
111
+ */
112
+ @inline(__always)
113
+ public func toString() -> String {
114
+ return self.__implementation.toString()
115
+ }
116
+
108
117
  // Properties
109
118
 
110
119
 
@@ -7,6 +7,7 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
+ import NitroModules
10
11
 
11
12
  /// See ``HybridRNGoogleMapsPlusViewSpec``
12
13
  public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridView {
@@ -70,6 +71,13 @@ public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridVie
70
71
  func isGooglePlayServicesAvailable() throws -> Bool
71
72
  }
72
73
 
74
+ public extension HybridRNGoogleMapsPlusViewSpec_protocol {
75
+ /// Default implementation of ``HybridObject.toString``
76
+ func toString() -> String {
77
+ return "[HybridObject RNGoogleMapsPlusView]"
78
+ }
79
+ }
80
+
73
81
  /// See ``HybridRNGoogleMapsPlusViewSpec``
74
82
  open class HybridRNGoogleMapsPlusViewSpec_base {
75
83
  private weak var cxxWrapper: HybridRNGoogleMapsPlusViewSpec_cxx? = nil
@@ -7,6 +7,7 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
+ import NitroModules
10
11
 
11
12
  /**
12
13
  * A class implementation that bridges HybridRNGoogleMapsPlusViewSpec over to C++.
@@ -76,7 +77,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
76
77
  */
77
78
  public func getCxxPart() -> bridge.std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ {
78
79
  let cachedCxxPart = self.__cxxPart.lock()
79
- if cachedCxxPart.__convertToBool() {
80
+ if Bool(fromCxx: cachedCxxPart) {
80
81
  return cachedCxxPart
81
82
  } else {
82
83
  let newCxxPart = bridge.create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(self.toUnsafe())
@@ -105,6 +106,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
105
106
  self.__implementation.dispose()
106
107
  }
107
108
 
109
+ /**
110
+ * Call toString() on the Swift class.
111
+ */
112
+ @inline(__always)
113
+ public func toString() -> String {
114
+ return self.__implementation.toString()
115
+ }
116
+
108
117
  // Properties
109
118
  public final var initialProps: bridge.std__optional_RNInitialProps_ {
110
119
  @inline(__always)
@@ -25,9 +25,13 @@ public extension RNHeatmapGradient {
25
25
  __vector.push_back(std.string(__item))
26
26
  }
27
27
  return __vector
28
- }(), startPoints.withUnsafeBufferPointer { __pointer -> bridge.std__vector_double_ in
29
- return bridge.copy_std__vector_double_(__pointer.baseAddress!, startPoints.count)
30
- }, colorMapSize)
28
+ }(), { () -> bridge.std__vector_double_ in
29
+ var __vector = bridge.create_std__vector_double_(startPoints.count)
30
+ for __item in startPoints {
31
+ __vector.push_back(__item)
32
+ }
33
+ return __vector
34
+ }(), colorMapSize)
31
35
  }
32
36
 
33
37
  var colors: [String] {
@@ -50,17 +54,17 @@ public extension RNHeatmapGradient {
50
54
  var startPoints: [Double] {
51
55
  @inline(__always)
52
56
  get {
53
- return { () -> [Double] in
54
- let __data = bridge.get_data_std__vector_double_(self.__startPoints)
55
- let __size = self.__startPoints.size()
56
- return Array(UnsafeBufferPointer(start: __data, count: __size))
57
- }()
57
+ return self.__startPoints.map({ __item in __item })
58
58
  }
59
59
  @inline(__always)
60
60
  set {
61
- self.__startPoints = newValue.withUnsafeBufferPointer { __pointer -> bridge.std__vector_double_ in
62
- return bridge.copy_std__vector_double_(__pointer.baseAddress!, newValue.count)
63
- }
61
+ self.__startPoints = { () -> bridge.std__vector_double_ in
62
+ var __vector = bridge.create_std__vector_double_(newValue.count)
63
+ for __item in newValue {
64
+ __vector.push_back(__item)
65
+ }
66
+ return __vector
67
+ }()
64
68
  }
65
69
  }
66
70
 
@@ -21,8 +21,8 @@ public extension RNUserInterfaceStyle {
21
21
  self = .light
22
22
  case "dark":
23
23
  self = .dark
24
- case "default":
25
- self = .default
24
+ case "system":
25
+ self = .system
26
26
  default:
27
27
  return nil
28
28
  }
@@ -37,8 +37,8 @@ public extension RNUserInterfaceStyle {
37
37
  return "light"
38
38
  case .dark:
39
39
  return "dark"
40
- case .default:
41
- return "default"
40
+ case .system:
41
+ return "system"
42
42
  }
43
43
  }
44
44
  }
@@ -31,7 +31,7 @@ namespace margelo::nitro::rngooglemapsplus {
31
31
  enum class RNUserInterfaceStyle {
32
32
  LIGHT SWIFT_NAME(light) = 0,
33
33
  DARK SWIFT_NAME(dark) = 1,
34
- DEFAULT SWIFT_NAME(default) = 2,
34
+ SYSTEM SWIFT_NAME(system) = 2,
35
35
  } CLOSED_ENUM;
36
36
 
37
37
  } // namespace margelo::nitro::rngooglemapsplus
@@ -46,7 +46,7 @@ namespace margelo::nitro {
46
46
  switch (hashString(unionValue.c_str(), unionValue.size())) {
47
47
  case hashString("light"): return margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle::LIGHT;
48
48
  case hashString("dark"): return margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle::DARK;
49
- case hashString("default"): return margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle::DEFAULT;
49
+ case hashString("system"): return margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle::SYSTEM;
50
50
  default: [[unlikely]]
51
51
  throw std::invalid_argument("Cannot convert \"" + unionValue + "\" to enum RNUserInterfaceStyle - invalid value!");
52
52
  }
@@ -55,7 +55,7 @@ namespace margelo::nitro {
55
55
  switch (arg) {
56
56
  case margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle::LIGHT: return JSIConverter<std::string>::toJSI(runtime, "light");
57
57
  case margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle::DARK: return JSIConverter<std::string>::toJSI(runtime, "dark");
58
- case margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle::DEFAULT: return JSIConverter<std::string>::toJSI(runtime, "default");
58
+ case margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle::SYSTEM: return JSIConverter<std::string>::toJSI(runtime, "system");
59
59
  default: [[unlikely]]
60
60
  throw std::invalid_argument("Cannot convert RNUserInterfaceStyle to JS - invalid value: "
61
61
  + std::to_string(static_cast<int>(arg)) + "!");
@@ -69,7 +69,7 @@ namespace margelo::nitro {
69
69
  switch (hashString(unionValue.c_str(), unionValue.size())) {
70
70
  case hashString("light"):
71
71
  case hashString("dark"):
72
- case hashString("default"):
72
+ case hashString("system"):
73
73
  return true;
74
74
  default:
75
75
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-google-maps-plus",
3
- "version": "1.8.4",
3
+ "version": "1.8.6",
4
4
  "description": "React Native wrapper for Android & iOS Google Maps SDK",
5
5
  "main": "./lib/module/index.js",
6
6
  "module": "./lib/module/index.js",
@@ -80,9 +80,9 @@
80
80
  "devDependencies": {
81
81
  "@commitlint/cli": "20.1.0",
82
82
  "@commitlint/config-conventional": "20.0.0",
83
- "@eslint/compat": "1.4.0",
83
+ "@eslint/compat": "1.4.1",
84
84
  "@eslint/eslintrc": "3.3.1",
85
- "@eslint/js": "9.38.0",
85
+ "@eslint/js": "9.39.1",
86
86
  "@expo/config-plugins": "54.0.2",
87
87
  "@jamesacarr/eslint-formatter-github-actions": "0.2.0",
88
88
  "@react-native/babel-preset": "0.82.1",
@@ -95,18 +95,18 @@
95
95
  "clang-format-node": "2.0.3",
96
96
  "conventional-changelog-conventionalcommits": "9.1.0",
97
97
  "del-cli": "7.0.0",
98
- "eslint": "9.38.0",
98
+ "eslint": "9.39.1",
99
99
  "eslint-config-prettier": "10.1.8",
100
100
  "eslint-plugin-ft-flow": "3.0.11",
101
101
  "eslint-plugin-prettier": "5.5.4",
102
102
  "jest": "30.2.0",
103
- "lefthook": "2.0.0",
104
- "nitrogen": "0.30.2",
103
+ "lefthook": "2.0.2",
104
+ "nitrogen": "0.31.4",
105
105
  "prettier": "3.6.2",
106
106
  "react": "19.1.1",
107
107
  "react-native": "0.82.1",
108
- "react-native-builder-bob": "0.40.13",
109
- "react-native-nitro-modules": "0.30.2",
108
+ "react-native-builder-bob": "0.40.14",
109
+ "react-native-nitro-modules": "0.31.4",
110
110
  "semantic-release": "25.0.1",
111
111
  "typescript": "5.9.3"
112
112
  },
package/src/types.ts CHANGED
@@ -61,7 +61,7 @@ export type RNMapPadding = {
61
61
 
62
62
  export type RNMapType = 'none' | 'normal' | 'hybrid' | 'satellite' | 'terrain';
63
63
 
64
- export type RNUserInterfaceStyle = 'light' | 'dark' | 'default';
64
+ export type RNUserInterfaceStyle = 'light' | 'dark' | 'system';
65
65
 
66
66
  export type RNFeatureType = string;
67
67