react-native-google-maps-plus 1.11.0 → 1.12.0-dev.1

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 (42) hide show
  1. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +5 -4
  2. package/android/src/main/java/com/rngooglemapsplus/MapErrorHandler.kt +24 -0
  3. package/android/src/main/java/com/rngooglemapsplus/MapHelper.kt +0 -13
  4. package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +10 -9
  5. package/android/src/main/java/com/rngooglemapsplus/MapUrlTileOverlayBuilder.kt +4 -2
  6. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +8 -5
  7. package/android/src/main/java/com/rngooglemapsplus/extensions/BitmapExtension.kt +4 -2
  8. package/ios/GoogleMapViewImpl.swift +5 -1
  9. package/ios/MapErrorHandler.swift +21 -0
  10. package/ios/MapHelper.swift +0 -14
  11. package/ios/MapMarkerBuilder.swift +11 -9
  12. package/ios/RNGoogleMapsPlusView.swift +7 -3
  13. package/ios/extensions/UIImage+Extension.swift +3 -2
  14. package/lib/module/types.js +19 -7
  15. package/lib/module/types.js.map +1 -1
  16. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +2 -2
  17. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
  18. package/lib/typescript/src/types.d.ts +20 -8
  19. package/lib/typescript/src/types.d.ts.map +1 -1
  20. package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +2 -2
  21. package/nitrogen/generated/android/c++/JFunc_void_RNMapErrorCode_std__string.hpp +78 -0
  22. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +10 -10
  23. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +2 -2
  24. package/nitrogen/generated/android/c++/JRNMapErrorCode.hpp +18 -0
  25. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_RNMapErrorCode.kt → Func_void_RNMapErrorCode_std__string.kt} +14 -14
  26. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +3 -3
  27. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapErrorCode.kt +7 -1
  28. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +5 -5
  29. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +19 -19
  30. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +2 -2
  31. package/nitrogen/generated/ios/swift/{Func_void_RNMapErrorCode.swift → Func_void_RNMapErrorCode_std__string.swift} +11 -11
  32. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +1 -1
  33. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +12 -12
  34. package/nitrogen/generated/ios/swift/RNMapErrorCode.swift +24 -0
  35. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +2 -2
  36. package/nitrogen/generated/shared/c++/RNMapErrorCode.hpp +7 -1
  37. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +2 -2
  38. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +1 -1
  39. package/package.json +2 -1
  40. package/src/RNGoogleMapsPlusView.nitro.ts +2 -2
  41. package/src/types.ts +25 -7
  42. package/nitrogen/generated/android/c++/JFunc_void_RNMapErrorCode.hpp +0 -77
