Skip to content
Open
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
2 changes: 2 additions & 0 deletions CGMBLEKitG5Plugin/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
<string>Dexcom G5</string>
<key>com.loopkit.Loop.CGMManagerIdentifier</key>
<string>DexG5Transmitter</string>
<key>com.loopkit.Loop.DeviceManufacturer</key>
<string>Dexcom</string>
</dict>
</plist>
2 changes: 2 additions & 0 deletions CGMBLEKitG6Plugin/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
<string>Dexcom G6 / ONE</string>
<key>com.loopkit.Loop.CGMManagerIdentifier</key>
<string>DexG6Transmitter</string>
<key>com.loopkit.Loop.DeviceManufacturer</key>
<string>Dexcom</string>
</dict>
</plist>
12 changes: 12 additions & 0 deletions CGMBLEKitUI/Assets.xcassets/g5.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "g5.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file added CGMBLEKitUI/Assets.xcassets/g5.imageset/g5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions CGMBLEKitUI/TransmitterManager+UI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ extension G5CGMManager: CGMManagerUI {
return nil
}

public static var pickerImage: UIImage? {
return UIImage(named: "g5", in: Bundle(for: TransmitterSetupViewController.self), compatibleWith: nil)
}

public static func setupViewController(bluetoothProvider: BluetoothProvider, displayGlucosePreference: DisplayGlucosePreference, colorPalette: LoopUIColorPalette, allowDebugFeatures: Bool, prefersToSkipUserInteraction: Bool = false) -> SetupUIResult<CGMManagerViewController, CGMManagerUI> {
let setupVC = TransmitterSetupViewController.instantiateFromStoryboard()
setupVC.cgmManagerType = self
Expand Down Expand Up @@ -54,6 +58,10 @@ extension G6CGMManager: CGMManagerUI {
return nil
}

public static var pickerImage: UIImage? {
return UIImage(named: "g6", in: Bundle(for: TransmitterSetupViewController.self), compatibleWith: nil)
}

public static func setupViewController(bluetoothProvider: BluetoothProvider, displayGlucosePreference: DisplayGlucosePreference, colorPalette: LoopUIColorPalette, allowDebugFeatures: Bool, prefersToSkipUserInteraction: Bool = false) -> SetupUIResult<CGMManagerViewController, CGMManagerUI> {
let setupVC = TransmitterSetupViewController.instantiateFromStoryboard()
setupVC.cgmManagerType = self
Expand Down