react-native-google-maps-plus 1.8.8-dev.1 → 1.10.0-dev.2

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 (57) hide show
  1. package/README.md +0 -2
  2. package/android/build.gradle +0 -21
  3. package/android/gradle.properties +1 -1
  4. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +64 -80
  5. package/android/src/main/java/com/rngooglemapsplus/MapLifecycleEventObserver.kt +78 -0
  6. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +6 -13
  7. package/android/src/main/java/com/rngooglemapsplus/extensions/RNLatLngBoundsExtension.kt +0 -1
  8. package/android/src/main/java/com/rngooglemapsplus/extensions/ThrowableExtension.kt +2 -0
  9. package/expoConfig/build/index.js +2 -2
  10. package/ios/GoogleMapViewImpl.swift +27 -14
  11. package/ios/LocationHandler.swift +32 -20
  12. package/ios/RNGoogleMapsPlusView.swift +8 -16
  13. package/ios/extensions/CLLocation+Extension.swift +1 -1
  14. package/ios/extensions/RNIOSLocationActivityType+Extensions.swift +18 -0
  15. package/ios/extensions/RNLineCapType+Extension.swift +0 -1
  16. package/ios/extensions/RNLineJoinType+Extension.swift +0 -2
  17. package/ios/extensions/String+Extensions.swift +6 -6
  18. package/lib/module/GoogleMapsPlus.js.map +1 -1
  19. package/lib/module/index.js.map +1 -1
  20. package/lib/module/types.js +8 -0
  21. package/lib/module/types.js.map +1 -1
  22. package/lib/typescript/src/GoogleMapsPlus.d.ts +1 -1
  23. package/lib/typescript/src/GoogleMapsPlus.d.ts.map +1 -1
  24. package/lib/typescript/src/RNGoogleMapsPlusModule.nitro.d.ts.map +1 -1
  25. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +1 -1
  26. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
  27. package/lib/typescript/src/index.d.ts +1 -1
  28. package/lib/typescript/src/index.d.ts.map +1 -1
  29. package/lib/typescript/src/types.d.ts +10 -2
  30. package/lib/typescript/src/types.d.ts.map +1 -1
  31. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +20 -8
  32. package/nitrogen/generated/android/c++/JRNHeatmap.hpp +2 -1
  33. package/nitrogen/generated/android/c++/JRNHeatmapGradient.hpp +2 -1
  34. package/nitrogen/generated/android/c++/JRNIOSLocationActivityType.hpp +68 -0
  35. package/nitrogen/generated/android/c++/JRNIOSLocationConfig.hpp +9 -3
  36. package/nitrogen/generated/android/c++/JRNIndoorBuilding.hpp +2 -1
  37. package/nitrogen/generated/android/c++/JRNLocationConfig.hpp +2 -0
  38. package/nitrogen/generated/android/c++/JRNPolygon.hpp +4 -2
  39. package/nitrogen/generated/android/c++/JRNPolygonHole.hpp +2 -1
  40. package/nitrogen/generated/android/c++/JRNPolyline.hpp +2 -1
  41. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIOSLocationActivityType.kt +24 -0
  42. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIOSLocationConfig.kt +6 -3
  43. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +18 -0
  44. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +3 -0
  45. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +3 -0
  46. package/nitrogen/generated/ios/swift/RNIOSLocationActivityType.swift +52 -0
  47. package/nitrogen/generated/ios/swift/RNIOSLocationConfig.swift +24 -1
  48. package/nitrogen/generated/shared/c++/RNIOSLocationActivityType.hpp +65 -0
  49. package/nitrogen/generated/shared/c++/RNIOSLocationConfig.hpp +9 -2
  50. package/package.json +19 -69
  51. package/src/GoogleMapsPlus.tsx +1 -2
  52. package/src/RNGoogleMapsPlusModule.nitro.ts +1 -0
  53. package/src/RNGoogleMapsPlusView.nitro.ts +5 -5
  54. package/src/index.tsx +2 -1
  55. package/src/types.ts +11 -2
  56. package/scripts/create-dev-tag.sh +0 -8
  57. package/scripts/nitrogen-patch.js +0 -191
@@ -32,6 +32,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapPoint; }
32
32
  namespace margelo::nitro::rngooglemapsplus { struct RNHeatmap; }
33
33
  // Forward declaration of `RNIOSLocationAccuracy` to properly resolve imports.
34
34
  namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
35
+ // Forward declaration of `RNIOSLocationActivityType` to properly resolve imports.
36
+ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationActivityType; }
35
37
  // Forward declaration of `RNIOSLocationConfig` to properly resolve imports.
36
38
  namespace margelo::nitro::rngooglemapsplus { struct RNIOSLocationConfig; }
37
39
  // Forward declaration of `RNIOSPermissionResult` to properly resolve imports.
@@ -114,6 +116,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
114
116
  #include "RNHeatmapGradient.hpp"
115
117
  #include "RNHeatmapPoint.hpp"
116
118
  #include "RNIOSLocationAccuracy.hpp"
119
+ #include "RNIOSLocationActivityType.hpp"
117
120
  #include "RNIOSLocationConfig.hpp"
118
121
  #include "RNIOSPermissionResult.hpp"
119
122
  #include "RNIndoorBuilding.hpp"
@@ -66,6 +66,8 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPriorit
66
66
  namespace margelo::nitro::rngooglemapsplus { struct RNIOSLocationConfig; }
67
67
  // Forward declaration of `RNIOSLocationAccuracy` to properly resolve imports.
68
68
  namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
69
+ // Forward declaration of `RNIOSLocationActivityType` to properly resolve imports.
70
+ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationActivityType; }
69
71
  // Forward declaration of `RNMapErrorCode` to properly resolve imports.
70
72
  namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
71
73
  // Forward declaration of `RNRegion` to properly resolve imports.
@@ -131,6 +133,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
131
133
  #include "RNAndroidLocationPriority.hpp"
132
134
  #include "RNIOSLocationConfig.hpp"
133
135
  #include "RNIOSLocationAccuracy.hpp"
136
+ #include "RNIOSLocationActivityType.hpp"
134
137
  #include "RNMapErrorCode.hpp"
135
138
  #include <functional>
136
139
  #include "RNRegion.hpp"
@@ -0,0 +1,52 @@
1
+ ///
2
+ /// RNIOSLocationActivityType.swift
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ /**
9
+ * Represents the JS enum `RNIOSLocationActivityType`, backed by a C++ enum.
10
+ */
11
+ public typealias RNIOSLocationActivityType = margelo.nitro.rngooglemapsplus.RNIOSLocationActivityType
12
+
13
+ public extension RNIOSLocationActivityType {
14
+ /**
15
+ * Get a RNIOSLocationActivityType for the given String value, or
16
+ * return `nil` if the given value was invalid/unknown.
17
+ */
18
+ init?(fromString string: String) {
19
+ switch string {
20
+ case "OTHER":
21
+ self = .other
22
+ case "NAVIGATION":
23
+ self = .navigation
24
+ case "AUTOMOTIVE":
25
+ self = .automotive
26
+ case "FITNESS":
27
+ self = .fitness
28
+ case "AIRBORNE":
29
+ self = .airborne
30
+ default:
31
+ return nil
32
+ }
33
+ }
34
+
35
+ /**
36
+ * Get the String value this RNIOSLocationActivityType represents.
37
+ */
38
+ var stringValue: String {
39
+ switch self {
40
+ case .other:
41
+ return "OTHER"
42
+ case .navigation:
43
+ return "NAVIGATION"
44
+ case .automotive:
45
+ return "AUTOMOTIVE"
46
+ case .fitness:
47
+ return "FITNESS"
48
+ case .airborne:
49
+ return "AIRBORNE"
50
+ }
51
+ }
52
+ }
@@ -18,7 +18,7 @@ public extension RNIOSLocationConfig {
18
18
  /**
19
19
  * Create a new instance of `RNIOSLocationConfig`.
20
20
  */
21
- init(desiredAccuracy: RNIOSLocationAccuracy?, distanceFilterMeters: Double?) {
21
+ init(desiredAccuracy: RNIOSLocationAccuracy?, distanceFilterMeters: Double?, activityType: RNIOSLocationActivityType?) {
22
22
  self.init({ () -> bridge.std__optional_RNIOSLocationAccuracy_ in
23
23
  if let __unwrappedValue = desiredAccuracy {
24
24
  return bridge.create_std__optional_RNIOSLocationAccuracy_(__unwrappedValue)
@@ -31,6 +31,12 @@ public extension RNIOSLocationConfig {
31
31
  } else {
32
32
  return .init()
33
33
  }
34
+ }(), { () -> bridge.std__optional_RNIOSLocationActivityType_ in
35
+ if let __unwrappedValue = activityType {
36
+ return bridge.create_std__optional_RNIOSLocationActivityType_(__unwrappedValue)
37
+ } else {
38
+ return .init()
39
+ }
34
40
  }())
35
41
  }
36
42
 
@@ -67,4 +73,21 @@ public extension RNIOSLocationConfig {
67
73
  }()
68
74
  }
69
75
  }
76
+
77
+ var activityType: RNIOSLocationActivityType? {
78
+ @inline(__always)
79
+ get {
80
+ return self.__activityType.has_value() ? self.__activityType.pointee : nil
81
+ }
82
+ @inline(__always)
83
+ set {
84
+ self.__activityType = { () -> bridge.std__optional_RNIOSLocationActivityType_ in
85
+ if let __unwrappedValue = newValue {
86
+ return bridge.create_std__optional_RNIOSLocationActivityType_(__unwrappedValue)
87
+ } else {
88
+ return .init()
89
+ }
90
+ }()
91
+ }
92
+ }
70
93
  }
