Skip to content

Commit e4d78ed

Browse files
Merge branch 'release/5.228.0'
2 parents 8168a29 + 1152df7 commit e4d78ed

File tree

362 files changed

+22270
-1571
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

362 files changed

+22270
-1571
lines changed

.github/workflows/build-ad-hoc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
with:
3636
submodules: recursive
3737
token: ${{ secrets.GT_DAXMOBILE }}
38-
ref: ${{ github.event.inputs.app-version }}
38+
ref: ${{ github.event.inputs.ref }}
3939
- name: Set up JDK version
4040
uses: actions/setup-java@v4
4141
with:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ concurrency:
2121
jobs:
2222
code_formatting:
2323
name: Code Formatting
24-
runs-on: ubuntu-20.04
24+
runs-on: ubuntu-24.04
2525

2626
steps:
2727
- name: Checkout repository

.github/workflows/nightly.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
jobs:
1313
code_formatting:
1414
name: Code Formatting
15-
runs-on: ubuntu-20.04 #https://github.com/actions/runner-images/issues/6709
15+
runs-on: ubuntu-24.04 #https://github.com/actions/runner-images/issues/6709
1616

1717
steps:
1818
- name: Checkout repository
@@ -34,7 +34,7 @@ jobs:
3434

3535
unit_tests:
3636
name: Unit tests
37-
runs-on: ubuntu-20.04 #https://github.com/actions/runner-images/issues/6709
37+
runs-on: ubuntu-24.04 #https://github.com/actions/runner-images/issues/6709
3838

3939
steps:
4040
- name: Checkout repository
@@ -67,7 +67,7 @@ jobs:
6767

6868
lint:
6969
name: Lint
70-
runs-on: ubuntu-20.04 #https://github.com/actions/runner-images/issues/6709
70+
runs-on: ubuntu-24.04 #https://github.com/actions/runner-images/issues/6709
7171

7272
steps:
7373
- name: Checkout repository
@@ -104,7 +104,7 @@ jobs:
104104
path: lint-report.zip
105105

106106
android_tests:
107-
runs-on: ubuntu-20.04 #https://github.com/actions/runner-images/issues/6709
107+
runs-on: ubuntu-24.04 #https://github.com/actions/runner-images/issues/6709
108108
name: Android CI checks
109109

110110
steps:
@@ -165,7 +165,7 @@ jobs:
165165

166166
create_task_when_failed:
167167
name: Create Asana task when workflow failed
168-
runs-on: ubuntu-20.04 #https://github.com/actions/runner-images/issues/6709
168+
runs-on: ubuntu-24.04 #https://github.com/actions/runner-images/issues/6709
169169
needs: [code_formatting, unit_tests, lint, android_tests]
170170
if: ${{ failure() }}
171171
steps:

.github/workflows/release_report_error.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
jobs:
1414
report-release-error:
1515
name: Create Asana Task
16-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-24.04
1717

1818
steps:
1919
- name: Create Asana task when workflow failed

.github/workflows/release_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency:
1818
jobs:
1919
run-release-tests:
2020
name: Run Release tests of tag version in Maestro
21-
runs-on: ubuntu-20.04
21+
runs-on: ubuntu-24.04
2222

2323
steps:
2424
- name: Checkout repository

.maestro/security_tests/3_-_AddressBarSpoof,_appschemes.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

