mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
Dactyloidae iOS initial commit
This commit is contained in:
parent
daa6179d22
commit
7154a0497e
2123 changed files with 197052 additions and 0 deletions
|
|
@ -0,0 +1,35 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
import Foundation
|
||||
import MessageUI
|
||||
|
||||
struct DebugSettingsBundleOptions {
|
||||
|
||||
/// Don't restore tabs on app launch
|
||||
static var skipSessionRestore: Bool {
|
||||
return UserDefaults.standard.bool(forKey: "SettingsBundleSkipSessionRestore")
|
||||
}
|
||||
|
||||
/// Disable the local web server we use for restoration, error pages, etc
|
||||
static var disableLocalWebServer: Bool {
|
||||
return UserDefaults.standard.bool(forKey: "SettingsBundleDisableLocalWebServer")
|
||||
}
|
||||
|
||||
/// When enabled, the app launch will be replaced with the mail compose view appearing with the device
|
||||
/// logs pre-attached. When the mail is sent, the app continues launching normally.
|
||||
static var launchIntoEmailComposer: Bool {
|
||||
return ((attachTabStateToDebugEmail || attachLogsToDebugEmail) && MFMailComposeViewController.canSendMail())
|
||||
}
|
||||
|
||||
/// When enabled, the email composer will have the tab state attached.
|
||||
static var attachTabStateToDebugEmail: Bool {
|
||||
return UserDefaults.standard.bool(forKey: "SettingsBundleEmailTabState")
|
||||
}
|
||||
|
||||
/// When enabled, the email composer will have the application logs attached.
|
||||
static var attachLogsToDebugEmail: Bool {
|
||||
return UserDefaults.standard.bool(forKey: "SettingsBundleEmailLogsOnLaunch")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue