Skip to content

Commit

Permalink
Merge branch 'release/0.31.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
graeme committed Dec 5, 2022
2 parents aa1cff6 + 686dd2f commit 38160cd
Show file tree
Hide file tree
Showing 164 changed files with 6,481 additions and 1,656 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ jobs:
- name: Check out the code
uses: actions/checkout@v3

- name: Fetch PR's target branch
run: git fetch --no-tags --prune --depth=1 origin ${{ github.base_ref }}

- name: Run SwiftLint on files changed in the PR
uses: ayoy/[email protected].2
uses: norio-nomura/[email protected].1
with:
args: --strict --force-exclude
env:
DIFF_BASE: ${{ github.base_ref }}

shellcheck:

Expand Down Expand Up @@ -86,3 +81,21 @@ jobs:
with:
report_paths: unittests.xml

verify-autoconsent-bundle:
name: 'Verify autoconsent bundle'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Build bundle
run: |
npm ci
npm run rebuild-autoconsent
- name: Verify clean tree
run: |
git update-index --refresh
git diff-index --quiet HEAD --
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "Submodules/duckduckgo-find-in-page"]
path = Submodules/duckduckgo-find-in-page
url = [email protected]:more-duckduckgo-org/duckduckgo-find-in-page.git
[submodule "Submodules/duckduckgo-privacy-dashboard"]
path = Submodules/duckduckgo-privacy-dashboard
url = [email protected]:more-duckduckgo-org/duckduckgo-privacy-dashboard.git
7 changes: 1 addition & 6 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

disabled_rules:
- trailing_whitespace
- no_space_in_method_call
Expand All @@ -7,6 +6,7 @@ disabled_rules:
- compiler_protocol_init
- unused_setter_value
- line_length
- type_name

opt_in_rules:
- file_header
Expand All @@ -29,11 +29,6 @@ identifier_name:
max_length:
warning: 40
error: 60
type_name:
min_length: 3
max_length:
warning: 80
error: 100
file_length:
warning: 1200
error: 1200
Expand Down
2 changes: 1 addition & 1 deletion Configuration/Version.xcconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
MARKETING_VERSION = 0.30.8
MARKETING_VERSION = 0.31.0

341 changes: 282 additions & 59 deletions DuckDuckGo.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@
ReferencedContainer = "container:DuckDuckGo.xcodeproj">
</BuildableReference>
<SkippedTests>
<Test
Identifier = "AutoconsentMessageProtocolTests/testInitResponds()">
</Test>
<Test
Identifier = "CBRCompileTimeReporterTests">
</Test>
Expand Down
2 changes: 2 additions & 0 deletions DuckDuckGo/App Delegate/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ final class AppDelegate: NSObject, NSApplicationDelegate {

stateRestorationManager.applicationDidFinishLaunching()

BWManager.shared.initCommunication()

if WindowsManager.windows.isEmpty {
WindowsManager.openNewWindow(lazyLoadTabs: true)
}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "BitwardenIcon.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "BitwardenLogin.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "PasswordManager-lock.pdf",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "BitwardenClock.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "BitwardenLock.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "Bitwarden-Flat-32.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "BitwardenLogoSmall.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,23 @@
{
"images" : [
{
"filename" : "Bitwarden Settings Illustration.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Bitwarden Settings [email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Bitwarden Settings [email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
6 changes: 6 additions & 0 deletions DuckDuckGo/Assets.xcassets/Images/Bitwarden/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "Mac App Store Button.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Mac App Store [email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Mac App Store [email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions DuckDuckGo/Autoconsent/AutoconsentUserScript.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import WebKit
import os
import BrowserServicesKit
import UserScript
import PrivacyDashboard

protocol AutoconsentUserScriptDelegate: AnyObject {
func autoconsentUserScript(consentStatus: CookieConsentInfo)
Expand Down
2 changes: 1 addition & 1 deletion DuckDuckGo/Autoconsent/autoconsent-bundle.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions DuckDuckGo/Autofill/ContentOverlayPopover.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ extension ContentOverlayPopover: ContentOverlayUserScriptDelegate {
}
let rect = NSRect(x: x, y: y, width: rectWidth, height: inputPosition.height)

// On open initialize to default size to reduce flicker
viewController.requestResizeToSize(CGSize(width: 0, height: 0))
viewController.autofillInterfaceToChild = websiteAutofillUserScript
viewController.setType(serializedInputContext: serializedInputContext, zoomFactor: zoomFactor)

Expand Down
7 changes: 5 additions & 2 deletions DuckDuckGo/Autofill/ContentOverlayViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public final class ContentOverlayViewController: NSViewController, EmailManagerR
}()

lazy var vaultManager: SecureVaultManager = {
let manager = SecureVaultManager()
let manager = SecureVaultManager(passwordManager: PasswordManagerCoordinator.shared)
manager.delegate = self
return manager
}()
Expand All @@ -49,6 +49,9 @@ public final class ContentOverlayViewController: NSViewController, EmailManagerR
appearanceCancellable = NSApp.publisher(for: \.effectiveAppearance).map { $0 as NSAppearance? }.sink { [weak self] appearance in
self?.webView.appearance = appearance
}

// Initialize to default size to reduce flicker
requestResizeToSize(CGSize(width: 0, height: 0))
}

public func setType(serializedInputContext: String, zoomFactor: CGFloat?) {
Expand Down Expand Up @@ -232,7 +235,7 @@ extension ContentOverlayViewController: SecureVaultManagerDelegate {
// no-op on macOS
}

public func secureVaultManager(_: SecureVaultManager, didAutofill type: AutofillType, withObjectId objectId: Int64) {
public func secureVaultManager(_: SecureVaultManager, didAutofill type: AutofillType, withObjectId objectId: String) {
Pixel.fire(.formAutofilled(kind: type.formAutofillKind))
}

Expand Down
1 change: 1 addition & 0 deletions DuckDuckGo/Bridging.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
#import "WKNavigationAction+Private.h"

#import "WKGeolocationProvider.h"
#import "BWEncryption.h"
13 changes: 7 additions & 6 deletions DuckDuckGo/Browser Tab/Model/ContentScopeFeatureFlagging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ import BrowserServicesKit
extension ContentScopeFeatureToggles {

static let supportedFeaturesOnMacOS = ContentScopeFeatureToggles(emailProtection: true,
credentialsAutofill: true,
identitiesAutofill: true,
creditCardsAutofill: true,
credentialsSaving: true,
passwordGeneration: true,
inlineIconCredentials: true)
credentialsAutofill: true,
identitiesAutofill: true,
creditCardsAutofill: true,
credentialsSaving: true,
passwordGeneration: true,
inlineIconCredentials: true,
thirdPartyCredentialsProvider: true)
}
Loading

0 comments on commit 38160cd

Please sign in to comment.