Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ENGAGEHF.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/FelixHerrmann/swift-package-list.git";
requirement = {
kind = upToNextMinorVersion;
kind = upToNextMajorVersion;
minimumVersion = 4.8.0;
};
};
Expand All @@ -836,7 +836,7 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/StanfordSpezi/SpeziLicense.git";
requirement = {
kind = upToNextMinorVersion;
kind = upToNextMajorVersion;
minimumVersion = 1.0.0;
};
};
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 19 additions & 5 deletions ENGAGEHF/ENGAGEHFDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,29 @@ class ENGAGEHFDelegate: SpeziAppDelegate {
FirebaseStorageConfiguration()
}
PhoneVerificationProvider()
} else {
AccountConfiguration(
service: InMemoryAccountService(),
storageProvider: InMemoryAccountStorageProvider(),
configuration: [
.requires(\.userId),
.supports(\.name),
.manual(\.invitationCode),
.manual(\.organization),
.manual(\.receivesAppointmentReminders),
.manual(\.receivesInactivityReminders),
.manual(\.receivesMedicationUpdates),
.manual(\.receivesQuestionnaireReminders),
.manual(\.receivesRecommendationUpdates),
.manual(\.receivesVitalsReminders),
.manual(\.receivesWeightAlerts)
]
)
}

Bluetooth {
if #available(iOS 18, *) {
// Normally, we would supply the `supportOptions: .bluetoothPairingLE` argument to automatically handle the "Pair" alert.
// However, some build of iOS broke this, and if you do this with a factory reset device, results in the following error:
// Code=14, Description=Peer removed pairing information and the device will never connect or pair.
// This seems to not be a problem with the SC-150 scale.
Discover(OmronBloodPressureCuff.self, by: .accessory(advertising: BloodPressureService.self))
Discover(OmronBloodPressureCuff.self, by: .accessory(advertising: BloodPressureService.self, supportOptions: .bluetoothPairingLE))
Discover(OmronWeightScale.self, by: .accessory(advertising: WeightScaleService.self, supportOptions: .bluetoothPairingLE))
} else {
Discover(OmronBloodPressureCuff.self, by: .advertisedService(BloodPressureService.self))
Expand Down
3 changes: 3 additions & 0 deletions ENGAGEHF/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@
},
"Diastolic" : {
"comment" : "The lower number in a blood pressure reading"
},
"Devices" : {

},
"Dismiss Button" : {
"comment" : "Accessability label for the XButton view of the MessageRow view."
Expand Down
1 change: 1 addition & 0 deletions ENGAGEHF/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
</array>
<key>NSAccessorySetupKitSupports</key>
<array>
<string>Bluetooth</string>
</array>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Application must access bluetooth to connect to data collecting devices and retrieve data from weight scale and blood pressure cuff.</string>
Expand Down
Loading