Firefox Application Services
Перейти к файлу
Lina Butler 1188dd2816 suggest: Fix Clippy lints. 2023-07-20 23:56:12 +00:00
.cargo Refactored fxa-client 2023-06-27 13:17:30 +00:00
.circleci Update prost to 0.11 2023-06-07 14:15:19 +00:00
.github Fixes broken dependency check 2023-06-22 17:05:53 +00:00
.vscode Update vscode recommended extensions 2020-04-20 19:19:23 -04:00
automation Add 'version.txt' to project root and refactor automation to use it 2023-07-17 13:35:11 +00:00
build-scripts Consolidate JVM target setting in root project build.gradle 2023-06-13 01:48:12 +00:00
components suggest: Fix Clippy lints. 2023-07-20 23:56:12 +00:00
docs Add 'version.txt' to project root and refactor automation to use it 2023-07-17 13:35:11 +00:00
examples Removed obsolete iOS sync logic 2023-07-17 22:39:21 +00:00
gradle/wrapper Update some Gradle dependencies 2023-07-07 20:12:57 +00:00
libs Update Linux Dockerfile and install Java 17 2023-06-13 01:48:12 +00:00
megazords suggest: Build config changes for Kotlin UniFFI bindings. 2023-07-20 23:56:12 +00:00
taskcluster Update Taskgraph and dependencies 2023-07-19 20:21:57 +00:00
testing Removed obsolete iOS sync logic 2023-07-17 22:39:21 +00:00
tools Add 'version.txt' to project root and refactor automation to use it 2023-07-17 13:35:11 +00:00
xcconfig Remove all Carthage and switch to xcframeworks (#4619) 2022-02-03 15:05:05 -10:00
.buildconfig-android.yml suggest: Build config changes for Kotlin UniFFI bindings. 2023-07-20 23:56:12 +00:00
.cron.yml Updating our cron file 2022-04-27 10:37:33 -04:00
.detekt.yml Allow nimbus-fml WildcardImports 2023-06-16 15:40:08 +00:00
.gitignore add uniffi bindings for nimbus-fml; add FmlClient object with appropriate methods 2023-05-23 19:21:50 +00:00
.gitmodules Remove submodule from .gitmodules 2021-03-22 18:14:41 -07:00
.mergify.yml Minor mergify modifications (#5527) 2023-05-01 15:31:13 -04:00
.swiftlint.yml Merge ios and ios-rust directories and clean up Xcode project (#4830) 2022-03-03 10:03:32 -10:00
.taskcluster.yml ci: add checkout dir as a Taskcluster cache 2023-06-02 03:38:32 +00:00
CHANGELOG.md Update dependencies and changelog 2023-07-20 01:00:01 +00:00
CODE_OF_CONDUCT.md Bring CPG in line with CPGBot's demands, fixes #887 2019-03-31 15:38:31 -07:00
COPYRIGHT Remove the `ffi-support` crate sources from this repo. 2021-06-01 15:56:49 +10:00
Cargo.lock suggest: Build config changes for Kotlin UniFFI bindings. 2023-07-20 23:56:12 +00:00
Cargo.toml Initial scaffolding for a Suggest component. 2023-07-20 23:56:12 +00:00
DEPENDENCIES.md Update dependencies and changelog 2023-07-20 01:00:01 +00:00
LICENSE rc_crypto initial commit (#1349) 2019-07-09 14:00:48 -04:00
README.md Fixes README typo 2023-05-02 21:55:58 +00:00
build.gradle Update Protobuf Gradle Plugin to version 0.9.4 2023-07-17 03:49:35 +00:00
clippy.toml Document our use of clippy and add a (empty) clippy.toml 2019-03-20 09:02:54 -07:00
codecov.yml Tell codecov our default branch is `main` 2020-07-24 09:39:45 -07:00
gradle.properties Set Kotlin JVM target mode to error 2023-06-13 01:48:12 +00:00
gradlew Import nimbus-sdk as submodule, republish as part of the megazord. 2020-11-09 16:40:21 +11:00
gradlew.bat Import nimbus-sdk as submodule, republish as part of the megazord. 2020-11-09 16:40:21 +11:00
install-nimbus-cli.sh Version bump nimbus-cli to 0.3.0 2023-06-23 11:29:42 +00:00
proguard-rules-consumer-jna.pro Set consumer Proguard rules. 2018-11-27 20:29:10 -08:00
publish.gradle FML: Generate Kotlin from FML intermediate representation (#4607) r=tarik 2021-11-06 14:27:37 +00:00
rust-toolchain.toml Move OSX Rust setup and library building to toolchain tasks 2023-06-27 15:06:42 +00:00
settings.gradle Add 'version.txt' to project root and refactor automation to use it 2023-07-17 13:35:11 +00:00
version.txt Add 'version.txt' to project root and refactor automation to use it 2023-07-17 13:35:11 +00:00

README.md

Firefox Application Services

Application Services (a-s) is a collection of Rust Components that are used to enable Firefox applications to integrate with Firefox accounts, sync, experimentation, etc. Each component is built using a core of shared code written in Rust, wrapped with native language bindings for different platforms.

Contributing

To contribute, please review the Mozilla Community Participation Guidelines and then visit our how to contribute guide.

Contact

Get in touch with other community members on Matrix, or through issues here on GitHub.

Documentation

High-level docs

The Application Services Book contains high-level documentation about the code in this repository. It's built from the ./docs/ directory.

Package docs

We use rustdoc to document both the public API of the components and the various internal implementation details. View them on https://mozilla.github.io/application-services/book/rust-docs/fxa_client/index.html. Once you have completed the build steps, you can view the docs by running:

cargo doc --no-deps --document-private-items --open

Building

Building the Rust Components

  1. Clone or Download the repository:
  $ git clone https://github.com/mozilla/application-services # (or use the ssh link)
  $ cd application-services
  $ git submodule init
  $ git submodule update --recursive
  1. Follow these instructions to install your system-level dependencies
  2. Run the a-s Rust unit tests
cargo test

Consumer build, integration and testing

The application-services library primary consumers are Fenix (Firefox on Android) and Firefox iOS. Assure you are able to run integration tests (for Android and iOS if using MacOS) by following the instructions to build for Android and iOS integrations.

Android integration builds and helpful tools

Firefox for iOS integration

Firefox Desktop

Rust Components

./components/ contains the source for each component, and its FFI bindings.

Please note that we are in the process of moving away from hand-written ffi code and instead favouring the use of the uniffi library.

List of components

  • autofill - for storage and syncing of credit card and address information
  • crashtest - testing-purposes (crashing the Rust code)
  • fxa-client - for applications that need to sign in with FxA, access encryption keys for sync, and more.
  • logins - for storage and syncing of a user's saved login credentials
  • nimbus - for integrating with Mozilla's experimentation platform for Firefox
  • places - for storage and syncing of a user's saved browsing history
  • push - for applications to receive real-time updates via WebPush
  • rc_log - for connecting component log output to the application's log stream
  • support - low-level utility libraries
  • sync15 - shared library for accessing data in Firefox Sync
  • sync_manager - integrates multiple sync engines/ stores into a single framework
  • tabs - an in-memory syncing engine for remote browser tabs
  • viaduct - an HTTP request library
  • webext-storage - powers an implementation of the chrome.storage.sync WebExtension API