Skip to content

Commit bcb4ed9

Browse files
authoredMar 17, 2023
Merge pull request #1949 from LoopKit/dev
Release 3.2
2 parents 743b8d7 + a1fb919 commit bcb4ed9

File tree

430 files changed

+22522
-5419
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

430 files changed

+22522
-5419
lines changed
 

‎Common/FeatureFlags.swift

+15-6
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct FeatureFlagConfiguration: Decodable {
2626
let observeHealthKitCarbSamplesFromOtherApps: Bool
2727
let observeHealthKitDoseSamplesFromOtherApps: Bool
2828
let observeHealthKitGlucoseSamplesFromOtherApps: Bool
29-
let remoteOverridesEnabled: Bool
29+
let remoteCommandsEnabled: Bool
3030
let predictedGlucoseChartClampEnabled: Bool
3131
let scenariosEnabled: Bool
3232
let sensitivityOverridesEnabled: Bool
@@ -37,6 +37,7 @@ struct FeatureFlagConfiguration: Decodable {
3737
let usePositiveMomentumAndRCForManualBoluses: Bool
3838
let dynamicCarbAbsorptionEnabled: Bool
3939
let adultChildInsulinModelSelectionEnabled: Bool
40+
let profileExpirationSettingsViewEnabled: Bool
4041

4142

4243
fileprivate init() {
@@ -160,10 +161,10 @@ struct FeatureFlagConfiguration: Decodable {
160161
#endif
161162

162163
// Swift compiler config is inverse, since the default state is enabled.
163-
#if REMOTE_OVERRIDES_DISABLED
164-
self.remoteOverridesEnabled = false
164+
#if REMOTE_COMMANDS_DISABLED || REMOTE_OVERRIDES_DISABLED //REMOTE_OVERRIDES_DISABLED: backwards compatibility of Loop 3 & prior
165+
self.remoteCommandsEnabled = false
165166
#else
166-
self.remoteOverridesEnabled = true
167+
self.remoteCommandsEnabled = true
167168
#endif
168169

169170
#if SCENARIOS_ENABLED
@@ -212,6 +213,13 @@ struct FeatureFlagConfiguration: Decodable {
212213
#endif
213214

214215
self.dynamicCarbAbsorptionEnabled = true
216+
217+
// ProfileExpirationSettingsView is inverse, since the default state is enabled.
218+
#if PROFILE_EXPIRATION_SETTINGS_VIEW_DISABLED
219+
self.profileExpirationSettingsViewEnabled = false
220+
#else
221+
self.profileExpirationSettingsViewEnabled = true
222+
#endif
215223
}
216224
}
217225

@@ -232,7 +240,7 @@ extension FeatureFlagConfiguration : CustomDebugStringConvertible {
232240
"* observeHealthKitDoseSamplesFromOtherApps: \(observeHealthKitDoseSamplesFromOtherApps)",
233241
"* observeHealthKitGlucoseSamplesFromOtherApps: \(observeHealthKitGlucoseSamplesFromOtherApps)",
234242
"* predictedGlucoseChartClampEnabled: \(predictedGlucoseChartClampEnabled)",
235-
"* remoteOverridesEnabled: \(remoteOverridesEnabled)",
243+
"* remoteCommandsEnabled: \(remoteCommandsEnabled)",
236244
"* scenariosEnabled: \(scenariosEnabled)",
237245
"* sensitivityOverridesEnabled: \(sensitivityOverridesEnabled)",
238246
"* showEventualBloodGlucoseOnWatchEnabled: \(showEventualBloodGlucoseOnWatchEnabled)",
@@ -244,7 +252,8 @@ extension FeatureFlagConfiguration : CustomDebugStringConvertible {
244252
"* simpleBolusCalculatorEnabled: \(simpleBolusCalculatorEnabled)",
245253
"* usePositiveMomentumAndRCForManualBoluses: \(usePositiveMomentumAndRCForManualBoluses)",
246254
"* dynamicCarbAbsorptionEnabled: \(dynamicCarbAbsorptionEnabled)",
247-
"* adultChildInsulinModelSelectionEnabled: \(adultChildInsulinModelSelectionEnabled)"
255+
"* adultChildInsulinModelSelectionEnabled: \(adultChildInsulinModelSelectionEnabled)",
256+
"* profileExpirationSettingsViewEnabled: \(profileExpirationSettingsViewEnabled)"
248257
].joined(separator: "\n")
249258
}
250259
}

‎Common/ar.lproj/Intents.strings

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/* (No Comment) */
2+
"9KhaIS" = "I've set the preset";
3+
4+
/* (No Comment) */
5+
"80eo5o" = "Add Carb Entry";
6+
7+
/* (No Comment) */
8+
"b085BW" = "I wasn't able to set the preset.";
9+
10+
/* (No Comment) */
11+
"I4OZy8" = "Enable Override Preset";
12+
13+
/* (No Comment) */
14+
"lYMuWV" = "Override Name";
15+
16+
/* (No Comment) */
17+
"nDKAmn" = "What's the name of the override you'd like to set?";
18+
19+
/* (No Comment) */
20+
"OcNxIj" = "Add Carb Entry";
21+
22+
/* (No Comment) */
23+
"oLQSsJ" = "Enable '${overrideName}' Override Preset";
24+
25+
/* (No Comment) */
26+
"XNNmtH" = "Enable preset in Loop";
27+
28+
/* (No Comment) */
29+
"yBzwCL" = "Override Selection";
30+
31+
/* (No Comment) */
32+
"yc02Yq" = "Add a carb entry to Loop";
33+
34+
/* (No Comment) */
35+
"ZZ3mtM" = "Enable an override preset in Loop";
36+

0 commit comments

Comments
 (0)
Please sign in to comment.