package/src/types.ts CHANGED
@@ -868,24 +868,42 @@ export enum RNLocationErrorCode {
868
868
 
869
869
  /** Error codes related to Google Play Services Maps integration. */
870
870
  export enum RNMapErrorCode {
871
- /** Google Play Services are missing on the device. */
871
+ /** Play Services not installed (Android). */
872
872
  PLAY_SERVICES_MISSING = 0,
873
873
 
874
- /** Google Play Services are present but invalid. */
874
+ /** Play Services invalid or corrupted (Android). */
875
875
  PLAY_SERVICES_INVALID = 1,
876
876
 
877
- /** Google Play Services are disabled on the device. */
877
+ /** Play Services disabled (Android). */
878
878
  PLAY_SERVICES_DISABLED = 2,
879
879
 
880
- /** Google Play Services are installed, but outdated. */
880
+ /** Play Services version too old (Android). */
881
881
  PLAY_SERVICES_OUTDATED = 3,
882
882
 
883
- /** A newer version of Google Play Services is available. */
883
+ /** Play Services update available (Android). */
884
884
  PLAY_SERVICE_UPDATE_AVAILABLE = 4,
885
885
 
886
- /** Google Play Services are currently updating. */
886
+ /** Play Services currently updating (Android). */
887
887
  PLAY_SERVICE_UPDATING = 5,
888
888
 
889
- /** Unknown error. */
889
+ /** Unknown Play Services error (Android). */
890
890
  UNKNOWN = 6,
891
+
892
+ /** Snapshot encoding or file write failed. */
893
+ SNAPSHOT_EXPORT_FAILED = 7,
894
+
895
+ /** Marker icon rendering failed. */
896
+ MARKER_ICON_BUILD_FAILED = 8,
897
+
898
+ /** Tile overlay load or parse failed. */
899
+ TILE_OVERLAY_FAILED = 9,
900
+
901
+ /** Invalid input provided to native layer. */
902
+ INVALID_ARGUMENT = 10,
903
+
904
+ /** Unexpected internal native exception. */
905
+ INTERNAL_EXCEPTION = 11,
906
+
907
+ /** KML layer failed to load or parse. */
908
+ KML_LAYER_FAILED = 12,
891
909
  }
@@ -1,77 +0,0 @@
1
- ///
2
- /// JFunc_void_RNMapErrorCode.hpp
3
- /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
- /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2026 Marc Rousavy @ Margelo
6
- ///
7
-
8
- #pragma once
9
-
10
- #include <fbjni/fbjni.h>
11
- #include <functional>
12
-
13
- #include "RNMapErrorCode.hpp"
14
- #include <functional>
15
- #include <NitroModules/JNICallable.hpp>
16
- #include "JRNMapErrorCode.hpp"
17
-
18
- namespace margelo::nitro::rngooglemapsplus {
19
-
20
- using namespace facebook;
21
-
22
- /**
23
- * Represents the Java/Kotlin callback `(error: RNMapErrorCode) -> Unit`.
24
- * This can be passed around between C++ and Java/Kotlin.
25
- */
26
- struct JFunc_void_RNMapErrorCode: public jni::JavaClass<JFunc_void_RNMapErrorCode> {
27
- public:
28
- static auto constexpr kJavaDescriptor = "Lcom/rngooglemapsplus/Func_void_RNMapErrorCode;";
29
-
30
- public:
31
- /**
32
- * Invokes the function this `JFunc_void_RNMapErrorCode` instance holds through JNI.
33
- */
34
- void invoke(RNMapErrorCode error) const {
35
- static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JRNMapErrorCode> /* error */)>("invoke");
36
- method(self(), JRNMapErrorCode::fromCpp(error));
37
- }
38
- };
39
-
40
- /**
41
- * An implementation of Func_void_RNMapErrorCode that is backed by a C++ implementation (using `std::function<...>`)
42
- */
43
- class JFunc_void_RNMapErrorCode_cxx final: public jni::HybridClass<JFunc_void_RNMapErrorCode_cxx, JFunc_void_RNMapErrorCode> {
44
- public:
45
- static jni::local_ref<JFunc_void_RNMapErrorCode::javaobject> fromCpp(const std::function<void(RNMapErrorCode /* error */)>& func) {
46
- return JFunc_void_RNMapErrorCode_cxx::newObjectCxxArgs(func);
47
- }
48
-
49
- public:
50
- /**
51
- * Invokes the C++ `std::function<...>` this `JFunc_void_RNMapErrorCode_cxx` instance holds.
52
- */
53
- void invoke_cxx(jni::alias_ref<JRNMapErrorCode> error) {
54
- _func(error->toCpp());
55
- }
56
-
57
- public:
58
- [[nodiscard]]
59
- inline const std::function<void(RNMapErrorCode /* error */)>& getFunction() const {
60
- return _func;
61
- }
62
-
63
- public:
64
- static auto constexpr kJavaDescriptor = "Lcom/rngooglemapsplus/Func_void_RNMapErrorCode_cxx;";
65
- static void registerNatives() {
66
- registerHybrid({makeNativeMethod("invoke_cxx", JFunc_void_RNMapErrorCode_cxx::invoke_cxx)});
67
- }
68
-
69
- private:
70
- explicit JFunc_void_RNMapErrorCode_cxx(const std::function<void(RNMapErrorCode /* error */)>& func): _func(func) { }
71
-
72
- private:
73
- friend HybridBase;
74
- std::function<void(RNMapErrorCode /* error */)> _func;
75
- };
76
-
77
- } // namespace margelo::nitro::rngooglemapsplus