fune/mobile/android/android-components/components/browser/engine-gecko
ohall-m 73949b0565 Bug 1881810 - Download and Delete Translation Models from AC r=android-reviewers,calu,giorga
This patch adds AC changes to allow translation language models to be downloaded
and deleted. Including:
* Adds `ManageLanguageModelsAction` to request changes to language models.
* Adds to the translations state reducer to accommodate state changes when updating.
* Adds `ModelState` to `LanguageModel` in order to capture processing states.
* Adds `ModelUpdateError` as a general area for when the action fails on the engine.

Differential Revision: https://phabricator.services.mozilla.com/D210562
2024-05-23 13:22:46 +00:00
..
docs Bug 1825116 - Resolve many black, isort, and file-whitespace lint issues 2023-04-12 14:04:29 +00:00
src Bug 1881810 - Download and Delete Translation Models from AC r=android-reviewers,calu,giorga 2024-05-23 13:22:46 +00:00
build.gradle Bug 1892162 - Explicitly declare AndroidX Core as a dependency in projects that use it. r=android-reviewers,amejiamarmol 2024-04-24 12:47:09 +00:00
geckoview.fml.yaml Bug 1881094 - 2. remove whitespace exclusions for firefox-android r=android-reviewers,gl 2024-04-04 22:19:32 +00:00
metrics.yaml [components] Bug 1689162: Upgrade to new version of Glean metrics.yaml schema (https://github.com/mozilla-mobile/android-components/pull/9990) 2021-03-29 14:27:14 +00:00
proguard-rules.pro
README.md [components] Issue https://github.com/mozilla-mobile/android-components/issues/10070: Only keep one GeckoView component (tracking Nightly) 2021-04-20 18:51:39 +00:00

Android Components > Browser > Engine-Gecko

Engine implementation based on GeckoView.

Usage

Setting up the dependency

Use Gradle to download the library from maven.mozilla.org (Setup repository):

implementation "org.mozilla.components:browser-engine-gecko:{latest-version}"

Integration with the Glean SDK

Before using this component

Products sending telemetry and using this component must request a data-review following this process.

The Glean SDK can be used to collect Gecko Telemetry. Applications using both this component and the Glean SDK should setup the Gecko Telemetry delegate as shown below:

    val builder = GeckoRuntimeSettings.Builder()
    val runtimeSettings = builder
        .telemetryDelegate(GeckoGleanAdapter()) // Sets up the delegate!
        .build()
    // Create the Gecko runtime.
    GeckoRuntime.create(context, runtimeSettings)

Adding new metrics

New Gecko metrics can be added as described in the Firefox Telemetry docs.

License

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/