react-native-move-sdk 2.14.2 → 2.14.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.
- package/README.md +1 -22
- package/ios/MoveSdk.mm +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,20 +10,6 @@ npm install react-native-move-sdk --save
|
|
|
10
10
|
yarn add react-native-move-sdk
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
# iOS
|
|
14
|
-
|
|
15
|
-
Add to the AppDelegate.m file
|
|
16
|
-
|
|
17
|
-
```objectivec
|
|
18
|
-
#import <ReactMoveSDK/MoveSdk.h>
|
|
19
|
-
...
|
|
20
|
-
- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
21
|
-
{
|
|
22
|
-
[RCTMoveSdk initIfPossibleWithLaunchOptions:launchOptions];
|
|
23
|
-
return YES;
|
|
24
|
-
}
|
|
25
|
-
```
|
|
26
|
-
|
|
27
13
|
# Android
|
|
28
14
|
|
|
29
15
|
Add the DolphinSDK repository to the build.gradle file
|
|
@@ -82,13 +68,6 @@ const tripNotification: NotificationConfig = {
|
|
|
82
68
|
channel: tripChannel,
|
|
83
69
|
};
|
|
84
70
|
|
|
85
|
-
const auth = {
|
|
86
|
-
userId: ...,
|
|
87
|
-
accessToken: ...,
|
|
88
|
-
refreshToken: ...,
|
|
89
|
-
projectId: ...,
|
|
90
|
-
};
|
|
91
|
-
|
|
92
71
|
export const CONFIG: MoveSdkConfig = {
|
|
93
72
|
timelineDetectionServices: ['DRIVING', 'BICYCLE', 'PUBLIC_TRANSPORT', 'WALKING'],
|
|
94
73
|
drivingServices: ['DISTRACTION_FREE_DRIVING', 'DRIVING_BEHAVIOUR'],
|
|
@@ -102,7 +81,7 @@ export const ANDROID_CONFIG: MoveSdkAndroidConfig = {
|
|
|
102
81
|
}
|
|
103
82
|
};
|
|
104
83
|
|
|
105
|
-
MoveSdk.
|
|
84
|
+
MoveSdk.setupWithCode(code: authCode, config: CONFIG, platformParams: ANDROID_CONFIG)
|
|
106
85
|
```
|
|
107
86
|
|
|
108
87
|
# Methods
|
package/ios/MoveSdk.mm
CHANGED
|
@@ -716,6 +716,13 @@ RCT_EXPORT_METHOD(requestHealthPermissions: (RCTPromiseResolveBlock)resolve
|
|
|
716
716
|
}];
|
|
717
717
|
}
|
|
718
718
|
|
|
719
|
+
RCT_EXPORT_METHOD(startScanningDevices: (NSArray *)filter
|
|
720
|
+
uuid: (NSString *)uuid
|
|
721
|
+
manufacturerId: (NSNumber * _Nonnull)manufacturerId) {
|
|
722
|
+
|
|
723
|
+
[MoveSDKInstance.shared startScanningDevices: filter uuid: uuid];
|
|
724
|
+
}
|
|
725
|
+
|
|
719
726
|
#endif
|
|
720
727
|
|
|
721
728
|
@end
|