Commit Graph

891 Commits

Author SHA1 Message Date
Iulian Moraru
4f07ff3911 Backed out 2 changesets (bug 1906365, bug 1893181) for causing mass android-all build bustages. CLOSED TREE
Backed out changeset 71eaffe86901 (bug 1893181)
Backed out changeset 0ecbe936878e (bug 1906365)
2024-08-15 19:58:27 +03:00
Nicolas Guichard
8aa18297f1 Bug 1906365 - Configure the Glean Gradle Plugin to use our vendored glean_parser. r=nalexander,geckoview-reviewers,android-reviewers,owlish
The Glean Gradle plugin now exposes ext.gleanPythonEnvDir for users to
point to an existing Python virtualenv where glean_parser is available.

As documented in https://mozilla.github.io/glean/book/language-bindings/android/android-build-configuration-options.html,
the Glean Gradle plugin options such as ext.gleanPythonEnvDir must be
set before applying the plugin.

This enables us to use gradle offline for Android builds (except the
android-gradle-dependencies task of course).

Differential Revision: https://phabricator.services.mozilla.com/D215795
2024-08-15 12:31:39 +00:00
Ryan VanderMeulen
4516cd3f91 Bug 1910893 - Migrate AndroidX Activity to the AC dependencies plugin. r=android-reviewers,jonalmeida
Also add Activity to the relevant Gradle files to avoid transitive usage.

Differential Revision: https://phabricator.services.mozilla.com/D218197
2024-07-31 20:20:19 +00:00
Travis Long
7c3aee0480 Bug 1887023 - Remove service-glean API wrappers from android-components. r=janerik,android-reviewers,gl
Differential Revision: https://phabricator.services.mozilla.com/D217479
2024-07-31 17:53:42 +00:00
Norisz Fay
7e881c0619 Backed out changeset 8d6ab5db22f3 (bug 1887023) for causing toolchain bustage on CrashApplication.kt and python failure CLOSED TREE 2024-07-30 22:04:45 +03:00
Travis Long
589d6c95f9 Bug 1887023 - Remove service-glean API wrappers from android-components. r=janerik,android-reviewers,gl
Differential Revision: https://phabricator.services.mozilla.com/D217479
2024-07-30 15:18:51 +00:00
Charlie
39dca6d18b Bug 1909323: Update service-nimbus to pass RecordedContext object into the ApplicationServicesNimbus constructor r=beth,android-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D217325
2024-07-26 17:52:27 +00:00
Ryan VanderMeulen
f3725d2335 Bug 1905498 - Add a dependency constraint on AndroidX Tracing to avoid being force-downgraded. r=android-reviewers,mcarare
See https://github.com/android/android-test/issues/1755

Differential Revision: https://phabricator.services.mozilla.com/D215286
2024-07-01 13:09:53 +00:00
Geoff Brown
f3622debc5 Bug 1881094 - 9. remove most remaining firefox-android eslint exclusions r=android-reviewers,frontend-codestyle-reviewers,webcompat-reviewers,gl,Gijs,Standard8,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D214041
2024-06-19 16:19:14 +00:00
William Durand
d00383a7ed Bug 1893387 - Refactor how required permissions/origins are passed from Gecko to the embedder in exportExtension(). r=amejiamarmol,android-reviewers,robwu,geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D208503
2024-05-15 20:35:39 +00:00
sarah541
cdf6a7eaa8 Bug 1896464 - Remove old unused strings from AC r=android-reviewers,tchoh
Differential Revision: https://phabricator.services.mozilla.com/D210210
2024-05-14 20:55:03 +00:00
Geoff Brown
a7e1483b01 Bug 1881094 - 4. remove and revise prettier exclusions for firefox-android r=android-reviewers,frontend-codestyle-reviewers,gl,webcompat-reviewers,twisniewski
- remove the firefox-android exclusions from .prettierignore
 - add a few specific exclusions to .prettierignore for files with existing errors
 - add a few specific entries to Generated.txt and ThirdPartyPaths.txt
 - add `initial_experiments.json` to the list of generated files: these are updated from Nimbus
 - run `mach lint --fix --linter=eslint -- mobile/android` to generate all the formatting changes

