File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -435,6 +435,7 @@ extension OnboardingManager: TherapySettingsProvider {
435
435
436
436
extension OnboardingManager : OnboardingProvider {
437
437
var allowDebugFeatures : Bool { FeatureFlags . allowDebugFeatures } // NOTE: DEBUG FEATURES - DEBUG AND TEST ONLY
438
+ var studyProductSelection : StudyProduct { StudyProduct ( rawValue: UserDefaults . appGroup? . studyProductSelection ?? " none " ) ?? . none }
438
439
}
439
440
440
441
// MARK: - OnboardingUI
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ extension UserDefaults {
20
20
case lastProfileExpirationAlertDate = " com.loopkit.Loop.lastProfileExpirationAlertDate "
21
21
case allowDebugFeatures = " com.loopkit.Loop.allowDebugFeatures "
22
22
case allowSimulators = " com.loopkit.Loop.allowSimulators "
23
+ case studyProductSelection = " com.loopkit.Loop.studyProductSelection "
23
24
case resetLoop = " com.loopkit.Loop.resetLoop "
24
25
}
25
26
@@ -128,6 +129,15 @@ extension UserDefaults {
128
129
return bool ( forKey: Key . allowSimulators. rawValue)
129
130
}
130
131
132
+ public var studyProductSelection : String ? {
133
+ get {
134
+ string ( forKey: Key . studyProductSelection. rawValue)
135
+ }
136
+ set {
137
+ set ( newValue, forKey: Key . studyProductSelection. rawValue)
138
+ }
139
+ }
140
+
131
141
public var resetLoop : Bool {
132
142
get {
133
143
bool ( forKey: Key . resetLoop. rawValue)
You can’t perform that action at this time.
0 commit comments