Skip to content

Commit

Permalink
Version 1.1.35
Browse files Browse the repository at this point in the history
  • Loading branch information
zhortech-user committed Dec 15, 2022
1 parent c56e603 commit 7a5215e
Show file tree
Hide file tree
Showing 21 changed files with 382 additions and 32 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [1.1.35](https://github.com/zhortech/ztsportkit-ios-sdk.git/-/tags/1.1.35) (2022-12-15)

- new method `isPendingEmbeddedActivity(completion:)` to check if there is activity with stop event and data not sent to ZCloud. It can be used when `ZTSettings.shared.shouldAutoResendData = false`
- new method `pushPendingEmbeddedActivities(completion:)` to resend all saved embedded activities which were not sent. It will send stop event and not sent chunk data for it

## [1.1.34](https://github.com/zhortech/ztsportkit-ios-sdk.git/-/tags/1.1.34) (2022-12-05)
- more logs for raw data mode
- new method `getLastActivityRawData(completion:)` which can be used to obtain raw data for last activity if raw data was not sent to ZCloud. `isPendingActivity` should be used first to check if raw data was already downloaded from insoles.
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let package = Package(
.package(
name: "ZTCoreKit",
url: "https://github.com/zhortech/ztcorekit-ios-sdk.git",
.upToNextMajor(from: "1.1.57")
.upToNextMajor(from: "1.1.58")
)
],
targets: [
Expand Down
10 changes: 5 additions & 5 deletions Sources/ZTSportKit.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>ZTSportKit.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>ZTSportKit.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -38391,6 +38391,117 @@
"isFromExtension": true,
"funcSelfKind": "NonMutating"
},
{
"kind": "Function",
"name": "isPendingEmbeddedActivity",
"printedName": "isPendingEmbeddedActivity(completion:)",
"children": [
{
"kind": "TypeNominal",
"name": "Void",
"printedName": "()"
},
{
"kind": "TypeFunc",
"name": "Function",
"printedName": "(Swift.Bool, ZTCoreKit.ZTError?) -> ()",
"children": [
{
"kind": "TypeNominal",
"name": "Void",
"printedName": "()"
},
{
"kind": "TypeNominal",
"name": "Tuple",
"printedName": "(Swift.Bool, ZTCoreKit.ZTError?)",
"children": [
{
"kind": "TypeNominal",
"name": "Bool",
"printedName": "Swift.Bool",
"usr": "s:Sb"
},
{
"kind": "TypeNominal",
"name": "Optional",
"printedName": "ZTCoreKit.ZTError?",
"children": [
{
"kind": "TypeNominal",
"name": "ZTError",
"printedName": "ZTCoreKit.ZTError",
"usr": "s:9ZTCoreKit7ZTErrorO"
}
],
"usr": "s:Sq"
}
]
}
]
}
],
"declKind": "Func",
"usr": "s:10ZTSportKit0A0C25isPendingEmbeddedActivity10completionyySb_06ZTCoreB07ZTErrorOSgtc_tF",
"mangledName": "$s10ZTSportKit0A0C25isPendingEmbeddedActivity10completionyySb_06ZTCoreB07ZTErrorOSgtc_tF",
"moduleName": "ZTSportKit",
"declAttributes": [
"Final",
"AccessControl",
"RawDocComment"
],
"isFromExtension": true,
"funcSelfKind": "NonMutating"
},
{
"kind": "Function",
"name": "pushPendingEmbeddedActivities",
"printedName": "pushPendingEmbeddedActivities(completion:)",
"children": [
{
"kind": "TypeNominal",
"name": "Void",
"printedName": "()"
},
{
"kind": "TypeFunc",
"name": "Function",
"printedName": "(ZTCoreKit.ZTError?) -> ()",
"children": [
{
"kind": "TypeNominal",
"name": "Void",
"printedName": "()"
},
{
"kind": "TypeNominal",
"name": "Optional",
"printedName": "ZTCoreKit.ZTError?",
"children": [
{
"kind": "TypeNominal",
"name": "ZTError",
"printedName": "ZTCoreKit.ZTError",
"usr": "s:9ZTCoreKit7ZTErrorO"
}
],
"usr": "s:Sq"
}
]
}
],
"declKind": "Func",
"usr": "s:10ZTSportKit0A0C29pushPendingEmbeddedActivities10completionyy06ZTCoreB07ZTErrorOSgc_tF",
"mangledName": "$s10ZTSportKit0A0C29pushPendingEmbeddedActivities10completionyy06ZTCoreB07ZTErrorOSgc_tF",
"moduleName": "ZTSportKit",
"declAttributes": [
"Final",
"AccessControl",
"RawDocComment"
],
"isFromExtension": true,
"funcSelfKind": "NonMutating"
},
{
"kind": "Function",
"name": "createNewActivity",
Expand Down Expand Up @@ -44944,7 +45055,7 @@
"kind": "StringLiteral",
"offset": 597,
"length": 8,
"value": "\"1.1.34\""
"value": "\"1.1.35\""
},
{
"filePath": "\/Users\/pavel\/Documents\/Work\/Zhortech\/Framework\/iOS\/ztexample\/sdks\/ztsportkit\/Sources\/ZTSportKit\/ZTSport.swift",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ public class ZTActivitySegmentAnalysis : ZTCoreKit.ZTMappable {
extension ZTSportKit.ZTSport {
final public func startActivity(attributes: [Swift.String : Any], userParameters: ZTSportKit.ZTUserDataParameters? = nil, enableRawData: Swift.Bool = false, samplingMode: ZTCoreKit.ZTSamplingMode? = nil, timeout: Swift.Double = 15, completion: ZTSportKit.ZTActivityResult?)
final public func stopActivity(timeout: Swift.Double = 30, completion: ZTSportKit.ZTActivityResult?)
final public func isPendingEmbeddedActivity(completion: @escaping (Swift.Bool, ZTCoreKit.ZTError?) -> Swift.Void)
final public func pushPendingEmbeddedActivities(completion: @escaping (ZTCoreKit.ZTError?) -> Swift.Void)
}
final public class ZTAnalysisCadence : ZTCoreKit.ZTMappable {
final public var timestamp: Foundation.Date?
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ public class ZTActivitySegmentAnalysis : ZTCoreKit.ZTMappable {
extension ZTSportKit.ZTSport {
final public func startActivity(attributes: [Swift.String : Any], userParameters: ZTSportKit.ZTUserDataParameters? = nil, enableRawData: Swift.Bool = false, samplingMode: ZTCoreKit.ZTSamplingMode? = nil, timeout: Swift.Double = 15, completion: ZTSportKit.ZTActivityResult?)
final public func stopActivity(timeout: Swift.Double = 30, completion: ZTSportKit.ZTActivityResult?)
final public func isPendingEmbeddedActivity(completion: @escaping (Swift.Bool, ZTCoreKit.ZTError?) -> Swift.Void)
final public func pushPendingEmbeddedActivities(completion: @escaping (ZTCoreKit.ZTError?) -> Swift.Void)
}
final public class ZTAnalysisCadence : ZTCoreKit.ZTMappable {
final public var timestamp: Foundation.Date?
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -38391,6 +38391,117 @@
"isFromExtension": true,
"funcSelfKind": "NonMutating"
},
{
"kind": "Function",
"name": "isPendingEmbeddedActivity",
"printedName": "isPendingEmbeddedActivity(completion:)",
"children": [
{
"kind": "TypeNominal",
"name": "Void",
"printedName": "()"
},
{
"kind": "TypeFunc",
"name": "Function",
"printedName": "(Swift.Bool, ZTCoreKit.ZTError?) -> ()",
"children": [
{
"kind": "TypeNominal",
"name": "Void",
"printedName": "()"
},
{
"kind": "TypeNominal",
"name": "Tuple",
"printedName": "(Swift.Bool, ZTCoreKit.ZTError?)",
"children": [
{
"kind": "TypeNominal",
"name": "Bool",
"printedName": "Swift.Bool",
"usr": "s:Sb"
},
{
"kind": "TypeNominal",
"name": "Optional",
"printedName": "ZTCoreKit.ZTError?",
"children": [
{
"kind": "TypeNominal",
"name": "ZTError",
"printedName": "ZTCoreKit.ZTError",
"usr": "s:9ZTCoreKit7ZTErrorO"
}
],
"usr": "s:Sq"
}
]
}
]
}
],
"declKind": "Func",
"usr": "s:10ZTSportKit0A0C25isPendingEmbeddedActivity10completionyySb_06ZTCoreB07ZTErrorOSgtc_tF",
"mangledName": "$s10ZTSportKit0A0C25isPendingEmbeddedActivity10completionyySb_06ZTCoreB07ZTErrorOSgtc_tF",
"moduleName": "ZTSportKit",
"declAttributes": [
"Final",
"AccessControl",
"RawDocComment"
],
"isFromExtension": true,
"funcSelfKind": "NonMutating"
},
{
"kind": "Function",
"name": "pushPendingEmbeddedActivities",
"printedName": "pushPendingEmbeddedActivities(completion:)",
"children": [
{
"kind": "TypeNominal",
"name": "Void",
"printedName": "()"
},
{
"kind": "TypeFunc",
"name": "Function",
"printedName": "(ZTCoreKit.ZTError?) -> ()",
"children": [
{
"kind": "TypeNominal",
"name": "Void",
"printedName": "()"
},
{
"kind": "TypeNominal",
"name": "Optional",
"printedName": "ZTCoreKit.ZTError?",
"children": [
{
"kind": "TypeNominal",
"name": "ZTError",
"printedName": "ZTCoreKit.ZTError",
"usr": "s:9ZTCoreKit7ZTErrorO"
}
],
"usr": "s:Sq"
}
]
}
],
"declKind": "Func",
"usr": "s:10ZTSportKit0A0C29pushPendingEmbeddedActivities10completionyy06ZTCoreB07ZTErrorOSgc_tF",
"mangledName": "$s10ZTSportKit0A0C29pushPendingEmbeddedActivities10completionyy06ZTCoreB07ZTErrorOSgc_tF",
"moduleName": "ZTSportKit",
"declAttributes": [
"Final",
"AccessControl",
"RawDocComment"
],
"isFromExtension": true,
"funcSelfKind": "NonMutating"
},
{
"kind": "Function",
"name": "createNewActivity",
Expand Down Expand Up @@ -44944,7 +45055,7 @@
"kind": "StringLiteral",
"offset": 597,
"length": 8,
"value": "\"1.1.34\""
"value": "\"1.1.35\""
},
{
"filePath": "\/Users\/pavel\/Documents\/Work\/Zhortech\/Framework\/iOS\/ztexample\/sdks\/ztsportkit\/Sources\/ZTSportKit\/ZTSport.swift",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ public class ZTActivitySegmentAnalysis : ZTCoreKit.ZTMappable {
extension ZTSportKit.ZTSport {
final public func startActivity(attributes: [Swift.String : Any], userParameters: ZTSportKit.ZTUserDataParameters? = nil, enableRawData: Swift.Bool = false, samplingMode: ZTCoreKit.ZTSamplingMode? = nil, timeout: Swift.Double = 15, completion: ZTSportKit.ZTActivityResult?)
final public func stopActivity(timeout: Swift.Double = 30, completion: ZTSportKit.ZTActivityResult?)
final public func isPendingEmbeddedActivity(completion: @escaping (Swift.Bool, ZTCoreKit.ZTError?) -> Swift.Void)
final public func pushPendingEmbeddedActivities(completion: @escaping (ZTCoreKit.ZTError?) -> Swift.Void)
}
final public class ZTAnalysisCadence : ZTCoreKit.ZTMappable {
final public var timestamp: Foundation.Date?
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ public class ZTActivitySegmentAnalysis : ZTCoreKit.ZTMappable {
extension ZTSportKit.ZTSport {
final public func startActivity(attributes: [Swift.String : Any], userParameters: ZTSportKit.ZTUserDataParameters? = nil, enableRawData: Swift.Bool = false, samplingMode: ZTCoreKit.ZTSamplingMode? = nil, timeout: Swift.Double = 15, completion: ZTSportKit.ZTActivityResult?)
final public func stopActivity(timeout: Swift.Double = 30, completion: ZTSportKit.ZTActivityResult?)
final public func isPendingEmbeddedActivity(completion: @escaping (Swift.Bool, ZTCoreKit.ZTError?) -> Swift.Void)
final public func pushPendingEmbeddedActivities(completion: @escaping (ZTCoreKit.ZTError?) -> Swift.Void)
}
final public class ZTAnalysisCadence : ZTCoreKit.ZTMappable {
final public var timestamp: Foundation.Date?
Expand Down
Loading

0 comments on commit 7a5215e

Please sign in to comment.