Differential Revision: https://phabricator.services.mozilla.com/D206915
2024-05-07 20:24:38 +00:00
jackyzy823
11e9eae213 Bug 1884484 - Implement mouse forward button navigation. r=geckoview-reviewers,android-reviewers,owlish,tthibaud
Differential Revision: https://phabricator.services.mozilla.com/D207873
2024-05-06 13:27:45 +00:00
Lina Butler
9fc26ee91c Bug 1891157 - Add a feature and a use case for closing synced tabs. r=jonalmeida,android-reviewers,007
This commit introduces plumbing for sending "close tab" commands to
other devices that are signed in to the same Mozilla account, and for
receiving "close tab" commands from other devices.

Differential Revision: https://phabricator.services.mozilla.com/D208051
2024-05-05 22:07:11 +00:00
Ryan VanderMeulen
64a83627d2 Bug 1892162 - Explicitly declare AndroidX Core as a dependency in projects that use it. r=android-reviewers,amejiamarmol
This is effectively a no-op because we're already picking it up implicitly
from other AC modules, but it's better to be explicit to avoid unexpected
problems down the road if that situation happens to change.

Differential Revision: https://phabricator.services.mozilla.com/D208009
2024-04-24 12:47:09 +00:00
Geoff Brown
4939eda588 Bug 1881094 - 2. remove whitespace exclusions for firefox-android r=android-reviewers,gl
Whitespace changes made with `mach lint --fix`.

Differential Revision: https://phabricator.services.mozilla.com/D206702
2024-04-04 22:19:32 +00:00
Gabriel Luong
ffcbe5214b Bug 1885561 - [Menu Redesign] Rename “Add-ons” to “Extensions” in menus and Add-ons Manager r=android-reviewers,Roger
Differential Revision: https://phabricator.services.mozilla.com/D206094
2024-04-01 21:47:30 +00:00
Perry McManis
0c8dd62ebe Bug 1884527 - remove lingering geckoadapter bits r=chutten,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D205336
2024-03-22 19:36:01 +00:00
Gabriel Luong
6853195d49 Bug 1876335 - use GRADLE_MAVEN_REPOSITORIES in more places. r=owlish,geckoview-reviewers,nalexander,tthibaud,android-reviewers
To ensure that we can build offline, we need to prevent gradle from
going through remote maven repos directly.

That means also overriding the default plugin repository
(plugins.gradle.org) in the `pluginManagement` section.

Differential Revision: https://phabricator.services.mozilla.com/D201497
2024-01-18 15:38:47 +01:00
Gabriel Luong
09687df494 Bug 1822393 - Support Android Components consuming GeckoView directly. r=nalexander,geckoview-reviewers,tthibaud,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201483
2023-12-07 16:19:43 -05:00
William Durand
75cc14f496 Bug 1881676 - Unconditionally set the "Enabled" label on the toggle switch 2024-03-14 13:20:58 -04:00
Ryan VanderMeulen
70e8249b42 Bug 1883763 - Add suppressions to firefox-android code still using the now-deprecated APIs 2024-03-09 17:03:55 +00:00
mcarare
7562dc8765 Bug 1880077 - Switch to using Compose BOM instead of individual versioning 2024-02-22 08:51:53 +00:00
Roger Yang
d0effd8c00 Bug 1832357 - Fallback to loading new window requests in custom tab 2024-02-07 21:56:27 +00:00
mcarare
379ab9b02c Bug 1870050 - Add RECEIVER_NOT_EXPORTED flag to receiver. 2024-02-05 09:19:07 +00:00
mcarare
8a49fa4e12 Bug 1874124 - Add foregroundServiceType for sample app CrashService and FOREGROUND_SERVICE_SPECIAL_USE permission 2024-01-25 15:32:25 +00:00
Arturo Mejia
7f72c0bece Bug 1860472 - Clean temporary file Uploads. 2024-01-24 22:40:21 +00:00
mcarare
b911da9c2d Bug 1874124 - Add foregroundServiceType for DownloadService and FOREGROUND_SERVICE_DATA_SYNC permission. 2024-01-11 17:47:22 +00:00
William Durand
5e99127764 Bug 1870668 - Remove the mozac_feature_addons_authors string 2023-12-19 20:15:58 +00:00
Titouan Thibaud
92cf915d70 Bug 1869534: Use VerticalSwipeRefreshLayout from AndroidComponents
instead of AndroidX SwipeRefreshLayout to represent better Fenix behavior

