Add settings bundle

This commit is contained in:
Jackson Coxson
2022-11-15 22:59:39 -07:00
committed by Joseph Mattello
parent 9b671cb1a9
commit 161d3a795d
5 changed files with 26 additions and 3 deletions

View File

@@ -87,8 +87,6 @@ class LaunchViewController: RSTLaunchViewController
func setAnisetteServer() {
if let anisetteUrl = Bundle.main.object(forInfoDictionaryKey: "customAnisetteURL") as? String {
UserDefaults.standard.set(anisetteUrl, forKey: "customAnisetteURL")
} else {
UserDefaults.standard.set("https://sideloadly.io/anisette/irGb3Quww8zrhgqnzmrx", forKey: "customAnisetteURL")
}
}

View File

@@ -32,7 +32,7 @@ class FetchAnisetteDataOperation: ResultOperation<ALTAnisetteData>
return
}
let urlString = UserDefaults.standard.string(forKey: "customAnisetteURL") ?? "https://sideloadly.io/anisette/irGb3Quww8zrhgqnzmrx"
let urlString = UserDefaults.standard.string(forKey: "customAnisetteURL")!
print("Anisette URL: " + urlString)
guard let url = URL(string: urlString) else { return }

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>StringsTable</key>
<string>Root</string>
<key>PreferenceSpecifiers</key>
<array>
<dict>
<key>Type</key>
<string>PSTextFieldSpecifier</string>
<key>Title</key>
<string>Anisette URL</string>
<key>Key</key>
<string>customAnisetteURL</string>
<key>DefaultValue</key>
<string>https://sideloadly.io/anisette/irGb3Quww8zrhgqnzmrx</string>
</dict>
</array>
</dict>
</plist>

Binary file not shown.