Skip to content

Commit

Permalink
Merge branch 'release/5.222.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 12, 2024
2 parents 6551330 + a0c4232 commit 0f7a163
Show file tree
Hide file tree
Showing 274 changed files with 15,279 additions and 6,363 deletions.
118 changes: 118 additions & 0 deletions .github/workflows/end-to-end-robintest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: End-to-End tests (Robin)

on:
schedule:
- cron: '0 3 * * *' # run at 3 AM UTC
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
instrumentation_tests:
runs-on: ubuntu-latest
name: End-to-End tests

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'

- name: Create folder
if: always()
run: mkdir apk

- name: Decode keys
uses: davidSchuppa/base64Secret-toFile-action@v2
with:
secret: ${{ secrets.FAKE_RELEASE_PROPERTIES }}
fileName: ddg_android_build.properties
destination-path: $HOME/jenkins_static/com.duckduckgo.mobile.android/

- name: Decode key file
uses: davidSchuppa/base64Secret-toFile-action@v2
with:
secret: ${{ secrets.FAKE_RELEASE_KEY }}
fileName: android
destination-path: $HOME/jenkins_static/com.duckduckgo.mobile.android/

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Assemble release APK
run: ./gradlew assemblePlayRelease -Pforce-default-variant

- name: Move APK to new folder
if: always()
run: find . -name "*.apk" -exec mv '{}' apk/release.apk \;

- name: Ad click detection flows
uses: mobile-dev-inc/[email protected]
with:
api-key: ${{ secrets.ROBIN_API_KEY }}
project-id: ${{ vars.ROBIN_ANDROID_PROJECT_ID }}
name: adClickTest_${{ github.sha }}
timeout: 120
app-file: apk/release.apk
android-api-level: 30
workspace: .maestro
include-tags: adClickTest

- name: Privacy Tests
if: always()
uses: mobile-dev-inc/[email protected]
with:
api-key: ${{ secrets.ROBIN_API_KEY }}
project-id: ${{ vars.ROBIN_ANDROID_PROJECT_ID }}
name: privacyTest_${{ github.sha }}
timeout: 120
app-file: apk/release.apk
android-api-level: 30
workspace: .maestro
include-tags: privacyTest

- name: Security Tests
if: always()
uses: mobile-dev-inc/[email protected]
with:
api-key: ${{ secrets.ROBIN_API_KEY }}
project-id: ${{ vars.ROBIN_ANDROID_PROJECT_ID }}
name: securityTest_${{ github.sha }}
timeout: 120
app-file: apk/release.apk
android-api-level: 30
workspace: .maestro
include-tags: securityTest

- name: Release Tests
if: always()
uses: mobile-dev-inc/[email protected]
with:
api-key: ${{ secrets.ROBIN_API_KEY }}
project-id: ${{ vars.ROBIN_ANDROID_PROJECT_ID }}
name: releaseTest_${{ github.sha }}
timeout: 120
app-file: apk/release.apk
android-api-level: 30
workspace: .maestro
include-tags: releaseTest

- name: Notifications permissions Android 13+
if: always()
uses: mobile-dev-inc/[email protected]
with:
api-key: ${{ secrets.ROBIN_API_KEY }}
project-id: ${{ vars.ROBIN_ANDROID_PROJECT_ID }}
name: notificationPermissionTest_${{ github.sha }}
timeout: 120
app-file: apk/release.apk
android-api-level: 33
workspace: .maestro/notifications_permissions_android13_plus
4 changes: 3 additions & 1 deletion .maestro/app_tp/app_tp_onboarding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ tags:
text: "Good news! App Tracking Protection is now enabled.*"
- assertVisible: "Got it!"
- tapOn: "Got it!"
- assertVisible: "Protection for some apps is automatically disabled. View apps"
- assertVisible:
text: "Protection for some apps is automatically disabled. View apps"
optional: true
- assertVisible: "Blocked tracking attempts will appear here"
- assertVisible:
id: "com.duckduckgo.mobile.android:id/activity_apps"
Expand Down
7 changes: 7 additions & 0 deletions .maestro/autofill/steps/search_logins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ name: "Autofill: Search credentials"
---
# Pre-requisite: the user is viewing the password manager screen with some saved passwords added by a previous test step, on an autofill-eligible device

- runFlow:
when:
visible: "Help us improve!"
commands:
- tapOn:
id: "com.duckduckgo.mobile.android:id/close"

