Files
tubestation/mobile/android/android-components/samples/browser
Ted Campbell ae94992376 Bug 1951190 - Put gradle 'build' folders in TOPOBJDIR for top-level builds. r=android-reviewers,adhingra
For consistency with the rest of the build system, have gradle build folders be
created in TOPOBJDR. Put the logic in shared-settings.gradle and apply it to all
projects. Existing gradle and taskcluster configuration uses the 'gradle/build'
prefix, so continue using that for now.

Only apply this when building top-level for now since a fair bit of automation
of fenix/focus/a-c projects expects build artifacts in the source directory.

Plugins are compiled as "composite builds" so they somewhat exist in their own
world. For simplicity, just manually specify the `buildDir` for each plugin.

Differential Revision: https://phabricator.services.mozilla.com/D240116
2025-03-15 02:03:53 +00:00
..

Android Components > Samples > Browser

A simple browser app that is composed from the browser components in this repository.

⚠️ Note: This sample application is only a very basic browser. For a full-featured reference browser implementation see the reference-browser repository.

Build variants

The browser app uses a product flavor:

  • channel: Using different release channels of GeckoView: nightly, beta, production. In most cases you want to use the nightly flavor as this will support all of the latest functionality.

Glean SDK support

This sample application comes with Glean SDK telemetry initialized by default, but with upload disabled (no data is being sent). This is for creating a simpler metric testing workflow for Gecko engineers that need to add their metrics to Gecko and expose them to Mozilla mobile products. See this bug for more context.

In order to enable data upload for testing purposes, change the Glean.setUploadEnabled(false) to Glean.setUploadEnabled(true) in SampleApplication.kt.

Glean will send metrics from any Glean-enabled component used in this sample application:

Data review for enabling the Glean SDK for this application can be found here.

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/