Co-authored-by: Jonathan Almeida <jalmeida@mozilla.com>
2023-12-12 16:10:24 +00:00
mcarare
3920370326 Bug 1865357 - Add Global Privacy Control settings in sample browser. 2023-12-07 21:58:51 +00:00
mcarare
60d3978145 Bug 1821005 - Restore reverted Gradle 8 upgrade due to startup crashes"
This reverts commit 592e88b3547d2e96ae04d8b5bd69cbab2ac3e97e.
2023-12-05 03:44:20 +00:00
William Durand
40c8b21971 Bug 1867295 - Introduce a new installBuiltInWebExtension method 2023-11-30 20:41:42 +00:00
William Durand
708e552a7d Bug 1867297 - Remove the use of BLOCKED_PERMISSIONS 2023-11-30 15:10:35 +00:00
Olivia Hall
42b3883a45 Bug 1860844 - Add GeckoTranslateSessionDelegate to Android Components
This bug adds a translation session delegate for receiving information
from GeckoView on the state of the toolkit translation engine and also
when to expect and offer translations on a given page.

It also updates reference browser to use auto-detected defaults for
translating.
2023-11-21 22:24:04 +00:00
Ryan VanderMeulen
c65ab071b9 Bug 1821005 - Revert Gradle 8 upgrade due to startup crashes
Revert "Bug 1863744 - Update Gradle to version 8.4"

This reverts commit 829795632954148709fbe945c78d55cc62053ac8.

Revert "Bug 1821005 - Apply additional keep rules for missing classes detected while running R8."

This reverts commit 8f3f246cc5ff571323f56d46963d8d176bec91e3.

Revert "Bug 1821005 - Set UI_INJECTION_HOST mode for lint in test."

This reverts commit 6962bf0b5df57781045f68417f76527bcdf521ab.

Revert "Bug 1821005 -  Include sourcesJar as an input of publishing."

This reverts commit 41b2a48da577787c3189eec8c8af71c35cfecbfb.

Revert "Bug 1821005 - Set compileOptions for android subprojects."

This reverts commit fb21df9d0a9cd585e216733dc1bf929636df20f1.

Revert "Bug 1821005 - Replace deprecated project.buildDir"

This reverts commit 6f880de46ec73f7e5240a0279108bbb6aeb0f63b.

Revert "Bug 1821005 - Exclude generated metrics docs from detekt."

This reverts commit f17d2430bf1daabeed2724312354018050f3f52a.

Revert "Bug 1821005 - Exclude build in extensions versioning from detekt."

This reverts commit 34144c5ad1d62e2d85492f8d32341bbcd032690b.

Revert "Bug 1821005 - Add uses-feature tag for camera permission."

This reverts commit 13c80944bd1756cdcaa98eef783b6a23ad12cabd.

Revert "Bug 1821005 - Set nonTransitiveRClass and nonFinalResIds build flags to false."

This reverts commit 219fbc19c54134ad264edc79642fa1799c6f54d6.

Revert "Bug 1821005 - Apply plugin: 'kotlin-android' for UI modules."

This reverts commit ddbd5e18eb9d2b33b4de4a6df48d97ec4ab42963.

Revert "Bug 1821005 - Enable generation of the BuildConfig class"

This reverts commit 65c2b8c63790fbd2352f3f94b99c80d81d18dae1.

Revert "Bug 1821005 - Add namespace to samples-glean-library module"

This reverts commit 0239233efb1cc4e896e4aa0337e3da911eeb2f1c.

Revert "Bug 1821005 - Replace deprecated toLowerCase with lowercase."

