Skip to content

Commit

Permalink
feat: Update SDK to 9.3.0 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoGGoncalvesDex authored Oct 25, 2024
1 parent 29d21d0 commit dbd6828
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
### Bug fixes
- Fixes issue where sdkVersion was returning nil when integrated via SPM
- Fixes issue where chat message `creationDate` epoch timestamp contained decimal places
- Display number instead of words for wait time period in virtual visit waiting room


## 9.2.1
Expand Down
2 changes: 1 addition & 1 deletion DexcareSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'DexcareSDK'
s.version = '9.2.1'
s.version = '9.3.0'
s.platform = :ios, '14.0'
s.swift_version = '5.0'
s.summary = 'DexcareSDK library for express care services'
Expand Down
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/Dexcare-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<plist version="1.0">
<dict>
<key>CFBundleShortVersionString</key>
<string>9.2.1</string>
<string>9.3.0</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated using Sourcery 1.7.0 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 2.2.5 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT

// swiftlint:disable all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import MessageKit
import UIKit

protocol ExternalLinkHandler {
func open(_ url: URL, options: [UIApplication.OpenExternalURLOptionsKey: Any], completionHandler completion: ((Bool) -> Void)?)
func open(_ url: URL, options: [UIApplication.OpenExternalURLOptionsKey: Any], completionHandler completion: (@MainActor @Sendable (Bool) -> Void)?)
}

extension UIApplication: ExternalLinkHandler {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,17 @@ extension VirtualVisitOpenTokManager {
func convertMinMaxTemplate(minSeconds: TimeInterval, maxSeconds: TimeInterval, templateKey: String) -> String? {
let formatter = DateComponentsFormatter()
formatter.allowedUnits = [.hour, .minute]
formatter.unitsStyle = .spellOut
formatter.unitsStyle = .full
formatter.calendar = Calendar.current

if let minSecondsString = formatter.string(from: minSeconds), let maxSecondsString = formatter.string(from: maxSeconds) {
return String(format: localizeString(templateKey), minSecondsString, maxSecondsString)
let formatterMin = DateComponentsFormatter()
formatterMin.allowedUnits = [.hour, .minute]
formatterMin.unitsStyle = .short
formatter.calendar = Calendar.current

if let minSecondsString = formatterMin.string(from: minSeconds), let maxSecondsString = formatter.string(from: maxSeconds) {
let cleanMin = minSecondsString.filter { $0.isNumber }
return String(format: localizeString(templateKey), cleanMin, maxSecondsString)
} else {
return nil
}
Expand Down

0 comments on commit dbd6828

Please sign in to comment.