- runFlow:
when:
visible: "Sync & Back Up Your Passwords"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ tags:
- tapOn:
text: "search or type URL"
- inputText: "https://privacy-test-pages.site"
- tapOn:
id: "com.google.android.inputmethod.latin:id/key_pos_ime_action"
- pressKey: Enter
- assertVisible:
text: ".*keep browsing.*"
- tapOn:
Expand Down
8 changes: 3 additions & 5 deletions .maestro/bookmarks/open_bookmark_and_navigate_back.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ tags:
- tapOn:
text: "search or type URL"
- inputText: "https://www.search-company.site/"
- tapOn:
id: "com.google.android.inputmethod.latin:id/key_pos_ime_action"
- pressKey: Enter
- assertVisible:
text: ".*keep browsing.*"
- tapOn:
Expand All @@ -22,9 +21,8 @@ tags:
text: "Search engine"
- tapOn:
text: "https://www.search-company.site/"
- inputText: "https://privacy-test-pages.glitch.me"
- tapOn:
id: "com.google.android.inputmethod.latin:id/key_pos_ime_action"
- inputText: "https://privacy-test-pages.site"
- pressKey: Enter
- assertVisible:
text: "Privacy Test Pages"
- tapOn:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ tags:

- tapOn:
text: "search or type URL"
- inputText: "https://privacy-test-pages.glitch.me/"
- tapOn:
id: "com.google.android.inputmethod.latin:id/key_pos_ime_action"
- inputText: "https://privacy-test-pages.site/"
- pressKey: Enter
- assertVisible:
text: ".*keep browsing.*"
- tapOn:
Expand All @@ -27,10 +26,9 @@ tags:
- tapOn:
text: "add bookmark"
- tapOn:
text: "https://privacy-test-pages.glitch.me/"
text: "https://privacy-test-pages.site/"
- inputText: "https://www.search-company.site/"
- tapOn:
id: "com.google.android.inputmethod.latin:id/key_pos_ime_action"
- pressKey: Enter
- assertVisible:
text: "Search engine"
- tapOn:
Expand Down
3 changes: 1 addition & 2 deletions .maestro/browsing/visit_site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ tags:
- tapOn:
text: "search or type URL"
- inputText: "https://privacy-test-pages.site"
- tapOn:
id: "com.google.android.inputmethod.latin:id/key_pos_ime_action"
- pressKey: Enter
- assertVisible:
text: ".*keep browsing.*"
- tapOn:
Expand Down
3 changes: 1 addition & 2 deletions .maestro/favorites/favorites_bookmarks_add.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ tags:
- tapOn:
text: "search or type URL"
- inputText: "https://privacy-test-pages.site"
- tapOn:
id: "com.google.android.inputmethod.latin:id/key_pos_ime_action"
- pressKey: Enter
- assertVisible:
text: ".*keep browsing.*"
- tapOn:
Expand Down
3 changes: 1 addition & 2 deletions .maestro/favorites/favorites_bookmarks_delete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ tags:
- tapOn:
text: "search or type URL"
- inputText: "https://privacy-test-pages.site"
- tapOn:
id: "com.google.android.inputmethod.latin:id/key_pos_ime_action"
- pressKey: Enter
- assertVisible:
text: ".*keep browsing.*"
- tapOn:
Expand Down
3 changes: 1 addition & 2 deletions .maestro/fire_button/fire_during_onboarding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ tags:
- tapOn:
text: "search or type URL"
- inputText: "https://privacy-test-pages.site"
- tapOn:
id: "com.google.android.inputmethod.latin:id/key_pos_ime_action"
- pressKey: Enter
- assertVisible:
text: ".*keep browsing.*"
- tapOn:
Expand Down
6 changes: 1 addition & 5 deletions .maestro/privacy_tests/7_-_Browser_restart_mid-session.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,7 @@ tags:
text: "convert.ad-company.site"
- action: back
- action: back
- tapOn:
id: "com.android.systemui:id/recent_apps"
- swipe:
start: 100,500
end: 100,200
- killApp
- launchApp:
clearState: false
- assertVisible:
Expand Down
6 changes: 2 additions & 4 deletions .maestro/tabs/open_multiple_tabs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ tags:
- tapOn:
text: "search or type URL"
- inputText: "https://privacy-test-pages.site"
- tapOn:
id: "com.google.android.inputmethod.latin:id/key_pos_ime_action"
- pressKey: Enter
- assertVisible:
text: ".*keep browsing.*"
- tapOn:
Expand All @@ -26,8 +25,7 @@ tags:
- assertVisible:
text: "Search or type URL"
- inputText: "https://www.search-company.site"
- tapOn:
id: "com.google.android.inputmethod.latin:id/key_pos_ime_action"
- pressKey: Enter
- assertVisible:
text: "Search engine"
- tapOn:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ interface AppBuildConfig {
* You should call [variantName] in a background thread
*/
val variantName: String?

/**
* @return `true` if the user re-installed the app, `false` otherwise
*/
suspend fun isAppReinstall(): Boolean
}

enum class BuildFlavor {
Expand Down

This file was deleted.

Loading

0 comments on commit 0f7a163

Please sign in to comment.