This reverts commit 69f2c66aad3aa638a1bab31b2a1e6c597d1f3992.

Revert "Bug 1821005 - Replace deprecated 'toInt' method with 'code' property."

This reverts commit 7adb38a6fbe20de3fdb6723a10e574d183e7fcff.

Revert "Bug 1821005 - Replace deprecated execResult."

This reverts commit bfd02dd16d7e5c9dbcf34858fbbe4176d698f8cd.

Revert "Bug 1849833 - Replace deprecated extractNativeLibs manifest attribute."

This reverts commit a05bc9618457ab2d71a5d3d88d8d3b0318497a54.

Revert "Bug 1821005 - Upgrade AGP to 8.0.2"

This reverts commit fc0fadd63553e2144ce074454d502ecf307eb988.

Revert "Bug 1821005 - Upgrade kotlin-dsl to 4.1.0."

This reverts commit 14e8903e922fa22e28450520be3b6152be6a3a8f.

Revert "Bug 1821005 - Upgrade Gradle to 8.3 version."

This reverts commit f14f447a4d43588d24e4ca3efde0668ddcf7cf08.
2023-11-08 13:35:38 -05:00
mcarare
0d8b201396 Bug 1821005 - Add uses-feature tag for camera permission.
Having the camera permission automatically adds a camera hardware requirement. This removes that requirement for devices to have a camera.
2023-11-08 09:10:09 +00:00
mcarare
04345cb27b Bug 1821005 - Enable generation of the BuildConfig class
For modules that use buildConfigField and generate metrics, because BuildConfig is not generated by default after Gradle 8.
2023-11-08 09:10:09 +00:00
mcarare
56b323b581 Bug 1821005 - Add namespace to samples-glean-library module 2023-11-08 09:10:09 +00:00
Olivia Hall
e842bb5c42 Bug 1844523 - Translate and Restore to Original Engine Support
This patch adds engine support for translate and restoring the page after
a translation. `requestTranslate` and `requestTranslationRestore` are
the Gecko engine session functions.

This corresponding actions for these functions are `TranslateAction`,
and `TranslateRestoreAction`. The success and failure correspond to the
actions `TranslateSuccessAction` and `TranslateExceptionAction`.

Sample usage is provided on reference browser. The sample is currently
hardcoded to support Spanish to English page translations until the next
API is introduced.
2023-11-03 21:10:32 +00:00
Ben Dean-Kawamura
1d1b1051f9 Bug 1861219 - Resolve breaking changes to the Rust fxa-client
This is mostly just renames.
2023-11-03 18:38:11 +00:00
Arturo Mejia
5c80d72706 Bug 1858439 - Refactor how addons icons are loaded https://github.com/mozilla-mobile/firefox-android/pull/4065 2023-10-30 16:10:54 +00:00
William Durand
f17b2e2769 Bug 1858925 - Fix homepageUrl field on the Addon class 2023-10-16 16:42:00 +00:00
mcarare
7e47586e45 Bug 1859017 - Handle nullability changes. 2023-10-16 13:39:23 +00:00
mcarare
fbfcc83411 Bug 1859017 - Replace setDispatcher method with var assignment.
setDispatcher method no longer exists.
2023-10-16 13:39:23 +00:00
William Durand
4d4202701b Bug 1858199 - Add link to review pages in add-ons details view 2023-10-11 14:06:28 +00:00
William Durand
1883946a8b Bug 1847088 - Show a notification in the Fenix add-on manager when the extensions process spawning is disabled 2023-10-09 22:02:14 +00:00
William Durand
44536c681d Bug 1857232 - Linkify author of an add-on in the details view
The biggest change here is that we no longer have a list of authors for
an add-on, we only have one author (optional). This is because Gecko
only considers a single author.
2023-10-05 21:42:00 +00:00
mike a
1563919318 Bug 1851079 – refactored Activity enterImmersiveMode to enable proper unit testing 2023-10-04 16:21:08 +00:00
mcarare
06ab2382da Bug 1849833 - Replace deprecated compileSdkVersion.
This is replaced by defaultConfig compileSdk.
2023-09-21 13:28:28 +00:00