@sency/react-native-smkit-ui 2.1.1 → 2.1.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/android/build.gradle
CHANGED
|
@@ -95,7 +95,7 @@ dependencies {
|
|
|
95
95
|
implementation "com.facebook.react:react-android"
|
|
96
96
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
97
97
|
|
|
98
|
-
implementation("com.sency.smkitui:smkitui:1.5.
|
|
98
|
+
implementation("com.sency.smkitui:smkitui:1.5.5") {
|
|
99
99
|
exclude group: 'com.facebook.fbjni', module: 'fbjni-java-only'
|
|
100
100
|
// // Don't exclude native libraries
|
|
101
101
|
// exclude group: 'com.facebook.react', module: 'react-native'
|
package/ios/SMKitUIManager.mm
CHANGED
|
@@ -8,6 +8,7 @@ RCT_EXTERN_METHOD(startCustomAssessment:(NSString*)rawJson userData:(NSString* _
|
|
|
8
8
|
RCT_EXTERN_METHOD(startWorkoutProgram:(NSString*)dic modifications:(NSString* _Nullable)modifications onWorkoutDidFinish:(RCTPromiseResolveBlock)onWorkoutDidFinish onWorkoutFailed:(RCTPromiseRejectBlock)onWorkoutFailed)
|
|
9
9
|
|
|
10
10
|
RCT_EXTERN_METHOD(setSessionLanguage:(NSString*)language)
|
|
11
|
+
RCT_EXTERN_METHOD(setPhoneCalibrationLanguage:(NSString*)language)
|
|
11
12
|
RCT_EXTERN_METHOD(setEndExercisePreferences:(NSString*)preferencesString)
|
|
12
13
|
RCT_EXTERN_METHOD(setCounterPreferences:(NSString*)preferencesString)
|
|
13
14
|
|
package/ios/SMKitUIManager.swift
CHANGED
|
@@ -562,6 +562,11 @@ extension SMKitUIManager: SMKitUIWorkoutDelegate {
|
|
|
562
562
|
func didExitWorkout() {
|
|
563
563
|
didCompleteWorkout = false
|
|
564
564
|
workoutDidEnd = true
|
|
565
|
+
// Ensure the promise resolves even when no summary was received
|
|
566
|
+
// (e.g. user cancelled during phone calibration before workout started)
|
|
567
|
+
if !didReciveSummary {
|
|
568
|
+
didReciveSummary = true
|
|
569
|
+
}
|
|
565
570
|
SMKitUIModel.exitSDK()
|
|
566
571
|
}
|
|
567
572
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sency/react-native-smkit-ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "React Native library for SMKit UI - Advanced fitness assessments and workout programs with AI-powered motion detection and real-time performance tracking",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -92,4 +92,4 @@
|
|
|
92
92
|
]
|
|
93
93
|
]
|
|
94
94
|
}
|
|
95
|
-
}
|
|
95
|
+
}
|
|
@@ -15,9 +15,9 @@ Pod::Spec.new do |s|
|
|
|
15
15
|
s.source = { :git => "https://github.com/sency-ai/smkit-ui-react-native-demo.git", :tag => "#{s.version}" }
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
|
-
s.dependency "SMKitUI", "= 1.5.
|
|
18
|
+
s.dependency "SMKitUI", "= 1.5.6"
|
|
19
19
|
# Required so the bridge can reference InstructionVideoConfig and VideoDisplayMode (defined in SMKit).
|
|
20
|
-
s.dependency "SMKit", "= 1.5.
|
|
20
|
+
s.dependency "SMKit", "= 1.5.6"
|
|
21
21
|
|
|
22
22
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
23
23
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|