react-native-google-maps-plus 1.3.0-dev.7 → 1.3.0-dev.9
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.
- package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +24 -78
- package/android/src/main/java/com/rngooglemapsplus/LocationHandler.kt +38 -36
- package/android/src/main/java/com/rngooglemapsplus/MapCircleBuilder.kt +31 -8
- package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +69 -18
- package/android/src/main/java/com/rngooglemapsplus/MapPolygonBuilder.kt +53 -14
- package/android/src/main/java/com/rngooglemapsplus/MapPolylineBuilder.kt.kt +44 -11
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +4 -4
- package/android/src/main/java/com/rngooglemapsplus/extensions/LocationExtension.kt +59 -0
- package/ios/GoogleMapViewImpl.swift +17 -63
- package/ios/MapCircleBuilder.swift +29 -9
- package/ios/MapMarkerBuilder.swift +59 -18
- package/ios/MapPolygonBuilder.swift +50 -16
- package/ios/MapPolylineBuilder.swift +31 -15
- package/ios/RNGoogleMapsPlusView.swift +9 -3
- package/ios/extensions/CLLocation+Extension.swift +27 -0
- package/lib/module/GoogleMapsPlus.js +7 -0
- package/lib/module/GoogleMapsPlus.js.map +1 -0
- package/lib/module/index.js +3 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +44 -0
- package/lib/typescript/src/GoogleMapsPlus.d.ts +5 -0
- package/lib/typescript/src/GoogleMapsPlus.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +3 -3
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +25 -0
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JFunc_void_RNLocation.hpp +6 -0
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +8 -0
- package/nitrogen/generated/android/c++/JRNLocation.hpp +32 -2
- package/nitrogen/generated/android/c++/JRNLocationAndroid.hpp +82 -0
- package/nitrogen/generated/android/c++/JRNLocationIOS.hpp +77 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocation.kt +19 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationAndroid.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationIOS.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/views/HybridRNGoogleMapsPlusViewManager.kt +7 -2
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +36 -0
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +6 -0
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +6 -0
- package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +8 -0
- package/nitrogen/generated/ios/swift/RNLocation.swift +92 -2
- package/nitrogen/generated/ios/swift/RNLocationAndroid.swift +215 -0
- package/nitrogen/generated/ios/swift/RNLocationIOS.swift +185 -0
- package/nitrogen/generated/shared/c++/RNLocation.hpp +33 -2
- package/nitrogen/generated/shared/c++/RNLocationAndroid.hpp +104 -0
- package/nitrogen/generated/shared/c++/RNLocationIOS.hpp +99 -0
- package/package.json +6 -13
- package/src/GoogleMapsPlus.tsx +20 -0
- package/src/index.tsx +6 -14
- package/src/types.ts +27 -0
- package/lib/module/package.json +0 -1
- package/lib/typescript/package.json +0 -1
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-google-maps-plus",
|
|
3
|
-
"version": "1.3.0-dev.
|
|
3
|
+
"version": "1.3.0-dev.9",
|
|
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",
|
|
7
7
|
"types": "./lib/typescript/src/index.d.ts",
|
|
8
8
|
"source": "src/index",
|
|
9
|
+
"react-native": "src/index",
|
|
9
10
|
"scripts": {
|
|
10
11
|
"typecheck": "tsc --noEmit",
|
|
11
12
|
"lint": "yarn lint:js && yarn lint:android && yarn lint:ios",
|
|
@@ -148,22 +149,14 @@
|
|
|
148
149
|
"source": "src",
|
|
149
150
|
"output": "lib",
|
|
150
151
|
"targets": [
|
|
152
|
+
"module",
|
|
151
153
|
[
|
|
152
|
-
"
|
|
154
|
+
"typescript",
|
|
153
155
|
{
|
|
154
|
-
"
|
|
156
|
+
"project": "tsconfig.json"
|
|
155
157
|
}
|
|
156
|
-
]
|
|
157
|
-
"typescript"
|
|
158
|
+
]
|
|
158
159
|
]
|
|
159
160
|
},
|
|
160
|
-
"exports": {
|
|
161
|
-
".": {
|
|
162
|
-
"source": "./src/index.tsx",
|
|
163
|
-
"types": "./lib/typescript/src/index.d.ts",
|
|
164
|
-
"default": "./lib/module/index.js"
|
|
165
|
-
},
|
|
166
|
-
"./package.json": "./package.json"
|
|
167
|
-
},
|
|
168
161
|
"packageManager": "yarn@3.6.1"
|
|
169
162
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { getHostComponent, NitroModules } from 'react-native-nitro-modules';
|
|
2
|
+
|
|
3
|
+
import ViewConfig from '../nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json' with { type: 'json' };
|
|
4
|
+
|
|
5
|
+
import type {
|
|
6
|
+
RNGoogleMapsPlusViewMethods,
|
|
7
|
+
RNGoogleMapsPlusViewProps,
|
|
8
|
+
} from './RNGoogleMapsPlusView.nitro.js';
|
|
9
|
+
|
|
10
|
+
import type { RNGoogleMapsPlusModule } from './RNGoogleMapsPlusModule.nitro.js';
|
|
11
|
+
|
|
12
|
+
export const GoogleMapsView = getHostComponent<
|
|
13
|
+
RNGoogleMapsPlusViewProps,
|
|
14
|
+
RNGoogleMapsPlusViewMethods
|
|
15
|
+
>('RNGoogleMapsPlusView', () => ViewConfig);
|
|
16
|
+
|
|
17
|
+
export const GoogleMapsModule =
|
|
18
|
+
NitroModules.createHybridObject<RNGoogleMapsPlusModule>(
|
|
19
|
+
'RNGoogleMapsPlusModule'
|
|
20
|
+
);
|
package/src/index.tsx
CHANGED
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import ViewConfig from '../nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json';
|
|
4
|
-
|
|
1
|
+
import { GoogleMapsView, GoogleMapsModule } from './GoogleMapsPlus';
|
|
5
2
|
import type {
|
|
6
3
|
RNGoogleMapsPlusViewMethods,
|
|
7
4
|
RNGoogleMapsPlusViewProps,
|
|
8
5
|
} from './RNGoogleMapsPlusView.nitro';
|
|
9
|
-
|
|
10
6
|
import type { RNGoogleMapsPlusModule } from './RNGoogleMapsPlusModule.nitro';
|
|
11
7
|
|
|
12
8
|
export * from './types';
|
|
13
9
|
|
|
14
|
-
export type {
|
|
15
|
-
|
|
16
|
-
export const GoogleMapsView = getHostComponent<
|
|
10
|
+
export type {
|
|
11
|
+
RNGoogleMapsPlusViewMethods,
|
|
17
12
|
RNGoogleMapsPlusViewProps,
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
RNGoogleMapsPlusModule,
|
|
14
|
+
};
|
|
20
15
|
|
|
21
|
-
export
|
|
22
|
-
NitroModules.createHybridObject<RNGoogleMapsPlusModule>(
|
|
23
|
-
'RNGoogleMapsPlusModule'
|
|
24
|
-
);
|
|
16
|
+
export { GoogleMapsView, GoogleMapsModule };
|
package/src/types.ts
CHANGED
|
@@ -259,6 +259,7 @@ export type RNLocationConfig = {
|
|
|
259
259
|
android?: RNAndroidLocationConfig;
|
|
260
260
|
ios?: RNIOSLocationConfig;
|
|
261
261
|
};
|
|
262
|
+
|
|
262
263
|
export type RNAndroidLocationConfig = {
|
|
263
264
|
priority?: RNAndroidLocationPriority;
|
|
264
265
|
interval?: number;
|
|
@@ -302,7 +303,33 @@ export enum RNIOSPermissionResult {
|
|
|
302
303
|
|
|
303
304
|
export type RNLocation = {
|
|
304
305
|
center: RNLatLng;
|
|
306
|
+
altitude: number;
|
|
307
|
+
accuracy: number;
|
|
305
308
|
bearing: number;
|
|
309
|
+
speed: number;
|
|
310
|
+
time: number;
|
|
311
|
+
android?: RNLocationAndroid;
|
|
312
|
+
ios?: RNLocationIOS;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
export type RNLocationAndroid = {
|
|
316
|
+
provider?: string | null;
|
|
317
|
+
elapsedRealtimeNanos?: number;
|
|
318
|
+
bearingAccuracyDegrees?: number;
|
|
319
|
+
speedAccuracyMetersPerSecond?: number;
|
|
320
|
+
verticalAccuracyMeters?: number;
|
|
321
|
+
mslAltitudeMeters?: number;
|
|
322
|
+
mslAltitudeAccuracyMeters?: number;
|
|
323
|
+
isMock?: boolean;
|
|
324
|
+
};
|
|
325
|
+
export type RNLocationIOS = {
|
|
326
|
+
horizontalAccuracy?: number;
|
|
327
|
+
verticalAccuracy?: number;
|
|
328
|
+
speedAccuracy?: number;
|
|
329
|
+
courseAccuracy?: number;
|
|
330
|
+
floor?: number | null;
|
|
331
|
+
isFromMockProvider?: boolean;
|
|
332
|
+
timestamp?: number;
|
|
306
333
|
};
|
|
307
334
|
|
|
308
335
|
export enum RNLocationErrorCode {
|
package/lib/module/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"module"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"module"}
|