@sency/react-native-smkit-ui 2.1.6 → 2.1.8
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/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +1 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/smkituilibrary/SmkitUiLibraryModule.kt +1 -0
- package/ios/SMKitUIManager.swift +3 -3
- package/lib/commonjs/index.js +1 -1
- package/lib/module/index.js +1 -1
- package/package.json +2 -2
- package/react-native-smkit-ui.podspec +2 -2
- package/src/index.tsx +1 -1
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
com.smkituilibrary
|
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.
|
|
98
|
+
implementation("com.sency.smkitui:smkitui:1.6.2") {
|
|
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'
|
|
@@ -686,6 +686,7 @@ class SmkitUiLibraryModule(reactContext: ReactApplicationContext) :
|
|
|
686
686
|
promise.reject("Starting workout from program Failed", "SDK not configured. Call configure() first.")
|
|
687
687
|
return
|
|
688
688
|
}
|
|
689
|
+
|
|
689
690
|
val modificationsParam = finalModifications ?: "{}"
|
|
690
691
|
sdk.startWorkoutProgram(
|
|
691
692
|
workoutConfig = smKitWorkoutConfig.toWorkoutConfig(),
|
package/ios/SMKitUIManager.swift
CHANGED
|
@@ -64,17 +64,17 @@ class SMKitUIManager: NSObject, RCTBridgeModule {
|
|
|
64
64
|
DispatchQueue.main.async {
|
|
65
65
|
var isConfigDone = false
|
|
66
66
|
var didFail = false
|
|
67
|
-
SMKitUIModel.configure(authKey: "\(key)"
|
|
67
|
+
SMKitUIModel.configure(authKey: "\(key)", includesHighlights: false, onSuccess: {
|
|
68
68
|
if !isConfigDone {
|
|
69
69
|
isConfigDone = true
|
|
70
70
|
onSuccess("")
|
|
71
71
|
}
|
|
72
|
-
} onFailure: { err in
|
|
72
|
+
}, onFailure: { err in
|
|
73
73
|
if !didFail {
|
|
74
74
|
didFail = true
|
|
75
75
|
onFailure("Configure Failed", err?.localizedDescription ?? "", err)
|
|
76
76
|
}
|
|
77
|
-
}
|
|
77
|
+
})
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
|
package/lib/commonjs/index.js
CHANGED
|
@@ -142,7 +142,7 @@ function setCounterPreferences(counterPreferences) {
|
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Enables or disables intelligence rest (fatigue detection).
|
|
145
|
-
* Default is
|
|
145
|
+
* Default is false (disabled).
|
|
146
146
|
* @param {boolean} enabled - Whether intelligence rest should be active.
|
|
147
147
|
*/
|
|
148
148
|
function setIntelligenceRestEnabled(enabled) {
|
package/lib/module/index.js
CHANGED
|
@@ -119,7 +119,7 @@ export function setCounterPreferences(counterPreferences) {
|
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* Enables or disables intelligence rest (fatigue detection).
|
|
122
|
-
* Default is
|
|
122
|
+
* Default is false (disabled).
|
|
123
123
|
* @param {boolean} enabled - Whether intelligence rest should be active.
|
|
124
124
|
*/
|
|
125
125
|
export function setIntelligenceRestEnabled(enabled) {
|
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.8",
|
|
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.
|
|
18
|
+
s.dependency "SMKitUI", "= 1.6.4"
|
|
19
19
|
# Required so the bridge can reference InstructionVideoConfig and VideoDisplayMode (defined in SMKit).
|
|
20
|
-
s.dependency "SMKit", "= 1.
|
|
20
|
+
s.dependency "SMKit", "= 1.6.4"
|
|
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.
|
package/src/index.tsx
CHANGED
|
@@ -169,7 +169,7 @@ export function setCounterPreferences(
|
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* Enables or disables intelligence rest (fatigue detection).
|
|
172
|
-
* Default is
|
|
172
|
+
* Default is false (disabled).
|
|
173
173
|
* @param {boolean} enabled - Whether intelligence rest should be active.
|
|
174
174
|
*/
|
|
175
175
|
export function setIntelligenceRestEnabled(enabled: boolean): Promise<void> {
|