Skip to content

Commit

Permalink
feat:Update SDK to 9.2.0 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
dompepin authored Jul 8, 2024
1 parent fd33c47 commit d9b1139
Show file tree
Hide file tree
Showing 116 changed files with 888 additions and 255 deletions.
36 changes: 35 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
# Release Notes

## 9.2.0
### New
This version of the SDK adds support for wait offline. This gives the patient the option to close the app, remain in the wait queue, and be notified when their provider is ready for them. To accomplish this, we've added a number of things:
- New localizable strings:
| localizable.strings key | Usage|
|---|---|
|waitingRoom_link_waitOffline| CTA to enter the wait offline state |
|waitingRoom_message_waitOfflinePrompt| Prompt to explain the wait offline CTA |
|waitingRoom_waitOffline_title| Title shown when the patient successfully enters the wait offline state |
|waitingRoom_waitOffline_message| Message shown when the patient successfully enters the wait offline state |
|dialog_waitOffline_title| Title for the wait offline confirmation dialog |
|dialog_waitOffline_message| Message for the wait offline confirmation dialog |
|dialog_waitOffline_stay| Dialog action to not enter wait offline and remain in the waiting room |
|dialog_waitOffline_stay| Dialog action to enter the wait offline state and come back later |
|dialog_waitingRoom_button_confirm| Replaces `dialog_waitingRoomCancelConfirm_button_confirm` as the generic confirm action in dialogs |
- New `VisitStatus.waitOffline` case: Indicates that the patient is waiting offline and waiting for a notification to rejoin the visit.
- New `VisitCompletionReason.waitOffline` case: Used in the visit completion block to indicate the user chose to wait offline and close the visit for now.

### Changes
- New `VisitStatus.caregiverAssigned` case: Indicates that a caregiver was assigned to the visit and that the visit is ready to start.
- Gave the alerts shown by the SDK a facelift to provide better extensibility options in the future.
- Updated the `dialog_waitingRoomCancelConfirm_button_confirm` localizable strings key to `Cancel visit and leave`
- Added a Privacy manifest file `PrivacyInfo.xcprivacy` to the SDK. The SDK privacy manifest file does not include Nutrition Labels as these entries will depend on which API you are using. Refer to the README.md file for more information.

### Bug fixes
- Fixed issue where the Chat View back button was not visible when the Navigation Bar global tint color was white.

### Breaking

- `WaitTimeFailedReason.regionUnavailable` enum case was replaced by:
- `WaitTimeFailedReason.regionBusy`: Returned when region is experiencing high demand.
- `WaitTimeFailedReason.offHours`: Returned when the region is off hours / closed.
- New `WaitTimeFailedReason.visitNotFound` case: Returned when the given `visitId` is not found.

## 9.1.1
### Bug Fixes
- Fixed virtual visit crash when integrating the SDK using Service Package Manager (SPM).
Expand All @@ -11,7 +45,7 @@
### New
This version of the SDK adds support for virtual visit transfers between providers. To accomplish this we've added a number of things:

- Localizable strings:
- New Localizable strings:

