Skip to content

Commit

Permalink
Merge branch 'main' into sam/vpn-snooze-initial-support
Browse files Browse the repository at this point in the history
# By Daniel Bernal (3) and others
# Via GitHub
* main:
  [DuckPlayer] 13. Add openInfo message to Overlay (#3151)
  [DuckPlayer] 12. Ensure DuckPlayer does not leak without the proper config (#3147)
  [DuckPlayer] 11. Tab views and Pixel updates (#3145)
  Remove the NETWORK_PROTECTION compilation flag (#3139)
  Add favorites empty state tooltip (#3119)
  Bump submodules/privacy-reference-tests from `a603ff9` to `afb4f61` (#3113)
  iOS 14 deprecation cleanup (#3098)
  Update Xcode version to 15.4 (#3142)
  remove pixels for keyboard toggle (#3135)
  Keep Remote Messages in database if they were shown (#3136)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
  • Loading branch information
samsymons committed Jul 28, 2024
2 parents fa02b92 + a58a943 commit 76f7b6d
Show file tree
Hide file tree
Showing 138 changed files with 551 additions and 1,078 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/adhoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:

jobs:
make-adhoc:
runs-on: macos-13-xlarge
runs-on: macos-14-xlarge
name: Make ad-hoc build

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ on:

jobs:
make-alpha:
runs-on: macos-13-xlarge
runs-on: macos-14-xlarge
name: Make TestFlight Alpha Build
timeout-minutes: 30

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
end-to-end-tests:
name: End to end Tests
runs-on: macos-13-xlarge
runs-on: macos-14-xlarge

steps:
- name: Check out the code
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
atb-ui-tests:
name: ATB UI Tests
runs-on: macos-13-xlarge
runs-on: macos-14-xlarge
timeout-minutes: 30

steps:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:

fingerprinting-ui-tests:
name: Fingerprinting UI Tests
runs-on: macos-13-xlarge
runs-on: macos-14-xlarge
timeout-minutes: 30

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

name: Unit Tests

runs-on: macos-13-xlarge
runs-on: macos-14-xlarge
timeout-minutes: 15

outputs:
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
# Dependabot doesn't have access to all secrets, so we skip this job
if: github.actor != 'dependabot[bot]'

runs-on: macos-13-xlarge
runs-on: macos-14-xlarge
timeout-minutes: 30

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:
jobs:
make-release:
if: github.event.action == 0 || (github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'Merge triggers release')) # empty string returns 0; for case when workflow is triggered manually
runs-on: macos-13-xlarge
runs-on: macos-14-xlarge
name: Make App Store Connect Release

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sync-end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
build-for-sync-end-to-end-tests:
name: Build for Sync End To End Tests
runs-on: macos-13-xlarge
runs-on: macos-14-xlarge
timeout-minutes: 30

steps:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
sync-end-to-end-tests:
name: Sync End To End Tests
needs: build-for-sync-end-to-end-tests
runs-on: macos-13-xlarge
runs-on: macos-14-xlarge
timeout-minutes: 90
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .xcode-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15.2
15.4
7 changes: 0 additions & 7 deletions Core/DefaultVariantManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ public struct VariantIOS: Variant {
.contains(where: { Locale.current.regionCode == $0 }) }

static let inEnglish = { return Locale.current.languageCode == "en" }

static let iOS15 = { () -> Bool in
if #available(iOS 15, *) {
return true
}
return false
}
}

/// This variant is used for returning users to separate them from really new users.
Expand Down
34 changes: 1 addition & 33 deletions Core/PixelEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ extension Pixel {

case downloadsSharingPredownloadedLocalFile

case downloadAttemptToOpenBLOBviaJS

case jsAlertShown

case featureFlaggingInternalUserAuthenticated
Expand Down Expand Up @@ -449,11 +447,8 @@ extension Pixel {
case dbSaveExcludedHTTPSDomainsError
case dbSaveBloomFilterError
case dbRemoteMessagingSaveConfigError
case dbRemoteMessagingInvalidateConfigError
case dbRemoteMessagingSaveMessageError
case dbRemoteMessagingUpdateMessageShownError
case dbRemoteMessagingUpdateMessageStatusError
case dbRemoteMessagingDeleteScheduledMessageError
case dbLocalAuthenticationError

case configurationFetchInfo
Expand Down Expand Up @@ -687,12 +682,6 @@ extension Pixel {
case settingsAccessibilityOpen
case settingsAccessiblityTextSize

// Other settings
case settingsKeyboardOnNewTabOn
case settingsKeyboardOnNewTabOff
case settingsKeyboardOnAppLaunchOn
case settingsKeyboardOnAppLaunchOff

// Web pixels
case privacyProOfferMonthlyPriceClick
case privacyProOfferYearlyPriceClick
Expand Down Expand Up @@ -735,16 +724,10 @@ extension Pixel {
case duckPlayerOverlayYoutubeImpressions
case duckPlayerOverlayYoutubeWatchHere
case duckPlayerSettingAlwaysDuckPlayer
case duckPlayerSettingAlwaysOverlaySERP
case duckPlayerSettingAlwaysOverlayYoutube
case duckPlayerSettingAlwaysSettings
case duckPlayerSettingNeverOverlaySERP
case duckPlayerSettingNeverOverlayYoutube
case duckPlayerSettingNeverSettings
case duckPlayerSettingBackToDefault
case duckPlayerWatchOnYoutube
case watchInDuckPlayerInitial

}

}
Expand Down Expand Up @@ -794,11 +777,6 @@ extension Pixel.Event {
case .settingsAutoconsentOn: return "m_settings_autoconsent_on"
case .settingsAutoconsentOff: return "m_settings_autoconsent_off"

case .settingsKeyboardOnNewTabOn: return "m_settings_keyboard_on-new-tab_on"
case .settingsKeyboardOnNewTabOff: return "m_settings_keyboard_on-new-tab_off"
case .settingsKeyboardOnAppLaunchOn: return "m_settings_keyboard_on-app-launch_on"
case .settingsKeyboardOnAppLaunchOff: return "m_settings_keyboard_on-app-launch_off"

case .browsingMenuOpened: return "mb"
case .browsingMenuNewTab: return "mb_tb"
case .browsingMenuAddToBookmarks: return "mb_abk"
Expand Down Expand Up @@ -934,8 +912,6 @@ extension Pixel.Event {

case .downloadsSharingPredownloadedLocalFile: return "m_downloads_sharing_predownloaded_local_file"

case .downloadAttemptToOpenBLOBviaJS: return "m_download_attempt_to_open_blob_js"

case .jsAlertShown: return "m_js_alert_shown"

case .featureFlaggingInternalUserAuthenticated: return "m_internal-user_authenticated"
Expand Down Expand Up @@ -1169,11 +1145,8 @@ extension Pixel.Event {
case .dbSaveExcludedHTTPSDomainsError: return "m_d_dbsw"
case .dbSaveBloomFilterError: return "m_d_dbsb"
case .dbRemoteMessagingSaveConfigError: return "m_d_db_rm_save_config"
case .dbRemoteMessagingInvalidateConfigError: return "m_d_db_rm_invalidate_config"
case .dbRemoteMessagingSaveMessageError: return "m_d_db_rm_save_message"
case .dbRemoteMessagingUpdateMessageShownError: return "m_d_db_rm_update_message_shown"
case .dbRemoteMessagingUpdateMessageStatusError: return "m_d_db_rm_update_message_status"
case .dbRemoteMessagingDeleteScheduledMessageError: return "m_d_db_rm_delete_scheduled_message"
case .dbLocalAuthenticationError: return "m_d_local_auth_error"

case .debugBookmarksMigratedMoreThanOnce: return "m_debug_bookmarks_migrated-more-than-once"
Expand Down Expand Up @@ -1465,17 +1438,12 @@ extension Pixel.Event {
case .duckPlayerViewFromSERP: return "m_duck-player_view-from_serp"
case .duckPlayerViewFromOther: return "m_duck-player_view-from_other"
case .duckPlayerSettingAlwaysSettings: return "m_duck-player_setting_always_settings"
case .duckPlayerSettingAlwaysDuckPlayer: return "m_duck-player_setting_always_duck-player"
case .duckPlayerOverlayYoutubeImpressions: return "m_duck-player_overlay_youtube_impressions"
case .duckPlayerOverlayYoutubeWatchHere: return "m_duck-player_overlay_youtube_watch_here"
case .duckPlayerSettingAlwaysDuckPlayer: return "m_duck-player_setting_always_duck-player"
case .duckPlayerSettingAlwaysOverlaySERP: return "m_duck-player_setting_always_overlay_serp"
case .duckPlayerSettingAlwaysOverlayYoutube: return "m_duck-player_setting_always_overlay_youtube"
case .duckPlayerSettingNeverOverlaySERP: return "m_duck-player_setting_never_overlay_serp"
case .duckPlayerSettingNeverOverlayYoutube: return "m_duck-player_setting_never_overlay_youtube"
case .duckPlayerSettingNeverSettings: return "m_duck-player_setting_never_settings"
case .duckPlayerSettingBackToDefault: return "m_duck-player_setting_back-to-default"
case .duckPlayerWatchOnYoutube: return "m_duck-player_watch_on_youtube"
case .watchInDuckPlayerInitial: return "m_watch-in-duckplayer_initial_u"
}
}
}
Expand Down
4 changes: 0 additions & 4 deletions Core/UserDefaults+NetworkProtection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
// limitations under the License.
//

#if NETWORK_PROTECTION

import Foundation

public extension UserDefaults {
Expand All @@ -36,5 +34,3 @@ public enum NetworkProtectionUserDefaultKeys {
public static let lastSelectedServerCity = "com.duckduckgo.network-protection.last-selected-server-city"

}

#endif
Loading

0 comments on commit 76f7b6d

Please sign in to comment.