react-native-google-maps-plus 1.8.4-dev.2 → 1.8.4-dev.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.
Files changed (69) hide show
  1. package/README.md +73 -131
  2. package/android/src/main/java/com/rngooglemapsplus/extensions/RNUserInterfaceExtension.kt +1 -1
  3. package/ios/extensions/RNUserInterface+Extension.swift +1 -1
  4. package/lib/typescript/src/types.d.ts +1 -1
  5. package/lib/typescript/src/types.d.ts.map +1 -1
  6. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusModuleSpec.cpp +0 -6
  7. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusModuleSpec.hpp +0 -1
  8. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +0 -6
  9. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +0 -1
  10. package/nitrogen/generated/android/c++/JRNUserInterfaceStyle.hpp +3 -3
  11. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorBuilding.kt +1 -0
  12. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorLevel.kt +1 -0
  13. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNLatLng.kt +1 -0
  14. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNLocation.kt +1 -0
  15. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNLocationErrorCode.kt +1 -0
  16. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNMapErrorCode.kt +1 -0
  17. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNRegion_RNCamera.kt +1 -0
  18. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNRegion_RNCamera_bool.kt +1 -0
  19. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_bool.kt +1 -0
  20. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_std__string.kt +1 -0
  21. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_std__string_RNLatLng.kt +1 -0
  22. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_std__string_std__string_RNLatLng.kt +1 -0
  23. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusModuleSpec.kt +1 -7
  24. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +2 -7
  25. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNAndroidLocationConfig.kt +1 -2
  26. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCamera.kt +1 -2
  27. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCameraUpdate.kt +1 -2
  28. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCircle.kt +1 -2
  29. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmap.kt +1 -2
  30. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmapGradient.kt +1 -2
  31. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmapPoint.kt +1 -2
  32. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIOSLocationConfig.kt +1 -2
  33. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIndoorBuilding.kt +1 -2
  34. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIndoorLevel.kt +1 -2
  35. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt +1 -2
  36. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNKMLayer.kt +1 -2
  37. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLatLng.kt +1 -2
  38. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLatLngBounds.kt +1 -2
  39. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocation.kt +1 -2
  40. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationAndroid.kt +1 -2
  41. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationConfig.kt +1 -2
  42. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationIOS.kt +1 -2
  43. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationPermissionResult.kt +1 -2
  44. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapPadding.kt +1 -2
  45. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapUiSettings.kt +1 -2
  46. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapZoomConfig.kt +1 -2
  47. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +1 -2
  48. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarkerSvg.kt +1 -2
  49. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolygon.kt +1 -2
  50. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolygonHole.kt +1 -2
  51. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolyline.kt +1 -2
  52. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPosition.kt +1 -2
  53. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNRegion.kt +1 -2
  54. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNSize.kt +1 -2
  55. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNSnapshotOptions.kt +1 -2
  56. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNUrlTileOverlay.kt +1 -2
  57. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNUserInterfaceStyle.kt +1 -1
  58. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +6 -4
  59. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusModuleSpecSwift.hpp +0 -3
  60. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +0 -3
  61. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusModuleSpec.swift +0 -8
  62. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusModuleSpec_cxx.swift +1 -10
  63. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +0 -8
  64. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +1 -10
  65. package/nitrogen/generated/ios/swift/RNHeatmapGradient.swift +11 -15
  66. package/nitrogen/generated/ios/swift/RNUserInterfaceStyle.swift +4 -4
  67. package/nitrogen/generated/shared/c++/RNUserInterfaceStyle.hpp +4 -4
  68. package/package.json +3 -3
  69. package/src/types.ts +1 -1
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -27,8 +28,6 @@ data class RNHeatmapPoint(
27
28
  @Keep
28
29
  val weight: Double
29
30
  ) {
30
- /* primary constructor */
31
-
32
31
  private companion object {
33
32
  /**
34
33
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -24,8 +25,6 @@ data class RNIOSLocationConfig(
24
25
  @Keep
25
26
  val distanceFilterMeters: Double?
26
27
  ) {
27
- /* primary constructor */
28
-
29
28
  private companion object {
30
29
  /**
31
30
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -30,8 +31,6 @@ data class RNIndoorBuilding(
30
31
  @Keep
31
32
  val underground: Boolean?
32
33
  ) {
33
- /* primary constructor */
34
-
35
34
  private companion object {
36
35
  /**
37
36
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -30,8 +31,6 @@ data class RNIndoorLevel(
30
31
  @Keep
31
32
  val active: Boolean?
32
33
  ) {
33
- /* primary constructor */
34
-
35
34
  private companion object {
36
35
  /**
37
36
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -30,8 +31,6 @@ data class RNInitialProps(
30
31
  @Keep
31
32
  val backgroundColor: String?
32
33
  ) {
33
- /* primary constructor */
34
-
35
34
  private companion object {
36
35
  /**
37
36
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -24,8 +25,6 @@ data class RNKMLayer(
24
25
  @Keep
25
26
  val kmlString: String
26
27
  ) {
27
- /* primary constructor */
28
-
29
28
  private companion object {
30
29
  /**
31
30
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -24,8 +25,6 @@ data class RNLatLng(
24
25
  @Keep
25
26
  val longitude: Double
26
27
  ) {
27
- /* primary constructor */
28
-
29
28
  private companion object {
30
29
  /**
31
30
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -24,8 +25,6 @@ data class RNLatLngBounds(
24
25
  @Keep
25
26
  val northeast: RNLatLng
26
27
  ) {
27
- /* primary constructor */
28
-
29
28
  private companion object {
30
29
  /**
31
30
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -42,8 +43,6 @@ data class RNLocation(
42
43
  @Keep
43
44
  val ios: RNLocationIOS?
44
45
  ) {
45
- /* primary constructor */
46
-
47
46
  private companion object {
48
47
  /**
49
48
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -42,8 +43,6 @@ data class RNLocationAndroid(
42
43
  @Keep
43
44
  val isMock: Boolean?
44
45
  ) {
45
- /* primary constructor */
46
-
47
46
  private companion object {
48
47
  /**
49
48
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -24,8 +25,6 @@ data class RNLocationConfig(
24
25
  @Keep
25
26
  val ios: RNIOSLocationConfig?
26
27
  ) {
27
- /* primary constructor */
28
-
29
28
  private companion object {
30
29
  /**
31
30
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -39,8 +40,6 @@ data class RNLocationIOS(
39
40
  @Keep
40
41
  val timestamp: Double?
41
42
  ) {
42
- /* primary constructor */
43
-
44
43
  private companion object {
45
44
  /**
46
45
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -24,8 +25,6 @@ data class RNLocationPermissionResult(
24
25
  @Keep
25
26
  val ios: RNIOSPermissionResult?
26
27
  ) {
27
- /* primary constructor */
28
-
29
28
  private companion object {
30
29
  /**
31
30
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -30,8 +31,6 @@ data class RNMapPadding(
30
31
  @Keep
31
32
  val right: Double
32
33
  ) {
33
- /* primary constructor */
34
-
35
34
  private companion object {
36
35
  /**
37
36
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -57,8 +58,6 @@ data class RNMapUiSettings(
57
58
  @Keep
58
59
  val consumeOnMyLocationButtonPress: Boolean?
59
60
  ) {
60
- /* primary constructor */
61
-
62
61
  private companion object {
63
62
  /**
64
63
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -24,8 +25,6 @@ data class RNMapZoomConfig(
24
25
  @Keep
25
26
  val max: Double?
26
27
  ) {
27
- /* primary constructor */
28
-
29
28
  private companion object {
30
29
  /**
31
30
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -57,8 +58,6 @@ data class RNMarker(
57
58
  @Keep
58
59
  val infoWindowIconSvg: RNMarkerSvg?
59
60
  ) {
60
- /* primary constructor */
61
-
62
61
  private companion object {
63
62
  /**
64
63
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -27,8 +28,6 @@ data class RNMarkerSvg(
27
28
  @Keep
28
29
  val svgString: String
29
30
  ) {
30
- /* primary constructor */
31
-
32
31
  private companion object {
33
32
  /**
34
33
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -45,8 +46,6 @@ data class RNPolygon(
45
46
  @Keep
46
47
  val geodesic: Boolean?
47
48
  ) {
48
- /* primary constructor */
49
-
50
49
  private companion object {
51
50
  /**
52
51
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -21,8 +22,6 @@ data class RNPolygonHole(
21
22
  @Keep
22
23
  val coordinates: Array<RNLatLng>
23
24
  ) {
24
- /* primary constructor */
25
-
26
25
  private companion object {
27
26
  /**
28
27
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -45,8 +46,6 @@ data class RNPolyline(
45
46
  @Keep
46
47
  val width: Double?
47
48
  ) {
48
- /* primary constructor */
49
-
50
49
  private companion object {
51
50
  /**
52
51
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -24,8 +25,6 @@ data class RNPosition(
24
25
  @Keep
25
26
  val y: Double
26
27
  ) {
27
- /* primary constructor */
28
-
29
28
  private companion object {
30
29
  /**
31
30
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -33,8 +34,6 @@ data class RNRegion(
33
34
  @Keep
34
35
  val latLngBounds: RNLatLngBounds
35
36
  ) {
36
- /* primary constructor */
37
-
38
37
  private companion object {
39
38
  /**
40
39
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -24,8 +25,6 @@ data class RNSize(
24
25
  @Keep
25
26
  val height: Double
26
27
  ) {
27
- /* primary constructor */
28
-
29
28
  private companion object {
30
29
  /**
31
30
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -30,8 +31,6 @@ data class RNSnapshotOptions(
30
31
  @Keep
31
32
  val resultType: RNSnapshotResultType
32
33
  ) {
33
- /* primary constructor */
34
-
35
34
  private companion object {
36
35
  /**
37
36
  * Constructor called from C++
@@ -9,6 +9,7 @@ package com.rngooglemapsplus
9
9
 
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
12
13
 
13
14
 
14
15
  /**
@@ -36,8 +37,6 @@ data class RNUrlTileOverlay(
36
37
  @Keep
37
38
  val fadeIn: Boolean?
38
39
  ) {
39
- /* primary constructor */
40
-
41
40
  private companion object {
42
41
  /**
43
42
  * Constructor called from C++
@@ -18,5 +18,5 @@ import com.facebook.proguard.annotations.DoNotStrip
18
18
  enum class RNUserInterfaceStyle(@DoNotStrip @Keep val value: Int) {
19
19
  LIGHT(0),
20
20
  DARK(1),
21
- DEFAULT(2);
21
+ SYSTEM(2);
22
22
  }
@@ -145,6 +145,7 @@ 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>
148
149
  #include <NitroModules/Promise.hpp>
149
150
  #include <NitroModules/PromiseHolder.hpp>
150
151
  #include <NitroModules/Result.hpp>
@@ -679,10 +680,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
679
680
  * Specialized version of `std::vector<double>`.
680
681
  */
681
682
  using std__vector_double_ = std::vector<double>;
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;
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();
686
688
  }
687
689
 
688
690
  // pragma MARK: std::optional<RNHeatmapGradient>
@@ -59,9 +59,6 @@ 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
- }
65
62
 
66
63
  public:
67
64
  // Properties
@@ -185,9 +185,6 @@ 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
- }
191
188
 
192
189
  public:
193
190
  // Properties
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /// See ``HybridRNGoogleMapsPlusModuleSpec``
13
12
  public protocol HybridRNGoogleMapsPlusModuleSpec_protocol: HybridObject {
@@ -21,13 +20,6 @@ public protocol HybridRNGoogleMapsPlusModuleSpec_protocol: HybridObject {
21
20
  func isGooglePlayServicesAvailable() throws -> Bool
22
21
  }
23
22
 
24
- public extension HybridRNGoogleMapsPlusModuleSpec_protocol {
25
- /// Default implementation of ``HybridObject.toString``
26
- func toString() -> String {
27
- return "[HybridObject RNGoogleMapsPlusModule]"
28
- }
29
- }
30
-
31
23
  /// See ``HybridRNGoogleMapsPlusModuleSpec``
32
24
  open class HybridRNGoogleMapsPlusModuleSpec_base {
33
25
  private weak var cxxWrapper: HybridRNGoogleMapsPlusModuleSpec_cxx? = nil
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /**
13
12
  * A class implementation that bridges HybridRNGoogleMapsPlusModuleSpec over to C++.
@@ -77,7 +76,7 @@ open class HybridRNGoogleMapsPlusModuleSpec_cxx {
77
76
  */
78
77
  public func getCxxPart() -> bridge.std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ {
79
78
  let cachedCxxPart = self.__cxxPart.lock()
80
- if Bool(fromCxx: cachedCxxPart) {
79
+ if cachedCxxPart.__convertToBool() {
81
80
  return cachedCxxPart
82
81
  } else {
83
82
  let newCxxPart = bridge.create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(self.toUnsafe())
@@ -106,14 +105,6 @@ open class HybridRNGoogleMapsPlusModuleSpec_cxx {
106
105
  self.__implementation.dispose()
107
106
  }
108
107
 
109
- /**
110
- * Call toString() on the Swift class.
111
- */
112
- @inline(__always)
113
- public func toString() -> String {
114
- return self.__implementation.toString()
115
- }
116
-
117
108
  // Properties
118
109
 
119
110
 
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /// See ``HybridRNGoogleMapsPlusViewSpec``
13
12
  public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridView {
@@ -71,13 +70,6 @@ public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridVie
71
70
  func isGooglePlayServicesAvailable() throws -> Bool
72
71
  }
73
72
 
74
- public extension HybridRNGoogleMapsPlusViewSpec_protocol {
75
- /// Default implementation of ``HybridObject.toString``
76
- func toString() -> String {
77
- return "[HybridObject RNGoogleMapsPlusView]"
78
- }
79
- }
80
-
81
73
  /// See ``HybridRNGoogleMapsPlusViewSpec``
82
74
  open class HybridRNGoogleMapsPlusViewSpec_base {
83
75
  private weak var cxxWrapper: HybridRNGoogleMapsPlusViewSpec_cxx? = nil
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /**
13
12
  * A class implementation that bridges HybridRNGoogleMapsPlusViewSpec over to C++.
@@ -77,7 +76,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
77
76
  */
78
77
  public func getCxxPart() -> bridge.std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ {
79
78
  let cachedCxxPart = self.__cxxPart.lock()
80
- if Bool(fromCxx: cachedCxxPart) {
79
+ if cachedCxxPart.__convertToBool() {
81
80
  return cachedCxxPart
82
81
  } else {
83
82
  let newCxxPart = bridge.create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(self.toUnsafe())
@@ -106,14 +105,6 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
106
105
  self.__implementation.dispose()
107
106
  }
108
107
 
109
- /**
110
- * Call toString() on the Swift class.
111
- */
112
- @inline(__always)
113
- public func toString() -> String {
114
- return self.__implementation.toString()
115
- }
116
-
117
108
  // Properties
118
109
  public final var initialProps: bridge.std__optional_RNInitialProps_ {
119
110
  @inline(__always)
@@ -25,13 +25,9 @@ public extension RNHeatmapGradient {
25
25
  __vector.push_back(std.string(__item))
26
26
  }
27
27
  return __vector
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)
28
+ }(), startPoints.withUnsafeBufferPointer { __pointer -> bridge.std__vector_double_ in
29
+ return bridge.copy_std__vector_double_(__pointer.baseAddress!, startPoints.count)
30
+ }, colorMapSize)
35
31
  }
36
32
 
37
33
  var colors: [String] {
@@ -54,17 +50,17 @@ public extension RNHeatmapGradient {
54
50
  var startPoints: [Double] {
55
51
  @inline(__always)
56
52
  get {
57
- return self.__startPoints.map({ __item in __item })
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
+ }()
58
58
  }
59
59
  @inline(__always)
60
60
  set {
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
- }()
61
+ self.__startPoints = newValue.withUnsafeBufferPointer { __pointer -> bridge.std__vector_double_ in
62
+ return bridge.copy_std__vector_double_(__pointer.baseAddress!, newValue.count)
63
+ }
68
64
  }
69
65
  }
70
66