File tree Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -229,26 +229,38 @@ extension FeatureFlagConfiguration : CustomDebugStringConvertible {
229229
230230extension FeatureFlagConfiguration {
231231 var allowDebugFeatures : Bool {
232- #if ALLOW_DEBUG_FEATURES_ENABLED
232+ #if DEBUG_FEATURES_ENABLED
233233 return true
234- #else
235- if UserDefaults . appGroup ? . allowDebugFeatures ?? false {
234+ #elseif DEBUG_FEATURES_ENABLED_CONDITIONALLY
235+ if debugEnabled {
236236 return true
237237 } else {
238- return false
238+ if UserDefaults . appGroup? . allowDebugFeatures ?? false {
239+ return true
240+ } else {
241+ return false
242+ }
239243 }
244+ #else
245+ return false
240246 #endif
241247 }
242248
243249 var allowSimulators : Bool {
244- #if ALLOW_SIMULATORS_ENABLED
250+ #if SIMULATORS_ENABLED
245251 return true
246- #else
247- if UserDefaults . appGroup ? . allowSimulators ?? false {
252+ #elseif SIMULATORS_ENABLED_CONDITIONALLY
253+ if debugEnabled {
248254 return true
249255 } else {
250- return false
256+ if UserDefaults . appGroup? . allowSimulators ?? false {
257+ return true
258+ } else {
259+ return false
260+ }
251261 }
262+ #else
263+ return false
252264 #endif
253265 }
254266}
You can’t perform that action at this time.
0 commit comments