@@ -0,0 +1,65 @@
1
+ ///
2
+ /// RNIOSLocationActivityType.hpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #pragma once
9
+
10
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+
21
+ namespace margelo::nitro::rngooglemapsplus {
22
+
23
+ /**
24
+ * An enum which can be represented as a JavaScript enum (RNIOSLocationActivityType).
25
+ */
26
+ enum class RNIOSLocationActivityType {
27
+ OTHER SWIFT_NAME(other) = 0,
28
+ NAVIGATION SWIFT_NAME(navigation) = 1,
29
+ AUTOMOTIVE SWIFT_NAME(automotive) = 2,
30
+ FITNESS SWIFT_NAME(fitness) = 3,
31
+ AIRBORNE SWIFT_NAME(airborne) = 4,
32
+ } CLOSED_ENUM;
33
+
34
+ } // namespace margelo::nitro::rngooglemapsplus
35
+
36
+ namespace margelo::nitro {
37
+
38
+ // C++ RNIOSLocationActivityType <> JS RNIOSLocationActivityType (enum)
39
+ template <>
40
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNIOSLocationActivityType> final {
41
+ static inline margelo::nitro::rngooglemapsplus::RNIOSLocationActivityType fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
42
+ int enumValue = JSIConverter<int>::fromJSI(runtime, arg);
43
+ return static_cast<margelo::nitro::rngooglemapsplus::RNIOSLocationActivityType>(enumValue);
44
+ }
45
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::rngooglemapsplus::RNIOSLocationActivityType arg) {
46
+ int enumValue = static_cast<int>(arg);
47
+ return JSIConverter<int>::toJSI(runtime, enumValue);
48
+ }
49
+ static inline bool canConvert(jsi::Runtime&, const jsi::Value& value) {
50
+ if (!value.isNumber()) {
51
+ return false;
52
+ }
53
+ double number = value.getNumber();
54
+ int integer = static_cast<int>(number);
55
+ if (number != integer) {
56
+ // The integer is not the same value as the double - we truncated floating points.
57
+ // Enums are all integers, so the input floating point number is obviously invalid.
58
+ return false;
59
+ }
60
+ // Check if we are within the bounds of the enum.
61
+ return integer >= 0 && integer <= 4;
62
+ }
63
+ };
64
+
65
+ } // namespace margelo::nitro
@@ -25,9 +25,12 @@
25
25
 
26
26
  // Forward declaration of `RNIOSLocationAccuracy` to properly resolve imports.
27
27
  namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
28
+ // Forward declaration of `RNIOSLocationActivityType` to properly resolve imports.
29
+ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationActivityType; }
28
30
 
29
31
  #include "RNIOSLocationAccuracy.hpp"
30
32
  #include <optional>
33
+ #include "RNIOSLocationActivityType.hpp"
31
34
 
