Skip to content

Commit

Permalink
Revert "FXIOS-708 ⁃ [iOS14 Widgets] : iOS14 Quick Action Widgets (Med…
Browse files Browse the repository at this point in the history
…ium/Small) Versions (#7051)"

This reverts commit 1d6ca56.
  • Loading branch information
garvankeeley committed Aug 26, 2020
1 parent 1d6ca56 commit c91e958
Show file tree
Hide file tree
Showing 41 changed files with 11 additions and 1,908 deletions.
425 changes: 1 addition & 424 deletions Client.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

29 changes: 8 additions & 21 deletions Client/Application/NavigationRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,19 +100,6 @@ enum NavigationPath {
self = .text(text ?? "")
} else if urlString.starts(with: "\(scheme)://glean") {
self = .glean(url: url)
} else if urlString.starts(with: "\(scheme)://open-copied") {
if !UIPasteboard.general.hasURLs {
guard let searchText = UIPasteboard.general.string else {
return nil
}
self = .text(searchText)
} else {
guard let url = UIPasteboard.general.url else {
return nil
}
let isPrivate = UserDefaults.standard.bool(forKey: "wasLastSessionPrivate")
self = .url(webURL: url, isPrivate: isPrivate)
}
} else if urlString.starts(with: "\(scheme)://close-private-tabs") {
self = .closePrivateTabs
} else {
Expand All @@ -127,7 +114,7 @@ enum NavigationPath {
case .url(let url, let isPrivate): NavigationPath.handleURL(url: url, isPrivate: isPrivate, with: bvc)
case .text(let text): NavigationPath.handleText(text: text, with: bvc)
case .glean(let url): NavigationPath.handleGlean(url: url)
case .closePrivateTabs: NavigationPath.handleClosePrivateTabs(with: bvc, tray: tray)
case .closePrivateTabs : NavigationPath.handleClosePrivateTabs(with: bvc, tray: tray)
}
}

Expand All @@ -150,16 +137,16 @@ enum NavigationPath {
private static func handleFxA(params: FxALaunchParams, with bvc: BrowserViewController) {
bvc.presentSignInViewController(params)
}

private static func handleClosePrivateTabs(with bvc: BrowserViewController, tray: TabTrayControllerV1) {
bvc.tabManager.removeTabs(bvc.tabManager.privateTabs)
guard let tab = mostRecentTab(inTabs: bvc.tabManager.normalTabs) else {
bvc.tabManager.selectTab(bvc.tabManager.addTab())
return
}
bvc.tabManager.selectTab(tab)
guard let tab = mostRecentTab(inTabs: bvc.tabManager.normalTabs) else {
bvc.tabManager.selectTab(bvc.tabManager.addTab())
return
}
bvc.tabManager.selectTab(tab)
}

private static func handleGlean(url: URL) {
Glean.shared.handleCustomUrl(url: url)
}
Expand Down
1 change: 1 addition & 0 deletions Client/Frontend/Browser/TabManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class TabManager: NSObject {
} else {
_selectedIndex = -1
}
assert(_selectedIndex > -1, "Tab expected to be in `tabs`")

store.preserveTabs(tabs, selectedTab: selectedTab)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
"preserves-vector-representation" : true
}
}
11 changes: 0 additions & 11 deletions WidgetKit/Assets.xcassets/AccentColor.colorset/Contents.json

This file was deleted.

98 changes: 0 additions & 98 deletions WidgetKit/Assets.xcassets/AppIcon.appiconset/Contents.json

This file was deleted.

6 changes: 0 additions & 6 deletions WidgetKit/Assets.xcassets/Background Gradients/Contents.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit c91e958

Please sign in to comment.