Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
09ef9d6
Merge pull request #2 from LoopKit/dev
ps2 Jan 25, 2019
2f6f280
Merge pull request #2 from LoopKit/dev
ps2 Jan 25, 2019
3b52c62
[COASTAL-1291] plugin identifier is no longer class property (#43)
nhamming Sep 25, 2023
bec9ccc
[COASTAL-1291] plugin identifier is no longer class property (#43)
nhamming Sep 25, 2023
6c6139d
Merge remote-tracking branch 'origin/dev' into ps2/LOOP-4735/cgm-even…
ps2 Sep 26, 2023
904dc63
Merge remote-tracking branch 'origin/dev' into ps2/LOOP-4735/cgm-even…
ps2 Sep 26, 2023
d6b7210
Merge remote-tracking branch 'origin/main' into ps2/LOOP-4735/cgm-eve…
ps2 Sep 27, 2023
b248c9a
Merge remote-tracking branch 'origin/main' into ps2/LOOP-4735/cgm-eve…
ps2 Sep 27, 2023
a420692
Merge pull request #44 from tidepool-org/ps2/LOOP-4735/cgm-event-store
ps2 Sep 27, 2023
504a143
Merge pull request #44 from tidepool-org/ps2/LOOP-4735/cgm-event-store
ps2 Sep 27, 2023
60200ee
Types moved to LoopAlgorithm
ps2 Mar 1, 2024
2b6b771
Types moved to LoopAlgorithm
ps2 Mar 1, 2024
f87b1f2
Merge pull request #45 from tidepool-org/ps2/LOOP-4781/algorithm-package
ps2 Mar 5, 2024
030915c
Merge pull request #45 from tidepool-org/ps2/LOOP-4781/algorithm-package
ps2 Mar 5, 2024
3013247
[LOOP-5153] Remove HealthKit dependency from LoopAlgorithm
Camji55 Nov 21, 2024
c4b9feb
[LOOP-5153] Remove HealthKit dependency from LoopAlgorithm
Camji55 Nov 21, 2024
b218643
[LOOP-5153] Remove HealthKit dependency from LoopAlgorithm
Camji55 Nov 22, 2024
a768aac
[LOOP-5153] Remove HealthKit dependency from LoopAlgorithm
Camji55 Nov 22, 2024
5727d52
[LOOP-5153] Remove HealthKit dependency from LoopAlgorithm
Camji55 Dec 4, 2024
4081101
[LOOP-5153] Remove HealthKit dependency from LoopAlgorithm
Camji55 Dec 4, 2024
87de4ff
Bump to iOS 17
Camji55 Dec 6, 2024
28b5355
Bump to iOS 17
Camji55 Dec 6, 2024
85781c3
Bump to iOS 17
Camji55 Dec 9, 2024
748cfb9
Bump to iOS 17
Camji55 Dec 9, 2024
3e4e564
Changes for protocol updates
ps2 Jul 24, 2025
8a9b995
Changes for protocol updates
ps2 Jul 24, 2025
38be049
Merge pull request #48 from tidepool-org/ps2/LOOP-5235/enable-schedul…
ps2 Jul 29, 2025
97a2030
Merge pull request #48 from tidepool-org/ps2/LOOP-5235/enable-schedul…
ps2 Jul 29, 2025
ac94e87
[LOOP-5496] adding loop status checks (#49)
nhamming Oct 24, 2025
b27510d
[LOOP-5496] adding loop status checks (#49)
nhamming Oct 24, 2025
a4b6a4b
Merge tidepool/dev into tidepool-sync/2026-03-10
loopkitdev Mar 10, 2026
320cc67
Merge remote-tracking branch 'upstream/dev' into tidepool-sync/2026-0…
loopkitdev Apr 9, 2026
e4c2796
Merge tidepool/dev into tidepool-sync/2026-05-11
ps2 May 11, 2026
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
9 changes: 2 additions & 7 deletions ShareClient.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
objects = {

/* Begin PBXBuildFile section */
4325E9CF210E6A0A00969CE5 /* HKUnit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4325E9CE210E6A0A00969CE5 /* HKUnit.swift */; };
4325E9D1210E6A3D00969CE5 /* TimeInterval.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4325E9D0210E6A3D00969CE5 /* TimeInterval.swift */; };
4325E9D3210E6ADA00969CE5 /* IdentifiableClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4325E9D2210E6ADA00969CE5 /* IdentifiableClass.swift */; };
4325E9D5210E6B4400969CE5 /* UIColor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4325E9D4210E6B4300969CE5 /* UIColor.swift */; };
Expand All @@ -28,7 +27,6 @@
43AB51362133177800B3D58D /* LocalizedString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43AB51352133177800B3D58D /* LocalizedString.swift */; };
43AB51372133177800B3D58D /* LocalizedString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43AB51352133177800B3D58D /* LocalizedString.swift */; };
43C418AF1CE0488900405B6A /* ShareClient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43C418AE1CE0488900405B6A /* ShareClient.swift */; };
A9ED4D93225EB4D30080DEBA /* HKUnit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4325E9CE210E6A0A00969CE5 /* HKUnit.swift */; };
A9ED4D94225EB4D30080DEBA /* TimeInterval.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4325E9D0210E6A3D00969CE5 /* TimeInterval.swift */; };
A9ED4D95225EB4D30080DEBA /* ShareClientManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43A8EC9C210E68CE00A81379 /* ShareClientManager.swift */; };
A9ED4D96225EB4D30080DEBA /* LocalizedString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43AB51352133177800B3D58D /* LocalizedString.swift */; };
Expand Down Expand Up @@ -64,7 +62,6 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
4325E9CE210E6A0A00969CE5 /* HKUnit.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HKUnit.swift; sourceTree = "<group>"; };
4325E9D0210E6A3D00969CE5 /* TimeInterval.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TimeInterval.swift; sourceTree = "<group>"; };
4325E9D2210E6ADA00969CE5 /* IdentifiableClass.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IdentifiableClass.swift; sourceTree = "<group>"; };
4325E9D4210E6B4300969CE5 /* UIColor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIColor.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -435,7 +432,6 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
4325E9CF210E6A0A00969CE5 /* HKUnit.swift in Sources */,
4325E9D1210E6A3D00969CE5 /* TimeInterval.swift in Sources */,
B40BF26823ABD55200A43CEE /* OSLog.swift in Sources */,
43A8EC9D210E68CE00A81379 /* ShareClientManager.swift in Sources */,
Expand Down Expand Up @@ -464,7 +460,6 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A9ED4D93225EB4D30080DEBA /* HKUnit.swift in Sources */,
A9ED4D94225EB4D30080DEBA /* TimeInterval.swift in Sources */,
A9ED4D95225EB4D30080DEBA /* ShareClientManager.swift in Sources */,
A9ED4D96225EB4D30080DEBA /* LocalizedString.swift in Sources */,
Expand Down Expand Up @@ -549,7 +544,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
IPHONEOS_DEPLOYMENT_TARGET = 17.6;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
LOCALIZED_STRING_MACRO_NAMES = (
NSLocalizedString,
Expand Down Expand Up @@ -613,7 +608,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
IPHONEOS_DEPLOYMENT_TARGET = 17.6;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
LOCALIZED_STRING_MACRO_NAMES = (
NSLocalizedString,
Expand Down
16 changes: 0 additions & 16 deletions ShareClient/HKUnit.swift

This file was deleted.

12 changes: 8 additions & 4 deletions ShareClient/ShareClientManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ import HealthKit


public class ShareClientManager: CGMManager {
public var inSignalLoss: Bool = false

public var isInoperable: Bool {
cgmManagerStatus.isInoperable
}


public static let pluginIdentifier = "DexShareClient"
public let pluginIdentifier = "DexShareClient"

public init() {
shareService = ShareService(keychainManager: keychain)
Expand Down Expand Up @@ -133,9 +139,7 @@ public class ShareClientManager: CGMManager {

// MARK: - AlertResponder implementation
extension ShareClientManager {
public func acknowledgeAlert(alertIdentifier: Alert.AlertIdentifier, completion: @escaping (Error?) -> Void) {
completion(nil)
}
public func acknowledgeAlert(alertIdentifier: LoopKit.Alert.AlertIdentifier) async throws { }
}

// MARK: - AlertSoundVendor implementation
Expand Down
8 changes: 4 additions & 4 deletions ShareClient/ShareGlucose+GlucoseKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//

import Foundation
import HealthKit
import LoopKit
import LoopAlgorithm

enum GlucoseLimits {
static var minimum: UInt16 = 40
Expand All @@ -20,8 +20,8 @@ extension ShareGlucose: GlucoseValue {
return timestamp
}

public var quantity: HKQuantity {
return HKQuantity(unit: .milligramsPerDeciliter, doubleValue: Double(min(max(glucose, GlucoseLimits.minimum), GlucoseLimits.maximum)))
public var quantity: LoopQuantity {
return LoopQuantity(unit: .milligramsPerDeciliter, doubleValue: Double(min(max(glucose, GlucoseLimits.minimum), GlucoseLimits.maximum)))
}
}

Expand All @@ -35,7 +35,7 @@ extension ShareGlucose: GlucoseDisplayable {
return GlucoseTrend(rawValue: Int(trend))
}

public var trendRate: HKQuantity? {
public var trendRate: LoopQuantity? {
return nil
}

Expand Down
1 change: 0 additions & 1 deletion ShareClientUI/ShareClientManager+UI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import SwiftUI
import LoopKit
import LoopKitUI
import HealthKit
import ShareClient

extension ShareClientManager: CGMManagerUI {
Expand Down
4 changes: 2 additions & 2 deletions ShareClientUI/ShareClientSettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import UIKit
import Combine
import HealthKit
import LoopAlgorithm
import LoopKit
import LoopKitUI
import ShareClient
Expand All @@ -20,7 +20,7 @@ public class ShareClientSettingsViewController: UITableViewController {

private lazy var cancellables = Set<AnyCancellable>()

private var glucoseUnit: HKUnit {
private var glucoseUnit: LoopUnit {
displayGlucosePreference.unit
}

Expand Down