32
35
  namespace margelo::nitro::rngooglemapsplus {
33
36
 
@@ -38,10 +41,11 @@ namespace margelo::nitro::rngooglemapsplus {
38
41
  public:
39
42
  std::optional<RNIOSLocationAccuracy> desiredAccuracy SWIFT_PRIVATE;
40
43
  std::optional<double> distanceFilterMeters SWIFT_PRIVATE;
44
+ std::optional<RNIOSLocationActivityType> activityType SWIFT_PRIVATE;
41
45
 
42
46
  public:
43
47
  RNIOSLocationConfig() = default;
44
- explicit RNIOSLocationConfig(std::optional<RNIOSLocationAccuracy> desiredAccuracy, std::optional<double> distanceFilterMeters): desiredAccuracy(desiredAccuracy), distanceFilterMeters(distanceFilterMeters) {}
48
+ explicit RNIOSLocationConfig(std::optional<RNIOSLocationAccuracy> desiredAccuracy, std::optional<double> distanceFilterMeters, std::optional<RNIOSLocationActivityType> activityType): desiredAccuracy(desiredAccuracy), distanceFilterMeters(distanceFilterMeters), activityType(activityType) {}
45
49
  };
46
50
 
47
51
  } // namespace margelo::nitro::rngooglemapsplus
@@ -55,13 +59,15 @@ namespace margelo::nitro {
55
59
  jsi::Object obj = arg.asObject(runtime);
56
60
  return margelo::nitro::rngooglemapsplus::RNIOSLocationConfig(
57
61
  JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSLocationAccuracy>>::fromJSI(runtime, obj.getProperty(runtime, "desiredAccuracy")),
58
- JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "distanceFilterMeters"))
62
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "distanceFilterMeters")),
63
+ JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSLocationActivityType>>::fromJSI(runtime, obj.getProperty(runtime, "activityType"))
59
64
  );
60
65
  }
61
66
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNIOSLocationConfig& arg) {
62
67
  jsi::Object obj(runtime);
63
68
  obj.setProperty(runtime, "desiredAccuracy", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSLocationAccuracy>>::toJSI(runtime, arg.desiredAccuracy));
64
69
  obj.setProperty(runtime, "distanceFilterMeters", JSIConverter<std::optional<double>>::toJSI(runtime, arg.distanceFilterMeters));
70
+ obj.setProperty(runtime, "activityType", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSLocationActivityType>>::toJSI(runtime, arg.activityType));
65
71
  return obj;
66
72
  }
67
73
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -74,6 +80,7 @@ namespace margelo::nitro {
74
80
  }
75
81
  if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSLocationAccuracy>>::canConvert(runtime, obj.getProperty(runtime, "desiredAccuracy"))) return false;
76
82
  if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "distanceFilterMeters"))) return false;
83
+ if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSLocationActivityType>>::canConvert(runtime, obj.getProperty(runtime, "activityType"))) return false;
77
84
  return true;
78
85
  }
79
86
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-google-maps-plus",
3
- "version": "1.8.8-dev.1",
3
+ "version": "1.10.0-dev.2",
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",
@@ -16,17 +16,16 @@
16
16
  "lint:android": "cd android && ktlint -F ./**/*.kt*",
17
17
  "lint:ios": "cd ios && swiftlint --quiet && swiftformat . --lint",
18
18
  "format": "yarn format:js && yarn format:ios && yarn format:android",
19
- "format:js": "prettier --write .",
19
+ "format:js": "eslint . --fix && prettier --write .",
20
20
  "format:android": "cd android && ktlint --format ./**/*.kt*",
21
21
  "format:ios": "cd ios && swiftformat .",
22
22
  "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
23
23
  "test": "jest",
24
24
  "git:clean": "git clean -dfX",
25
- "release": "semantic-release",
26
- "build": "yarn nitrogen && bob build && yarn build:plugin",
27
25
  "build:plugin": "tsc -p expoConfig/tsconfig.json",
28
26
  "nitrogen": "nitrogen --logLevel=\"debug\" && node scripts/nitrogen-patch.js",
29
- "prepare": "bob build"
27
+ "release": "semantic-release",
28
+ "build": "yarn nitrogen && bob build && yarn build:plugin"
30
29
  },
31
30
  "keywords": [
32
31
  "react-native",
@@ -40,31 +39,28 @@
40
39
  "expo"
41
40
  ],
