Skip to content

Commit 300f1c0

Browse files
committed
Add toggle to use Cloudflare domain name for license check
1 parent 4da5f93 commit 300f1c0

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

Core/Sources/HostApp/DebugView.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ final class DebugSettings: ObservableObject {
2727
var toastForTheReasonWhyXcodeInspectorNeedsToBeRestarted
2828
@AppStorage(\.observeToAXNotificationWithDefaultMode)
2929
var observeToAXNotificationWithDefaultMode
30+
@AppStorage(\.useCloudflareDomainNameForLicenseCheck)
31+
var useCloudflareDomainNameForLicenseCheck
3032
init() {}
3133
}
3234

@@ -126,6 +128,12 @@ struct DebugSettingsView: View {
126128
Text("Observe to AXNotification with default mode")
127129
}
128130
}
131+
132+
Toggle(
133+
isOn: $settings.useCloudflareDomainNameForLicenseCheck
134+
) {
135+
Text("Use Cloudflare domain name for license check")
136+
}
129137
}
130138
}
131139
.frame(maxWidth: .infinity)

Pro

Submodule Pro updated from a26917f to 43e5416

Tool/Sources/Preferences/Keys.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,5 +616,9 @@ public extension UserDefaultPreferenceKeys {
616616
var observeToAXNotificationWithDefaultMode: FeatureFlag {
617617
.init(defaultValue: false, key: "FeatureFlag-observeToAXNotificationWithDefaultMode")
618618
}
619+
620+
var useCloudflareDomainNameForLicenseCheck: FeatureFlag {
621+
.init(defaultValue: false, key: "FeatureFlag-UseCloudflareDomainNameForLicenseCheck")
622+
}
619623
}
620624

0 commit comments

Comments
 (0)