Skip to content

Commit

Permalink
Merge branch 'develop' into sam/fix-netp-privacy-policy-string-key
Browse files Browse the repository at this point in the history
* develop:
  Restart agent when app is launched (#1835)
  Update waitlist brokers number from 75+ to 17+ (#1837)
  Sync form factor specific favorites (#1656)
  Skip Make Release Build in PR Checks on Dependabot pull requests (#1831)
  switch to true|false for protectionsState param (#1825)
  Set origin policy for CCF (#1804)
  Add Environment setting to the Debug menu (#1788)
  Bump Submodules/privacy-reference-tests from `0d23f76` to `7519c3d` (#1821)
  Refactor DBP invite code storage to use the keychain (#1818)
  Add test:1 to website breakage tests in case we might fire an actual request (eventually) (#1823)
  Update BSK to 82.2.3 (#1824)
  • Loading branch information
samsymons committed Nov 12, 2023
2 parents b776419 + 3e2fd91 commit 4fa25f8
Show file tree
Hide file tree
Showing 91 changed files with 2,026 additions and 628 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ jobs:

name: Make Release Build

# Dependabot doesn't have access to all secrets, so we skip this job
if: github.actor != 'dependabot[bot]'

strategy:
matrix:
scheme: [ "DuckDuckGo Privacy Browser", "DuckDuckGo Privacy Pro" ]
Expand Down
36 changes: 34 additions & 2 deletions DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1679,6 +1679,10 @@
3776582D27F71652009A6B35 /* WebsiteBreakageReportTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3776582C27F71652009A6B35 /* WebsiteBreakageReportTests.swift */; };
3776582F27F82E62009A6B35 /* AutofillPreferences.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3776582E27F82E62009A6B35 /* AutofillPreferences.swift */; };
3776583127F8325B009A6B35 /* AutofillPreferencesTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3776583027F8325B009A6B35 /* AutofillPreferencesTests.swift */; };
3778183D2AD6F86D00533759 /* FavoritesDisplayModeSyncHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 377D801B2AB47FBB002AF251 /* FavoritesDisplayModeSyncHandler.swift */; };
377D801C2AB47FBB002AF251 /* FavoritesDisplayModeSyncHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 377D801B2AB47FBB002AF251 /* FavoritesDisplayModeSyncHandler.swift */; };
377D801E2AB48189002AF251 /* FavoritesDisplayModeSyncHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 377D801B2AB47FBB002AF251 /* FavoritesDisplayModeSyncHandler.swift */; };
377D801F2AB48191002AF251 /* FavoritesDisplayModeSyncHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 377D801B2AB47FBB002AF251 /* FavoritesDisplayModeSyncHandler.swift */; };
378205F62837CBA800D1D4AA /* SavedStateMock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 378205F52837CBA800D1D4AA /* SavedStateMock.swift */; };
378205F8283BC6A600D1D4AA /* StartupPreferencesTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 378205F7283BC6A600D1D4AA /* StartupPreferencesTests.swift */; };
378205FB283C277800D1D4AA /* MainMenuTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 378205FA283C277800D1D4AA /* MainMenuTests.swift */; };
Expand Down Expand Up @@ -2850,6 +2854,8 @@
5601FECD29B7973D00068905 /* TabBarViewItemTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5601FECC29B7973D00068905 /* TabBarViewItemTests.swift */; };
5603D90629B7B746007F9F01 /* MockTabViewItemDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5603D90529B7B746007F9F01 /* MockTabViewItemDelegate.swift */; };
5603D90729B7B746007F9F01 /* MockTabViewItemDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5603D90529B7B746007F9F01 /* MockTabViewItemDelegate.swift */; };
562984702AC4610100AC20EB /* SyncPreferencesTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5629846E2AC4610100AC20EB /* SyncPreferencesTests.swift */; };
562984712AC469E400AC20EB /* SyncPreferencesTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5629846E2AC4610100AC20EB /* SyncPreferencesTests.swift */; };
56534DED29DF252C00121467 /* CapturingDefaultBrowserProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56534DEC29DF252C00121467 /* CapturingDefaultBrowserProvider.swift */; };
56534DEE29DF252C00121467 /* CapturingDefaultBrowserProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56534DEC29DF252C00121467 /* CapturingDefaultBrowserProvider.swift */; };
566B195D29CDB692007E38F4 /* MoreOptionsMenuTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 566B195C29CDB692007E38F4 /* MoreOptionsMenuTests.swift */; };
Expand Down Expand Up @@ -3963,6 +3969,7 @@
3776582C27F71652009A6B35 /* WebsiteBreakageReportTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebsiteBreakageReportTests.swift; sourceTree = "<group>"; };
3776582E27F82E62009A6B35 /* AutofillPreferences.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AutofillPreferences.swift; sourceTree = "<group>"; };
3776583027F8325B009A6B35 /* AutofillPreferencesTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AutofillPreferencesTests.swift; sourceTree = "<group>"; };
377D801B2AB47FBB002AF251 /* FavoritesDisplayModeSyncHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FavoritesDisplayModeSyncHandler.swift; sourceTree = "<group>"; };
377E54382937B7C400780A0A /* DuckDuckGoAppStoreCI.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DuckDuckGoAppStoreCI.entitlements; sourceTree = "<group>"; };
378205F52837CBA800D1D4AA /* SavedStateMock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SavedStateMock.swift; sourceTree = "<group>"; };
378205F7283BC6A600D1D4AA /* StartupPreferencesTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StartupPreferencesTests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -4303,6 +4310,7 @@
4BF6961F28BEEE8B00D402D4 /* LocalPinningManagerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocalPinningManagerTests.swift; sourceTree = "<group>"; };
5601FECC29B7973D00068905 /* TabBarViewItemTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabBarViewItemTests.swift; sourceTree = "<group>"; };
5603D90529B7B746007F9F01 /* MockTabViewItemDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockTabViewItemDelegate.swift; sourceTree = "<group>"; };
5629846E2AC4610100AC20EB /* SyncPreferencesTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SyncPreferencesTests.swift; sourceTree = "<group>"; };
56534DEC29DF252C00121467 /* CapturingDefaultBrowserProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CapturingDefaultBrowserProvider.swift; sourceTree = "<group>"; };
566B195C29CDB692007E38F4 /* MoreOptionsMenuTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MoreOptionsMenuTests.swift; sourceTree = "<group>"; };
566B196029CDB7C9007E38F4 /* CapturingOptionsButtonMenuDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CapturingOptionsButtonMenuDelegate.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -5471,6 +5479,7 @@
3775913429AB99DA00E26367 /* Sync */ = {
isa = PBXGroup;
children = (
377D801A2AB47FA1002AF251 /* SettingSyncHandlers */,
370A34B02AB24E3700C77F7C /* SyncDebugMenu.swift */,
3775913529AB9A1C00E26367 /* SyncManagementDialogViewController.swift */,
373D9B4729EEAC1B00381FDD /* SyncMetadataDatabase.swift */,
Expand All @@ -5492,6 +5501,14 @@
path = WebsiteBreakageReport;
sourceTree = "<group>";
};
377D801A2AB47FA1002AF251 /* SettingSyncHandlers */ = {
isa = PBXGroup;
children = (
377D801B2AB47FBB002AF251 /* FavoritesDisplayModeSyncHandler.swift */,
);
path = SettingSyncHandlers;
sourceTree = "<group>";
};
378205F9283C275E00D1D4AA /* Menus */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -6498,6 +6515,14 @@
path = View;
sourceTree = "<group>";
};
5629846D2AC460DF00AC20EB /* Sync */ = {
isa = PBXGroup;
children = (
5629846E2AC4610100AC20EB /* SyncPreferencesTests.swift */,
);
path = Sync;
sourceTree = "<group>";
};
56534DEB29DF251C00121467 /* Mocks */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -7179,6 +7204,7 @@
AA585D93248FD31400E9A3E2 /* UnitTests */ = {
isa = PBXGroup;
children = (
5629846D2AC460DF00AC20EB /* Sync */,
B6A5A28C25B962CB00AA7ADA /* App */,
85F1B0C725EF9747004792B6 /* AppDelegate */,
4BF6962128C242E500D402D4 /* Autoconsent */,
Expand Down Expand Up @@ -9910,7 +9936,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# We had issues where the Swift Package resources were not being added to the Agent Apps,\n# so we're manually coping them here.\n# It seems to be a known issue: https://forums.swift.org/t/swift-packages-resource-bundle-not-present-in-xcarchive-when-framework-using-said-package-is-archived/50084/2\ncp -RL \"${BUILT_PRODUCTS_DIR}\"/ContentScopeScripts_ContentScopeScripts.bundle \"${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\n";
shellScript = "# We had issues where the Swift Package resources were not being added to the Agent Apps,\n# so we're manually coping them here.\n# It seems to be a known issue: https://forums.swift.org/t/swift-packages-resource-bundle-not-present-in-xcarchive-when-framework-using-said-package-is-archived/50084/2\ncp -RL \"${BUILT_PRODUCTS_DIR}\"/ContentScopeScripts_ContentScopeScripts.bundle \"${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\ncp -RL \"${BUILT_PRODUCTS_DIR}\"/DataBrokerProtection_DataBrokerProtection.bundle \"${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\n";
};
AA8EDF2824925E940071C2E8 /* Swift Lint */ = {
isa = PBXShellScriptBuildPhase;
Expand Down Expand Up @@ -10669,6 +10695,7 @@
7B3618C42ADE77D2000D6154 /* NetworkProtectionNavBarPopoverManager.swift in Sources */,
3192A1EE2A4C4CFF0084EA89 /* NSStoryboardExtension.swift in Sources */,
3192A1EF2A4C4CFF0084EA89 /* PreferencesViewController.swift in Sources */,
377D801E2AB48189002AF251 /* FavoritesDisplayModeSyncHandler.swift in Sources */,
3192A1F02A4C4CFF0084EA89 /* FireproofDomains.swift in Sources */,
3192A1F12A4C4CFF0084EA89 /* Database.swift in Sources */,
3192A1F22A4C4CFF0084EA89 /* HorizontallyCenteredLayout.swift in Sources */,
Expand Down Expand Up @@ -10971,6 +10998,7 @@
3706FB6B293F65D500E42796 /* HistoryEntry.swift in Sources */,
3706FB6C293F65D500E42796 /* FaviconStore.swift in Sources */,
3706FB6D293F65D500E42796 /* SuggestionListCharacteristics.swift in Sources */,
377D801F2AB48191002AF251 /* FavoritesDisplayModeSyncHandler.swift in Sources */,
4B4D60C62A0C849600BCD287 /* NetworkProtectionInviteCodeViewModel.swift in Sources */,
3706FB6F293F65D500E42796 /* BookmarkListViewController.swift in Sources */,
3706FB70293F65D500E42796 /* SecureVaultLoginImporter.swift in Sources */,
Expand Down Expand Up @@ -11564,6 +11592,7 @@
3706FE79293F661700E42796 /* AppearancePreferencesTests.swift in Sources */,
3706FE7A293F661700E42796 /* FirePopoverViewModelTests.swift in Sources */,
3706FE7B293F661700E42796 /* HistoryStoringMock.swift in Sources */,
562984702AC4610100AC20EB /* SyncPreferencesTests.swift in Sources */,
3706FE7C293F661700E42796 /* LocalBookmarkStoreTests.swift in Sources */,
B6CA4825298CE4B70067ECCE /* AdClickAttributionTabExtensionTests.swift in Sources */,
3707C72D294B5D4100682A9F /* EmptyAttributionRulesProver.swift in Sources */,
Expand Down Expand Up @@ -12040,6 +12069,7 @@
B68D21CA2ACBC971002DA3C2 /* MockPrivacyConfiguration.swift in Sources */,
4B957A462AC7AE700062CA31 /* WebsiteDataStore.swift in Sources */,
4B957A472AC7AE700062CA31 /* NetworkProtectionFeatureVisibility.swift in Sources */,
3778183D2AD6F86D00533759 /* FavoritesDisplayModeSyncHandler.swift in Sources */,
4B957A482AC7AE700062CA31 /* PermissionContextMenu.swift in Sources */,
4B957A492AC7AE700062CA31 /* ContextMenuUserScript.swift in Sources */,
4B957A4A2AC7AE700062CA31 /* NSSavePanelExtension.swift in Sources */,
Expand Down Expand Up @@ -13134,6 +13164,7 @@
7B3618C22ADE75C8000D6154 /* NetworkProtectionNavBarPopoverManager.swift in Sources */,
859E7D6B27453BF3009C2B69 /* BookmarksExporter.swift in Sources */,
7B2DDCF82A93A8BB0039D884 /* NetworkProtectionAppEvents.swift in Sources */,
377D801C2AB47FBB002AF251 /* FavoritesDisplayModeSyncHandler.swift in Sources */,
4B5FF67826B602B100D42879 /* FirefoxDataImporter.swift in Sources */,
37AFCE8B27DB69BC00471A10 /* PreferencesGeneralView.swift in Sources */,
37BF3F22286F0A7A00BD9014 /* PinnedTabsView.swift in Sources */,
Expand Down Expand Up @@ -13385,6 +13416,7 @@
B630794226731F5400DCEE41 /* WKDownloadMock.swift in Sources */,
B6C0B24626E9CB190031CB7F /* RunLoopExtensionTests.swift in Sources */,
56D145F129E6F06D00E3488A /* MockBookmarkManager.swift in Sources */,
562984712AC469E400AC20EB /* SyncPreferencesTests.swift in Sources */,
317295D22AF058D3002C3206 /* MockWaitlistTermsAndConditionsActionHandler.swift in Sources */,
B693956326F1C2A40015B914 /* FileDownloadManagerMock.swift in Sources */,
B6C2C9EF276081AB005B7F0A /* DeallocationTests.swift in Sources */,
Expand Down Expand Up @@ -14399,7 +14431,7 @@
repositoryURL = "https://github.com/duckduckgo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 82.2.2;
version = 83.0.0;
};
};
AA06B6B52672AF8100F541C5 /* XCRemoteSwiftPackageReference "Sparkle" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/BrowserServicesKit",
"state" : {
"revision" : "989e306052bc284a1202fad1087f8b88e515a966",
"version" : "82.2.2"
"revision" : "f7e20cd37bbc0d25ae3c3f25ef52d319366613e7",
"version" : "83.0.0"
}
},
{
Expand Down Expand Up @@ -129,7 +129,7 @@
{
"identity" : "trackerradarkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/TrackerRadarKit",
"location" : "https://github.com/duckduckgo/TrackerRadarKit.git",
"state" : {
"revision" : "4684440d03304e7638a2c8086895367e90987463",
"version" : "1.2.1"
Expand Down
3 changes: 3 additions & 0 deletions DuckDuckGo/Application/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ final class AppDelegate: NSObject, NSApplicationDelegate, FileDownloadManagerDel
let environment = defaultEnvironment
#endif
let syncDataProviders = SyncDataProviders(bookmarksDatabase: BookmarkDatabase.shared.db)
if bookmarksManager.didMigrateToFormFactorSpecificFavorites {
syncDataProviders.bookmarksAdapter.shouldResetBookmarksSyncTimestamp = true
}
let syncService = DDGSync(dataProvidersSource: syncDataProviders, errorEvents: SyncErrorHandler(), log: OSLog.sync, environment: environment)
syncService.initializeIfNeeded()
syncDataProviders.setUpDatabaseCleaners(syncService: syncService)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "Sync-Desktop-New-96x96.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "Sync-Pair-96x96.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading

0 comments on commit 4fa25f8

Please sign in to comment.