react-native-visit-rn-sdk 3.0.10 → 3.0.12
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 +9 -3
- package/android/build.gradle +1 -1
- package/ios/VisitRnSdkViewManager.h +0 -4
- package/ios/VisitRnSdkViewManager.m +103 -840
- package/lib/commonjs/Services.js +3 -2
- package/lib/commonjs/Services.js.map +1 -1
- package/lib/commonjs/constants.js +2 -1
- package/lib/commonjs/constants.js.map +1 -1
- package/lib/commonjs/healthConnectRouting.js +11 -10
- package/lib/commonjs/healthConnectRouting.js.map +1 -1
- package/lib/commonjs/index.android.js +35 -26
- package/lib/commonjs/index.android.js.map +1 -1
- package/lib/commonjs/index.ios.js +28 -15
- package/lib/commonjs/index.ios.js.map +1 -1
- package/lib/module/Services.js.map +1 -1
- package/lib/module/constants.js.map +1 -1
- package/lib/module/healthConnectRouting.js +11 -10
- package/lib/module/healthConnectRouting.js.map +1 -1
- package/lib/module/index.android.js +28 -22
- package/lib/module/index.android.js.map +1 -1
- package/lib/module/index.ios.js +23 -12
- package/lib/module/index.ios.js.map +1 -1
- package/package.json +2 -2
- package/src/index.android.js +4 -1
- package/src/index.ios.js +17 -9
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
### **Instructions for configuring your Android Project**
|
|
2
2
|
|
|
3
3
|
* Install Visit React Native Plugin
|
|
4
|
-
`npm install react-native-visit-rn-sdk@3.0.
|
|
4
|
+
`npm install react-native-visit-rn-sdk@3.0.11`
|
|
5
5
|
* Install these transitive plugins that Visit Plugin requires internally:
|
|
6
6
|
`npm install react-native-device-info`
|
|
7
7
|
`npm install https://github.com/sashko9807/react-native-location-enabler`
|
|
@@ -42,7 +42,7 @@ android {
|
|
|
42
42
|
|
|
43
43
|
### **Instructions for configuring Plugin in iOS project**
|
|
44
44
|
|
|
45
|
-
* Add the plugin `npm install react-native-visit-rn-sdk@3.0.
|
|
45
|
+
* Add the plugin `npm install react-native-visit-rn-sdk@3.0.11 && npx pod-install`
|
|
46
46
|
* Install pods(for M1 processors running build on `x86_64` hardware)
|
|
47
47
|
|
|
48
48
|
`arch -x86_64 pod install`
|
|
@@ -86,7 +86,7 @@ To see the full usage code for getting Health Connect/HealthKit connection statu
|
|
|
86
86
|
|
|
87
87
|
## **Health Connect Connection Flow (Android)**
|
|
88
88
|
|
|
89
|
-
Version `3.0.
|
|
89
|
+
Version `3.0.11` uses AndroidSDK `v3.13` and routes the PWA's Health Connect request according to the Health Connect installation status and the device's native step-tracking capability.
|
|
90
90
|
|
|
91
91
|
The maintained RN 3.x release is also available through its npm dist-tag:
|
|
92
92
|
|
|
@@ -197,6 +197,12 @@ Set `isLoggingEnabled={true}` on `VisitRnSdkView` to log the status, capability
|
|
|
197
197
|
|
|
198
198
|
## **RN 3.x Release Notes**
|
|
199
199
|
|
|
200
|
+
### **3.0.11**
|
|
201
|
+
|
|
202
|
+
* Upgrade AndroidSDK to `v3.13`.
|
|
203
|
+
* Reconcile hourly step buckets with Health Connect's exact daily aggregate so the graph total matches the daily total despite hourly fractional-step truncation.
|
|
204
|
+
* Keep the existing React Native APIs and PWA callback signatures unchanged.
|
|
205
|
+
|
|
200
206
|
### **3.0.10**
|
|
201
207
|
|
|
202
208
|
* Upgrade AndroidSDK to `v3.12`.
|
package/android/build.gradle
CHANGED
|
@@ -101,7 +101,7 @@ dependencies {
|
|
|
101
101
|
//noinspection GradleDynamicVersion
|
|
102
102
|
implementation "com.facebook.react:react-native:+"
|
|
103
103
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
104
|
-
implementation "com.github.VisitApp:AndroidSDK:v3.
|
|
104
|
+
implementation "com.github.VisitApp:AndroidSDK:v3.13"
|
|
105
105
|
implementation "androidx.health.connect:connect-client:1.1.0"
|
|
106
106
|
implementation "com.jakewharton.timber:timber:5.0.1"
|
|
107
107
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1"
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
@interface VisitRnSdkViewManager : RCTEventEmitter <RCTBridgeModule>{
|
|
6
6
|
NSCalendar* calendar;
|
|
7
|
-
NSUInteger bmrCaloriesPerHour;
|
|
8
|
-
NSString *gender;
|
|
9
7
|
BOOL hasLoadedOnce;
|
|
10
8
|
}
|
|
11
9
|
|
|
@@ -21,8 +19,6 @@
|
|
|
21
19
|
- (void)getHealthKitStatus:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject;
|
|
22
20
|
- (void)requestHealthKitAuthorization:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject;
|
|
23
21
|
- (void)getTodayStepCount:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject;
|
|
24
|
-
- (void)getTodaySleepMinutes:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject;
|
|
25
|
-
- (void)getTodayCalorieCount:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject;
|
|
26
22
|
- (void)triggerManualSync:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject;
|
|
27
23
|
|
|
28
24
|
@end
|