Skip to content

Commit 342f379

Browse files
committed
Automatic bolus cleanup
1 parent 79959ba commit 342f379

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

Common/Extensions/NSBundle.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,8 @@ extension Bundle {
1818
return object(forInfoDictionaryKey: "CFBundleDisplayName") as! String
1919
}
2020

21-
var featureSpecifier: String? {
22-
return object(forInfoDictionaryKey: "com.loopkit.Loop.featureSpecifier") as? String
23-
}
24-
2521
var localizedNameAndVersion: String {
26-
var displayName = bundleDisplayName
27-
if let featureSpecifier = featureSpecifier {
28-
displayName += " (\(featureSpecifier))"
29-
}
30-
return String(format: NSLocalizedString("%1$@ v%2$@", comment: "The format string for the app name and version number. (1: bundle name)(2: bundle version)"), displayName, shortVersionString)
22+
return String(format: NSLocalizedString("%1$@ v%2$@", comment: "The format string for the app name and version number. (1: bundle name)(2: bundle version)"), bundleDisplayName, shortVersionString)
3123
}
3224

3325
private var mainAppBundleIdentifier: String? {

Loop/Info.plist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>com.loopkit.Loop.featureSpecifier</key>
6-
<string>Automatic Bolusing</string>
75
<key>AppGroupIdentifier</key>
86
<string>$(APP_GROUP_IDENTIFIER)</string>
97
<key>CFBundleDevelopmentRegion</key>

LoopCore/LoopSettings.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public extension DosingStrategy {
2626
var subtitle: String {
2727
switch self {
2828
case .tempBasalOnly:
29-
return NSLocalizedString("Loop will dose via temp basals, limited by your max temp basal setting.", comment: "Description string for temp basal only dosing strategy")
29+
return NSLocalizedString("Loop will dose insulin using 30 minute temporary basal rates, limited by your max temp basal setting. This is the same strategy that Loop used in previous versions.", comment: "Description string for temp basal only dosing strategy")
3030
case .automaticBolus:
31-
return NSLocalizedString("Loop will automatically bolus when bg is predicted to be higher than target range, and will use temp basals when bg is predicted to be lower than target range.", comment: "Description string for automatic bolus dosing strategy")
31+
return NSLocalizedString("Loop will automatically bolus when bg is predicted to be higher than target range, and will use temp basals when bg is predicted to be lower than target range. Please use caution when selecting this option for the first time. You may need re-evaluate your settings, even if you have been having success with those settings when using Loop's original temp basal strategy.", comment: "Description string for automatic bolus dosing strategy")
3232
}
3333
}
3434
}

0 commit comments

Comments
 (0)