Compare commits

...

2 Commits

Author SHA1 Message Date
ny
fabe093b1d fix: remove pointless error toasts 2026-02-17 12:44:25 -05:00
peroka-net
e1550811eb feat: Add UntitledCharts to Trusted Sources (#1160)
* Add new trusted app 'com.sbuga.retrosekai'
2026-02-04 11:05:06 -05:00
3 changed files with 8 additions and 8 deletions

View File

@@ -140,12 +140,10 @@ final class LaunchViewController: UIViewController, UIDocumentPickerDelegate {
_ = file.startAccessingSecurityScopedResource()
defer { file.stopAccessingSecurityScopedResource() }
guard let accountD = try? Data(contentsOf: file) else {
let toastView = ToastView(text: NSLocalizedString("Could not read data from file!", comment: ""), detailText: "\(file)")
return toastView.show(in: self)
return Logger.main.notice("Could not parse data from file \(file)")
}
guard let account = try? Foundation.JSONDecoder().decode(ImportedAccount.self, from: accountD) else {
let toastView = ToastView(text: NSLocalizedString("Could not parse data from file!", comment: ""), detailText: "\(file)")
return toastView.show(in: self)
return Logger.main.notice("Could not parse data from file \(file)")
}
print("We want to import this account probably: \(account)")
if remove {

View File

@@ -267,12 +267,10 @@ final class SettingsViewController: UITableViewController
_ = file.startAccessingSecurityScopedResource()
defer { file.stopAccessingSecurityScopedResource() }
guard let accountD = try? Data(contentsOf: file) else {
let toastView = ToastView(text: NSLocalizedString("Could not read data from file!", comment: ""), detailText: "\(file)")
return toastView.show(in: self)
return Logger.main.notice("Could not parse data from file \(file)")
}
guard let account = try? Foundation.JSONDecoder().decode(ImportedAccount.self, from: accountD) else {
let toastView = ToastView(text: NSLocalizedString("Could not parse data from file!", comment: ""), detailText: "\(file)")
return toastView.show(in: self)
return Logger.main.notice("Could not parse data from file \(file)")
}
print("We want to import this account probably: \(account)")
if remove {

View File

@@ -32,6 +32,10 @@
"identifier": "org.geode-sdk.altsource",
"sourceURL": "https://ios-repo.geode-sdk.org/altsource/main.json"
},
{
"identifier": "com.sbuga.retrosekai",
"sourceURL": "https://repo.untitledcharts.com"
},
{
"identifier": "org.provenance-emu.provenance",
"sourceURL": "https://provenance-emu.com/apps.json"