42
41
  "files": [
43
- "src",
44
42
  "lib",
45
- "expoConfig/build",
46
- "!**/__tests__",
47
- "!**/__fixtures__",
48
- "!**/__mocks__",
49
- "react-native.config.js",
43
+ "src",
50
44
  "nitrogen",
51
- "cpp",
52
45
  "nitro.json",
46
+ "android/src",
53
47
  "android/build.gradle",
54
48
  "android/fix-prefab.gradle",
55
49
  "android/gradle.properties",
56
50
  "android/CMakeLists.txt",
57
51
  "android/proguard-rules.pro",
58
- "android/src",
59
52
  "ios/**/*.h",
60
53
  "ios/**/*.m",
61
54
  "ios/**/*.mm",
62
55
  "ios/**/*.cpp",
63
56
  "ios/**/*.swift",
57
+ "scripts/svgkit_patch.rb",
64
58
  "app.plugin.js",
59
+ "expoConfig/build",
60
+ "react-native.config.js",
65
61
  "*.podspec",
66
- "scripts",
67
- "README.md"
62
+ "README.md",
63
+ "LICENSE"
68
64
  ],
69
65
  "workspaces": [
70
66
  "example"
@@ -85,30 +81,30 @@
85
81
  "@eslint/eslintrc": "3.3.1",
86
82
  "@eslint/js": "9.39.1",
87
83
  "@expo/config-plugins": "54.0.2",
88
- "@jamesacarr/eslint-formatter-github-actions": "0.2.0",
89
84
  "@react-native/babel-preset": "0.82.1",
90
85
  "@react-native/eslint-config": "0.82.1",
91
86
  "@semantic-release/changelog": "6.0.3",
92
87
  "@semantic-release/exec": "7.1.0",
93
88
  "@semantic-release/git": "10.0.1",
94
- "@semantic-release/npm": "13.1.1",
89
+ "@semantic-release/npm": "13.1.2",
95
90
  "@types/jest": "30.0.0",
96
91
  "@types/react": "19.1.1",
97
- "clang-format-node": "2.0.4",
98
92
  "conventional-changelog-conventionalcommits": "9.1.0",
99
93
  "del-cli": "7.0.0",
100
94
  "eslint": "9.39.1",
101
95
  "eslint-config-prettier": "10.1.8",
102
- "eslint-plugin-ft-flow": "3.0.11",
96
+ "eslint-import-resolver-typescript": "4.4.4",
97
+ "eslint-plugin-import": "2.32.0",
103
98
  "eslint-plugin-prettier": "5.5.4",
99
+ "eslint-plugin-unused-imports": "4.3.0",
104
100
  "jest": "30.2.0",
105
- "lefthook": "2.0.3",
106
- "nitrogen": "0.31.5",
101
+ "lefthook": "2.0.4",
102
+ "nitrogen": "0.31.6",
107
103
  "prettier": "3.6.2",
108
104
  "react": "19.1.1",
109
105
  "react-native": "0.82.1",
110
- "react-native-builder-bob": "0.40.14",
111
- "react-native-nitro-modules": "0.31.5",
106
+ "react-native-builder-bob": "0.40.15",
107
+ "react-native-nitro-modules": "0.31.6",
112
108
  "semantic-release": "25.0.2",
113
109
  "typescript": "5.9.3"
114
110
  },
@@ -123,51 +119,5 @@
123
119
  "optional": true
124
120
  }
125
121
  },
126
- "eslintConfig": {
127
- "root": true,
128
- "extends": [
129
- "@react-native",
130
- "prettier"
131
- ],
132
- "plugins": [
133
- "prettier"
134
- ],
135
- "rules": {
136
- "prettier/prettier": [
137
- "warn",
138
- {
139
- "quoteProps": "consistent",
140
- "singleQuote": true,
141
- "tabWidth": 2,
142
- "trailingComma": "es5",
143
- "useTabs": false
144
- }
145
- ]
146
- }
147
- },
148
- "eslintIgnore": [
149
- "node_modules/",
150
- "lib/"
151
- ],
152
- "prettier": {
153
- "quoteProps": "consistent",
154
- "singleQuote": true,
155
- "tabWidth": 2,
156
- "trailingComma": "es5",
157
- "useTabs": false
158
- },
159
- "react-native-builder-bob": {
160
- "source": "src",
161
- "output": "lib",
162
- "targets": [
163
- "module",
164
- [
165
- "typescript",
166
- {
167
- "project": "tsconfig.json"
168
- }
169
- ]
170
- ]
171
- },
172
122
  "packageManager": "yarn@3.6.1"
173
123
  }
@@ -2,13 +2,12 @@ import { getHostComponent, NitroModules } from 'react-native-nitro-modules';
2
2
 
3
3
  import ViewConfig from '../nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json' with { type: 'json' };
4
4
 
