Firefox Application Services
Перейти к файлу
Ryan Kelly 5c8d52574a
feat(scripts): Generate summary of shared-vs-platform-specific code.
This is a little experiment to get a sense of whether our "shared code"
strategy is actually paying off.  It generates a simple lines-of-code
analysis of how much of our code is shared for different platforms,
versus platform-specific binding code.
2019-04-17 14:24:20 +10:00
.circleci Build and deploy the product portal and books on CircleCI. 2019-04-16 12:47:23 -07:00
.github feat(deps): Add docs and CI checks for dependency management. 2019-04-02 09:17:16 +11:00
automation Generate NSS/NSPR types from headers 2019-04-16 13:14:10 -04:00
build-scripts Use curly braces around bash variables consistently 2019-04-11 17:33:03 -04:00
buildSrc NSS crypto backend for SHA-256 digest 2019-04-11 17:33:03 -04:00
components Fix sync connection, for real this time 2019-04-16 15:59:49 -07:00
docs Organize chapters by topic, more cleanups, and address feedback. 2019-04-12 15:29:03 -07:00
gradle/wrapper Pre: Update to Gradle 4.10.2 to work around a publishing issue. 2018-11-15 11:20:46 -08:00
gradle-plugin Add viaduct to the megazords 2019-03-22 19:40:31 -07:00
libs Generate NSS/NSPR types from headers 2019-04-16 13:14:10 -04:00
megazords Merge pull request #994 from mozilla/2018-idioms 2019-04-16 12:35:12 -07:00
testing Turn on idiom lint warnings in all crate 2019-04-16 09:35:10 -07:00
tools feat(scripts): Generate summary of shared-vs-platform-specific code. 2019-04-17 14:24:20 +10:00
website Build and deploy the product portal and books on CircleCI. 2019-04-16 12:47:23 -07:00
xcconfig Megazord for iOS 2019-02-14 16:37:18 -05:00
.buildconfig-android.yml Try for 0.25.2... 2019-04-11 13:24:33 -07:00
.detekt.yml Suppress detekt failures 2019-03-22 17:22:12 -04:00
.gitignore Add Cartfile.resolved for version pinning (#879) 2019-03-29 17:06:05 -04:00
.taskcluster.yml Per-module Taskcluster tasks 2019-03-20 15:11:07 -04:00
CHANGELOG.md Expose bookmarks sync 2019-04-16 09:20:23 -07:00
CODE_OF_CONDUCT.md Bring CPG in line with CPGBot's demands, fixes #887 2019-03-31 15:38:31 -07:00
Cargo.lock Generate NSS/NSPR types from headers 2019-04-16 13:14:10 -04:00
Cargo.toml Merge branch 'master' into cleanup-push 2019-04-11 16:35:32 -07:00
Cartfile Use protobuf for fxa_profile return value 2019-02-12 19:09:45 -05:00
Cartfile.resolved Generate NSS/NSPR types from headers 2019-04-16 13:14:10 -04:00
LICENSE [license] License application-services repository as MPL2. (Fixes #220) (#233) 2018-09-11 21:28:50 -04:00
README.md Fix the link to the megazord documentation 2019-04-02 18:26:04 +02:00
build-carthage.sh Use curly braces around bash variables consistently 2019-04-11 17:33:03 -04:00
build.gradle Generate NSS/NSPR types from headers 2019-04-16 13:14:10 -04:00
clippy.toml Document our use of clippy and add a (empty) clippy.toml 2019-03-20 09:02:54 -07:00
gradle.properties NSS crypto backend for SHA-256 digest 2019-04-11 17:33:03 -04:00
gradlew [automation/fxa client] Part 1a: Lift Gradle multi-project to top-level. 2018-09-19 11:09:48 -07:00
gradlew.bat [automation/fxa client] Part 1a: Lift Gradle multi-project to top-level. 2018-09-19 11:09:48 -07:00
proguard-rules-consumer-jna.pro Set consumer Proguard rules. 2018-11-27 20:29:10 -08:00
publish.gradle NSS crypto backend for SHA-256 digest 2019-04-11 17:33:03 -04:00
settings.gradle Per-module Taskcluster tasks 2019-03-20 15:11:07 -04:00

README.md

Firefox Application Services

A platform for building cloud-powered applications that target Firefox users

What's this all about?

This repository hosts the code and docs needed to integrate with the products offered by the Firefox Application Services team.

If you're interested in getting involved in the development of those products then you're in the right place! Please review the more detailed guide on how to contribute to this project as well as the Community Participation Guidelines.

If that's not why you're here, then instead you might enjoy:

Overview

This repository is used to build client-side libraries for integrating with Firefox Application services such as Firefox Accounts, Firefox Sync and Push. Each of these is called a "component" and is built using a core of shared code writen in Rust, wrapped with native language bindings for different platforms.

The end result is an application that can be assembled from re-usable components that are largely shared across platforms, like this:

component diagram

The code for these components is organized as follows:

For more details on how the client libraries are built and published, please see the Guide to Building a Rust Component.

This repository also hosts the website source for the Application Services Product Portal, which provides consumer-facing documentation on how to integrate with various Application services products.

The ./docs/ directory holds intenal documentation about working with the code in this repository, and is most likely only of interest to contributors.

Components

The currently-available Rust Components in this repo are:

  • fxa-client - for applications that need to sign in with FxA, access encryption keys for sync, and more.
  • sync15 - shared library for accessing data in Firefox Sync
  • logins - for storage and syncing of a user's saved login credentials
  • 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
    • support/ffi - utilities for building a component's FFI bindings
    • support/sql - utilities for storing data locally with SQL