mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-18 03:03:31 +01:00
Add settings bundle
This commit is contained in:
committed by
Joseph Mattello
parent
9b671cb1a9
commit
161d3a795d
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 }
|
||||
|
||||
|
||||
21
AltStore/Settings.bundle/Root.plist
Normal file
21
AltStore/Settings.bundle/Root.plist
Normal 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>
|
||||
BIN
AltStore/Settings.bundle/en.lproj/Root.strings
Normal file
BIN
AltStore/Settings.bundle/en.lproj/Root.strings
Normal file
Binary file not shown.
Reference in New Issue
Block a user