5
+ import type { RNGoogleMapsPlusModule } from './RNGoogleMapsPlusModule.nitro.js';
5
6
  import type {
6
7
  RNGoogleMapsPlusViewMethods,
7
8
  RNGoogleMapsPlusViewProps,
8
9
  } from './RNGoogleMapsPlusView.nitro.js';
9
10
 
10
- import type { RNGoogleMapsPlusModule } from './RNGoogleMapsPlusModule.nitro.js';
11
-
12
11
  export const GoogleMapsView = getHostComponent<
13
12
  RNGoogleMapsPlusViewProps,
14
13
  RNGoogleMapsPlusViewMethods
@@ -1,4 +1,5 @@
1
1
  import { type HybridObject } from 'react-native-nitro-modules';
2
+
2
3
  import type { RNLocationPermissionResult } from './types';
3
4
 
4
5
  export interface RNGoogleMapsPlusModule
@@ -1,8 +1,3 @@
1
- import type {
2
- HybridView,
3
- HybridViewMethods,
4
- HybridViewProps,
5
- } from 'react-native-nitro-modules';
6
1
  import type {
7
2
  RNCamera,
8
3
  RNCameraUpdate,
@@ -31,6 +26,11 @@ import type {
31
26
  RNSnapshotOptions,
32
27
  RNUrlTileOverlay,
33
28
  } from './types';
29
+ import type {
30
+ HybridView,
31
+ HybridViewMethods,
32
+ HybridViewProps,
33
+ } from 'react-native-nitro-modules';
34
34
 
35
35
  export interface RNGoogleMapsPlusViewProps extends HybridViewProps {
36
36
  initialProps?: RNInitialProps;
package/src/index.tsx CHANGED
@@ -1,9 +1,10 @@
1
1
  import { GoogleMapsView, GoogleMapsModule } from './GoogleMapsPlus';
2
+
3
+ import type { RNGoogleMapsPlusModule } from './RNGoogleMapsPlusModule.nitro';
2
4
  import type {
3
5
  RNGoogleMapsPlusViewMethods,
4
6
  RNGoogleMapsPlusViewProps,
5
7
  } from './RNGoogleMapsPlusView.nitro';
6
- import type { RNGoogleMapsPlusModule } from './RNGoogleMapsPlusModule.nitro';
7
8
 
8
9
  export * from './types';
9
10
 
package/src/types.ts CHANGED
@@ -297,6 +297,7 @@ export enum RNAndroidLocationPriority {
297
297
  export type RNIOSLocationConfig = {
298
298
  desiredAccuracy?: RNIOSLocationAccuracy;
299
299
  distanceFilterMeters?: number;
300
+ activityType?: RNIOSLocationActivityType;
300
301
  };
301
302
 
302
303
  export enum RNIOSLocationAccuracy {
@@ -306,6 +307,14 @@ export enum RNIOSLocationAccuracy {
306
307
  ACCURACY_KILOMETER = 3,
307
308
  }
308
309
 
310
+ export enum RNIOSLocationActivityType {
311
+ OTHER = 0,
312
+ NAVIGATION = 1,
313
+ AUTOMOTIVE = 2,
314
+ FITNESS = 3,
315
+ AIRBORNE = 4,
316
+ }
317
+
309
318
  export type RNLocationPermissionResult = {
310
319
  android?: RNAndroidLocationPermissionResult;
311
320
  ios?: RNIOSPermissionResult;
@@ -334,7 +343,7 @@ export type RNLocation = {
334
343
  };
335
344
 
336
345
  export type RNLocationAndroid = {
337
- provider?: string | null;
346
+ provider?: string;
338
347
  elapsedRealtimeNanos?: number;
339
348
  bearingAccuracyDegrees?: number;
340
349
  speedAccuracyMetersPerSecond?: number;
@@ -348,7 +357,7 @@ export type RNLocationIOS = {
348
357
  verticalAccuracy?: number;
349
358
  speedAccuracy?: number;
350
359
  courseAccuracy?: number;
351
- floor?: number | null;
360
+ floor?: number;
352
361
  isFromMockProvider?: boolean;
353
362
  timestamp?: number;
354
363
  };
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- VERSION="$1"
3
- IFS="." read -r major minor patch <<< "$VERSION"
4
- NEXT_MINOR=$((minor + 1))
5
- DEV_TAG="v${major}.${NEXT_MINOR}.0-dev.0"
6
- echo "[semantic-release] tagging: $DEV_TAG"
7
- git tag "$DEV_TAG"
8
- git push origin "$DEV_TAG"