app-build-config/app-build-config-api/src/main/java/com/duckduckgo/appbuildconfig/api/AppBuildConfig.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ interface AppBuildConfig {
3333
val deviceLocale: Locale
3434
val isDefaultVariantForced: Boolean
3535
val buildDateTimeMillis: Long
36+
val canSkipOnboarding: Boolean
3637

3738
/**
3839
* You should call [variantName] in a background thread

app-tracking-protection/vpn-impl/src/main/res/layout/include_trackers_toolbar.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
android:id="@+id/trackers_toolbar"
2929
android:layout_width="match_parent"
3030
android:layout_height="?attr/actionBarSize"
31-
android:background="?attr/daxColorSurface"
31+
android:background="?attr/daxColorToolbar"
3232
android:theme="@style/Widget.DuckDuckGo.ToolbarTheme"
3333
app:popupTheme="@style/Widget.DuckDuckGo.PopUpOverflowMenu" />
3434

app/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ android {
5757
} else {
5858
buildConfigField "boolean", "FORCE_DEFAULT_VARIANT", "false"
5959
}
60+
if (project.hasProperty('skip-onboarding')) {
61+
buildConfigField "boolean", "CAN_SKIP_ONBOARDING", "true"
62+
} else {
63+
buildConfigField "boolean", "CAN_SKIP_ONBOARDING", "false"
64+
}
6065
if (project.hasProperty('build-date-time')) {
6166
buildConfigField "long", "BUILD_DATE_MILLIS", "${System.currentTimeMillis()}"
6267
} else {

app/src/androidTest/java/com/duckduckgo/app/browser/BrowserTabViewModelTest.kt

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ import com.duckduckgo.downloads.api.DownloadStateListener
200200
import com.duckduckgo.downloads.api.FileDownloader
201201
import com.duckduckgo.downloads.api.FileDownloader.PendingFileDownload
202202
import com.duckduckgo.duckchat.api.DuckChat
203+
import com.duckduckgo.duckchat.impl.DuckChatPixelName
203204
import com.duckduckgo.duckplayer.api.DuckPlayer
204205
import com.duckduckgo.duckplayer.api.DuckPlayer.DuckPlayerOrigin.AUTO
205206
import com.duckduckgo.duckplayer.api.DuckPlayer.DuckPlayerOrigin.OVERLAY
@@ -2781,6 +2782,20 @@ class BrowserTabViewModelTest {
27812782
assertFalse(browserViewState().canReportSite)
27822783
}
27832784

2785+
@Test
2786+
fun whenUserInDuckPlayerThenCannotReportSite() {
2787+
setupNavigation(skipHome = false, isBrowsing = true)
2788+
whenever(mockDuckPlayer.isDuckPlayerUri(anyString())).thenReturn(true)
2789+
assertFalse(browserViewState().canReportSite)
2790+
}
2791+
2792+
@Test
2793+
fun whenUserInDuckPlayerThenCannotAllowList() {
2794+
setupNavigation(skipHome = false, isBrowsing = true)
2795+
whenever(mockDuckPlayer.isDuckPlayerUri(anyString())).thenReturn(true)
2796+
assertFalse(browserViewState().canChangePrivacyProtection)
2797+
}
2798+
27842799
@Test
27852800
fun whenUserBrowsingPressesBackThenCannotAddToHome() {
27862801
setupNavigation(skipHome = false, isBrowsing = true, canGoBack = false)
@@ -5769,6 +5784,28 @@ class BrowserTabViewModelTest {
57695784
assertCommandNotIssued<Command.SendResponseToJs>()
57705785
}
57715786

5787+
@Test
5788+
fun whenDuckChatMenuItemClickedAndItWasntUsedBeforeThenOpenDuckChatAndSendPixel() = runTest {
5789+
whenever(mockDuckChat.wasOpenedBefore()).thenReturn(false)
5790+
5791+
testee.onDuckChatMenuClicked()
5792+
5793+
verify(mockPixel).fire(DuckChatPixelName.DUCK_CHAT_OPEN)
5794+
verify(mockPixel).fire(DuckChatPixelName.DUCK_CHAT_OPEN_BROWSER_MENU, mapOf("was_used_before" to "0"))
5795+
verify(mockDuckChat).openDuckChat()
5796+
}
5797+
5798+
@Test
5799+
fun whenDuckChatMenuItemClickedAndItWasUsedBeforeThenOpenDuckChatAndSendPixel() = runTest {
5800+
whenever(mockDuckChat.wasOpenedBefore()).thenReturn(true)
5801+
5802+
testee.onDuckChatMenuClicked()
5803+
5804+
verify(mockPixel).fire(DuckChatPixelName.DUCK_CHAT_OPEN)
5805+
verify(mockPixel).fire(DuckChatPixelName.DUCK_CHAT_OPEN_BROWSER_MENU, mapOf("was_used_before" to "1"))
5806+
verify(mockDuckChat).openDuckChat()
5807+
}
5808+
57725809
private fun aCredential(): LoginCredentials {
57735810
return LoginCredentials(domain = null, username = null, password = null)
57745811
}

0 commit comments

Comments
 (0)