| localizable.strings key | Usage|
|-------------------------------------------------------------|---|
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.1.1'
s.version = '9.2.0'
s.platform = :ios, '13.0'
s.swift_version = '5.0'
s.summary = 'DexcareSDK library for express care services'
Expand Down
4 changes: 3 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ let package = Package(
"MessageKit",
"FittedSheets",
.product(name: "VonageClientSDKVideo", package: "vonage-client-sdk-video")
])
],
resources: [.process("PrivacyInfo.xcprivacy")]
)
]
)
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,20 @@ Cocoapods will install the following dependencies
'FittedSheets' - Controls the presentation of the virtual visits
```

## Swift/Xcode

Starting with v6.0 will no longer work on Xcode 11 and you must upgrade to Xcode 12+ in order to use it. With this change, the framework has been upgraded to use the new `.xcframework` style of distribution. This will allow us to be more backwards compatible on swift versions going forward.

## Privacy Manifest

Apple requires all apps and SDKs to provide a [privacy manifest file](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files). The DexCare SDK contains multiple APIs, making it hard for us to create a manifest file with all the "Privacy Nutrition Label Types" as it depends on which APIs you will use. If you want to see an example of a manifest file, please look at our [SampleApp](https://github.com/DexCare/DexCareSDK.iOS.SampleApp).

Here is the data we collect as part of our booking processes (Virtual, Provider, or Retail):
- **Name**: Used to book a visit.
- **Email Address**: Used to book a visit.
- **Phone Number**: Used to book a visit.
- **Physical Address**: Used to book a visit.
- **Other Diagnostic Data**: Used to help troubleshoot issues that could arise while using any of our APIs.

If you still have questions or need clarifications, please contact your implementation team.

## Changelog

Latest can be found on the [Changelog](changelog.md)
Latest changes can be found in the [Changelog](changelog.md)

2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/Common/Bundle+DexcareSDK.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019 Providence. All rights reserved.
// Copyright © 2019 DexCare. All rights reserved.

import Foundation

Expand Down
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/Common/CanBeEmpty.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2018 Providence. All rights reserved.
// Copyright © 2018 DexCare. All rights reserved.

import Foundation

Expand Down
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/Common/Codable+Extension.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019 Providence. All rights reserved.
// Copyright © 2019 DexCare. All rights reserved.

import Foundation

Expand Down
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/Common/Collection+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ExpressCareCore
//
// Created by Reuben Lee on 2018-01-18.
// Copyright © 2018 Providence. All rights reserved.
// Copyright © 2018 DexCare. All rights reserved.
//

import Foundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/Common/Data+Extension.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.

import Foundation

Expand Down
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/Common/DateFormatter+Extension.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019 Providence. All rights reserved.
// Copyright © 2019 DexCare. All rights reserved.

import Foundation

Expand Down
4 changes: 2 additions & 2 deletions Sources/DexcareiOSSDK/Common/DexcareAppVersion.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//
// AppVersion.swift
// ProvidenceVideo
// DexcareAppVersion
//
// Created by Reuben Lee on 2018-01-24.
// Copyright © 2018 Providence. All rights reserved.
// Copyright © 2018 DexCare. All rights reserved.
//

import Foundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/Common/DexcareSDKLogger.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019 Providence. All rights reserved.
// Copyright © 2019 DexCare. All rights reserved.

import Foundation

Expand Down
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/Common/EmailValidator.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.

import Foundation

Expand Down
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/Common/NotificationObserver.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019 Providence. All rights reserved.
// Copyright © 2019 DexCare. All rights reserved.

import Foundation

Expand Down
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/Common/PhoneValidator.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.

import Foundation

Expand Down
8 changes: 5 additions & 3 deletions Sources/DexcareiOSSDK/Common/UIColor+Extension.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// Copyright © 2019 Providence. All rights reserved.
// Copyright © 2019 DexCare. All rights reserved.

import Foundation
import UIKit

extension UIColor {
// After discussion it was decided we will keep a static color in DexcareSDK for now.
static var buttonColor: UIColor = UIColor(red: 0.0/255.0, green: 105.0/255.0, blue: 170.0/255.0, alpha: 1.0)
static var link: UIColor = UIColor(red: 0.0/255.0, green: 122.0/255.0, blue: 1.0, alpha: 1.0)
static let buttonColor = UIColor(red: 0.0/255.0, green: 105.0/255.0, blue: 170.0/255.0, alpha: 1.0)
static let link: UIColor = UIColor(red: 0.0/255.0, green: 122.0/255.0, blue: 1.0, alpha: 1.0)
static let error: UIColor = UIColor(red: 211.0/255.0, green: 0.0/255.0, blue: 0.0/255.0, alpha: 1.0)
static let divider = UIColor(hue: 0, saturation: 0, brightness: 0.43, alpha: 1.0)
}
12 changes: 6 additions & 6 deletions Sources/DexcareiOSSDK/Common/UIView+Extension.swift
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// Copyright © 2019 Providence. All rights reserved.
// Copyright © 2019 DexCare. All rights reserved.

import Foundation
import UIKit

extension UIView {
func addAndClampToEdges(of parentView: UIView) {
func addAndClampToEdges(of parentView: UIView, margins: CGFloat = 0) {
translatesAutoresizingMaskIntoConstraints = false
parentView.addSubview(self)

NSLayoutConstraint.activate([
leadingAnchor.constraint(equalTo: parentView.leadingAnchor),
trailingAnchor.constraint(equalTo: parentView.trailingAnchor),
topAnchor.constraint(equalTo: parentView.topAnchor),
bottomAnchor.constraint(equalTo: parentView.bottomAnchor)
leadingAnchor.constraint(equalTo: parentView.leadingAnchor, constant: margins),
trailingAnchor.constraint(equalTo: parentView.trailingAnchor, constant: -margins),
topAnchor.constraint(equalTo: parentView.topAnchor, constant: margins),
bottomAnchor.constraint(equalTo: parentView.bottomAnchor, constant: -margins)
])
}
}
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/Common/ZipCodeValidator.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.

import Foundation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// DexcareiOSSDK
//
// Created by Matt Kiazyk on 2022-10-14.
// Copyright © 2022 Providence. All rights reserved.
// Copyright © 2022 DexCare. All rights reserved.
//

import Foundation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// DexcareiOSSDK
//
// Created by Matt Kiazyk on 2022-09-26.
// Copyright © 2022 Providence. All rights reserved.
// Copyright © 2022 DexCare. All rights reserved.
//

import Foundation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// DexcareiOSSDK
//
// Created by Matt Kiazyk on 2022-10-14.
// Copyright © 2022 Providence. All rights reserved.
// Copyright © 2022 DexCare. All rights reserved.
//

import Foundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/DataModels/Common/Actor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// DexcareSDK
//
// Created by Barry on 4/22/20.
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.
//

struct Actor: Encodable, Equatable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// DexcareSDK
//
// Created by Matt Kiazyk on 2020-03-25.
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.
//

import Foundation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// DexcareSDK
//
// Created by Barry on 4/22/20.
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.
//

import Foundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/DataModels/Common/Gender.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.

/// A generic representation of a Gender
@frozen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// DexcareSDK
//
// Created by Barry on 4/23/20.
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.
//

import Foundation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.

import Foundation

Expand Down
13 changes: 13 additions & 0 deletions Sources/DexcareiOSSDK/DataModels/Configs/BlisseyConfigs.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// BlisseyConfigs.swift
// DexcareiOSSDK
//
// Created by Daniel Johns on 2024-02-13.
// Copyright © 2024 DexCare. All rights reserved.
//

import Foundation

struct BlisseyConfigs: Decodable {
let minimumWaitTimeForWaitOffline: Int
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019 Providence. All rights reserved.
// Copyright © 2019 DexCare. All rights reserved.

import Foundation

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.

import Foundation

Expand Down
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/DataModels/Patient/HumanName.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.

import Foundation
/// A structure containing information about a patient's name
Expand Down
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/DataModels/Patient/Identifier.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.

/// A struct representing an EHRSystem + identifier
public struct Identifier: Equatable, Codable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.

import Foundation

Expand Down
2 changes: 1 addition & 1 deletion Sources/DexcareiOSSDK/DataModels/Patient/PatientGuid.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.

import Foundation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// DexcareSDK
//
// Created by Matt Kiazyk on 2020-12-21.
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.
//

import Foundation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// DexcareSDK
//
// Created by Matt Kiazyk on 2020-12-21.
// Copyright © 2020 Providence. All rights reserved.
// Copyright © 2020 DexCare. All rights reserved.
//

import Foundation
Expand Down Expand Up @@ -72,6 +72,31 @@ public struct VirtualPracticeRegion: Codable, Equatable {
pediatricsAgeRange = try? values.decode(PediatricsAgeRange.self, forKey: .pediatricsAgeRange)
departments = try values.decode([PracticeRegionDepartment].self, forKey: .departments)
}

// An internal constructor for VirtualPracticeRegion
// This constructor is not intended to be used in production
// It was created to simplify testing and SwiftUI previews
public init(practiceRegionId: String,
displayName: String,
regionCode: String,
active: Bool,
busy: Bool,
busyMessage: String,
visitPrice: Decimal,
availability: [PracticeRegionAvailability],
pediatricsAgeRange: PediatricsAgeRange?,
departments: [PracticeRegionDepartment]) {
self.practiceRegionId = practiceRegionId
self.displayName = displayName
self.regionCode = regionCode
self.active = active
self.busy = busy
self.busyMessage = busyMessage
self.visitPrice = visitPrice
self.availability = availability
self.pediatricsAgeRange = pediatricsAgeRange
self.departments = departments
}
}

// The pediatric age range used for providers that support pediatric visits
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2021 Providence. All rights reserved.
// Copyright © 2021 DexCare. All rights reserved.

import Foundation

Expand Down
Loading

0 comments on commit d9b1139

Please sign in to comment.