diff --git a/AltStore/Operations/FetchSourceOperation.swift b/AltStore/Operations/FetchSourceOperation.swift index 1571fbe8..aa663562 100644 --- a/AltStore/Operations/FetchSourceOperation.swift +++ b/AltStore/Operations/FetchSourceOperation.swift @@ -159,6 +159,8 @@ final class FetchSourceOperation: ResultOperation userInfo[NSDebugDescriptionErrorKey] = pathDescription } + // @mahee96: Need to account for invalid/missing json fields error + // and show meaningful message to user instead of just showing decoder error throw NSError(domain: nsError.domain, code: nsError.code, userInfo: userInfo) } diff --git a/AltStore/Sources/SourcesViewController.swift b/AltStore/Sources/SourcesViewController.swift index f26a7379..c621062a 100644 --- a/AltStore/Sources/SourcesViewController.swift +++ b/AltStore/Sources/SourcesViewController.swift @@ -348,26 +348,6 @@ private extension SourcesViewController { func handleAddSourceDeepLink() { -// let alertController = UIAlertController(title: NSLocalizedString("Add Source", comment: ""), message: nil, preferredStyle: .alert) -// alertController.addTextField { (textField) in -// textField.placeholder = "https://apps.sidestore.io" -// textField.textContentType = .URL -// } -// alertController.addAction(.cancel) -// alertController.addAction(UIAlertAction(title: NSLocalizedString("Add", comment: ""), style: .default) { (action) in -// guard let text = alertController.textFields![0].text else { return } -// guard var sourceURL = URL(string: text) else { return } -// if sourceURL.scheme == nil { -// guard let httpsSourceURL = URL(string: "https://" + text) else { return } -// sourceURL = httpsSourceURL -// } -// -// self.navigationItem.leftBarButtonItem?.isIndicatingActivity = true -// -// self.addSource(url: sourceURL) { _ in -// self.navigationItem.leftBarButtonItem?.isIndicatingActivity = false -// } -// }) guard let url = self.deepLinkSourceURL, self.view.window != nil else { return } // Only handle deep link once.