Skip to content

Commit

Permalink
dana
Browse files Browse the repository at this point in the history
  • Loading branch information
mountrcg committed May 19, 2024
1 parent 20dab29 commit 37c3926
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions FreeAPS/Sources/Modules/PumpConfig/View/PumpSetupView.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import DanaKit
import LoopKit
import LoopKitUI
import MinimedKit
import MinimedKitUI
import MockKit
import MockKitUI
import OmniBLE
import OmniKit
import OmniKitUI
import SwiftUI
import UIKit
import DanaKit

extension PumpConfig {
struct PumpSetupView: UIViewControllerRepresentable {
Expand Down Expand Up @@ -56,20 +59,13 @@ extension PumpConfig {
allowDebugFeatures: true,
allowedInsulinTypes: [.apidra, .humalog, .novolog, .fiasp, .lyumjev]
)
case .dana:
setupViewController = DanaKitPumpManager.setupViewController(
initialSettings: initialSettings,
bluetoothProvider: bluetoothManager,
colorPalette: .default,
allowDebugFeatures: false,
allowedInsulinTypes: [.apidra, .humalog, .novolog, .fiasp, .lyumjev]
)
case .dana:
setupViewController = DanaKitPumpManager.setupViewController(
case .simulator:
setupViewController = MockPumpManager.setupViewController(
initialSettings: initialSettings,
bluetoothProvider: bluetoothManager,
colorPalette: .default,
allowDebugFeatures: false,
allowDebugFeatures: true,
prefersToSkipUserInteraction: false,
allowedInsulinTypes: [.apidra, .humalog, .novolog, .fiasp, .lyumjev]
)
case .dana:
Expand All @@ -80,15 +76,6 @@ extension PumpConfig {
allowDebugFeatures: false,
allowedInsulinTypes: [.apidra, .humalog, .novolog, .fiasp, .lyumjev]
)
case .simulator:
setupViewController = MockPumpManager.setupViewController(
initialSettings: initialSettings,
bluetoothProvider: bluetoothManager,
colorPalette: .default,
allowDebugFeatures: true,
prefersToSkipUserInteraction: false,
allowedInsulinTypes: [.apidra, .humalog, .novolog, .fiasp, .lyumjev]
)
}

// setupViewController.setupDelegate = setupDelegate
Expand Down

0 comments on commit 37c3926

Please sign in to comment.