react-native-mytatva-rn-sdk 1.2.29 → 1.2.31
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/mytatvarnsdk/CgmTrackyLibModule.kt +346 -414
- package/android/src/main/res/drawable/transparent_drawable.xml +6 -0
- package/android/src/main/res/layout/activity_help.xml +181 -181
- package/android/src/main/res/values/styles.xml +5 -5
- package/lib/commonjs/CGMConnect.js +11 -1
- package/lib/commonjs/CGMConnect.js.map +1 -1
- package/lib/commonjs/index.js +8 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/CGMConnect.js +10 -1
- package/lib/module/CGMConnect.js.map +1 -1
- package/lib/module/index.js +4 -3
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/CGMConnect.d.ts +2 -1
- package/package.json +1 -1
- package/src/CGMConnect.ts +11 -1
- package/src/index.js +5 -3
package/package.json
CHANGED
package/src/CGMConnect.ts
CHANGED
|
@@ -130,10 +130,20 @@ const observeTransmitterUnbindStatusHandler = async (token: string) => {
|
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
+
const observeResetLogoutHandler = async () => {
|
|
134
|
+
console.log('observeResetLogoutHandler====');
|
|
135
|
+
try {
|
|
136
|
+
const result = await cgmLib.resetCgmState();
|
|
137
|
+
console.log(result);
|
|
138
|
+
} catch (error) {
|
|
139
|
+
console.error(error);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
|
|
133
143
|
|
|
134
144
|
|
|
135
145
|
const stopCGM = async () => {
|
|
136
146
|
// Implementation
|
|
137
147
|
};
|
|
138
148
|
|
|
139
|
-
export { startCGM, stopCGM, initializeCGMEventListener, removeCGMEventListener, observeAllGlucoseDataHandler, reconnectCGM, helpCGM, observeTransmitterUnbindStatusHandler };
|
|
149
|
+
export { startCGM, stopCGM, initializeCGMEventListener, removeCGMEventListener, observeAllGlucoseDataHandler, reconnectCGM, helpCGM, observeTransmitterUnbindStatusHandler, observeResetLogoutHandler };
|
package/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import MyTatvaRnSdkViewAndroid from './MyTatvaRnSdkView.android';
|
|
2
2
|
import MyTatvaRnSdkViewIOS from './MyTatvaRnSdkView.ios';
|
|
3
3
|
import { Platform } from 'react-native';
|
|
4
|
-
import { startCGM, initializeCGMEventListener, removeCGMEventListener, observeAllGlucoseDataHandler, reconnectCGM, helpCGM, observeTransmitterUnbindStatusHandler,
|
|
4
|
+
import { startCGM, initializeCGMEventListener, removeCGMEventListener, observeAllGlucoseDataHandler, reconnectCGM, helpCGM, observeTransmitterUnbindStatusHandler, observeResetLogoutHandler } from './CGMConnect';
|
|
5
5
|
// ... other imports
|
|
6
6
|
|
|
7
7
|
// Export the platform-specific component
|
|
@@ -18,7 +18,8 @@ export {
|
|
|
18
18
|
observeAllGlucoseDataHandler,
|
|
19
19
|
reconnectCGM,
|
|
20
20
|
helpCGM,
|
|
21
|
-
observeTransmitterUnbindStatusHandler
|
|
21
|
+
observeTransmitterUnbindStatusHandler,
|
|
22
|
+
observeResetLogoutHandler
|
|
22
23
|
// ... other functions
|
|
23
24
|
};
|
|
24
25
|
|
|
@@ -31,5 +32,6 @@ export default {
|
|
|
31
32
|
observeAllGlucoseDataHandler,
|
|
32
33
|
reconnectCGM,
|
|
33
34
|
helpCGM,
|
|
34
|
-
observeTransmitterUnbindStatusHandler
|
|
35
|
+
observeTransmitterUnbindStatusHandler,
|
|
36
|
+
observeResetLogoutHandler
|
|
35
37
|
};
|