Skip to content

Commit

Permalink
Merge branch 'main' into sam/mac-deprecated-remote-messaging-attribute
Browse files Browse the repository at this point in the history
# By Christopher Brind (1) and others
# Via GitHub
* main:
  [DuckPlayer] 6 - Init updates and Watch on YouTube (#3066)
  New Tab Page Shortcuts section (#3104)
  Fix VPN configuration removal to stop the tunnel (#3099)
  avoid resizing webview when keyboard shows/hides (#3094)
  Add support for skipping sending usage pixels for remote messages (#3106)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
  • Loading branch information
samsymons committed Jul 19, 2024
2 parents aff341c + 01a1c38 commit ad03b7f
Show file tree
Hide file tree
Showing 55 changed files with 1,159 additions and 489 deletions.
5 changes: 4 additions & 1 deletion Core/Logging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public extension OSLog {
case autoconsentLog = "DDG Autoconsent"
case configurationLog = "DDG Configuration"
case syncLog = "DDG Sync"
case duckPlayerLog = "Duck Player"
}

@OSLogWrapper(.generalLog) static var generalLog
Expand All @@ -40,6 +41,7 @@ public extension OSLog {
@OSLogWrapper(.autoconsentLog) static var autoconsentLog
@OSLogWrapper(.configurationLog) static var configurationLog
@OSLogWrapper(.syncLog) static var syncLog
@OSLogWrapper(.duckPlayerLog) static var duckPlayerLog

// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// To activate Logging Categories add categories here:
Expand All @@ -50,7 +52,8 @@ public extension OSLog {
.adAttributionLog,
.lifecycleLog,
.configurationLog,
.syncLog
.syncLog,
.duckPlayerLog
]
#endif

Expand Down
3 changes: 2 additions & 1 deletion Core/UserDefaultsPropertyWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ public struct UserDefaultsWrapper<T> {

case duckPlayerMode = "com.duckduckgo.ios.duckPlayerMode"
case duckPlayerAskModeOverlayHidden = "com.duckduckgo.ios.duckPlayerAskModeOverlayHidden"

case vpnRedditWorkaroundInstalled = "com.duckduckgo.ios.vpn.workaroundInstalled"


// Debug keys

case debugNewTabPageSectionsEnabledKey = "com.duckduckgo.ios.debug.newTabPageSectionsEnabled"
Expand Down
32 changes: 24 additions & 8 deletions DuckDuckGo.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser.git",
"location" : "https://github.com/apple/swift-argument-parser",
"state" : {
"revision" : "0fbc8848e389af3bb55c182bc19ca9d5dc2f255b",
"version" : "1.4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
<Test
Identifier = "AutoconsentMessageProtocolTests/testEval()">
</Test>
<Test
Identifier = "SyncSettingsViewControllerErrorTests/test_WhenAccountRemoved_ErrorHandlerSyncDidTurnOffCalled()">
</Test>
</SkippedTests>
</TestableReference>
<TestableReference
Expand Down
129 changes: 0 additions & 129 deletions DuckDuckGo/AutocompleteSuggestionsModel.swift

This file was deleted.

1 change: 1 addition & 0 deletions DuckDuckGo/AutofillLoginSettingsListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ enum AutofillSettingsSource: String {
case appIconShortcut = "app_icon_shortcut"
case homeScreenWidget = "home_screen_widget"
case lockScreenWidget = "lock_screen_widget"
case newTabPageShortcut = "new_tab_page_shortcut"
}

protocol AutofillLoginSettingsListViewControllerDelegate: AnyObject {
Expand Down
3 changes: 2 additions & 1 deletion DuckDuckGo/BrowserChromeManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ class BrowserChromeManager: NSObject, UIScrollViewDelegate {

scrollView.delegate = self

observation = scrollView.observe(\.contentSize, options: .new) { [weak self] scrollView, _ in
observation = scrollView.observe(\.contentSize, options: .new) { [weak self] scrollView, observation in
guard observation.newValue != observation.oldValue else { return }
self?.scrollViewDidResizeContent(scrollView)
}
}
Expand Down
Loading

0 comments on commit ad03b7f

Please sign in to comment.