189 KiB
v117.0 (In progress)
General
🦊 What's Changed 🦊
- Removed obsolete sync functions that were exposed for Firefox iOS prior to the sync manager component integration (#5725).
Nimbus SDK ⛅️🔬🔭
✨ What's New ✨
- Add
recordExperimentExposure
toFeatureHolder
, and substitute{experiment}
for experiment slugs at enrollment in the feature configuration #5715.- This is to enable exposure events to be assigned to the correct experiment in coenrolled features.
- Android and iOS are both supported.
Nimbus FML ⛅️🔬🔭🔧
✨ What's New ✨
- Add
allow-coenrollment
property for features in the Feature Manifest Language. This relaxes the feature exclusion rules for features marked withallow-coenrollment: true
. (#5688).- This adds a non-user-facing method to the
FeatureManifestInterface
,getCoenrollingFeatureIds
, in both Kotlin and Swift.
- This adds a non-user-facing method to the
- Exposes a method to get the coenrolling feature ids in the FML client (#5714), as well as the NimbusBuilders for both Kotlin and Swift (#5718).
Nimbus CLI ⛅️🔬🔭👾
✨ What's New ✨
- Added a
--patch
option to all commands that accept an experiment. (#5721) - Added a
--pbcopy
option to all commands that open the app. (#5727).- with associated in-app tooling to enroll into experiments via a deeplink URL.
- Added filters to the
list
andfetch-list
commands (#5730)- Also, made
--app
and--channel
non-mandatory for commands that don't need them.
- Also, made
[Full Changelog](In progress)
v116.0 (2023-07-03)
General
🦊 What's Changed 🦊
- Android: The JVM compatibility target is now version 17 (#5651)
- NOTE: This is technically a breaking change, but all existing downstream projects have already made the necessary changes.
Nimbus SDK ⛅️🔬🔭
🦊 What's Changed 🦊
- When a rollout audience size changes, the enrollment is re-evaluated and the client is un-enrolled if no longer in the bucket or re-enrolled if they had previously been disqualified from bucketing. (#5687, #5716).
- The record of enrollment will be available in the new
enrollments
targeting attribute.
- The record of enrollment will be available in the new
- Add
enrollments
value toTargetingAttributes
— it is a set of strings containing all enrollments, past and present (#5685).- Note: This change only applies to stateful uses of the Nimbus SDK, e.g. mobile
- Add ability to enroll selected features multiple times (coenrollment) (#5684, #5697).
⚠️ Breaking Changes ⚠️
- Several changes to the NimbusBuilder mean that this is a breaking change for Firefox for Android #5697.
- These changes are fixed by firefox-android#2682.
Nimbus FML ⛅️🔬🔭🔧
✨ What's New ✨
- Add
validate
command to the FML CLI. This command validates a chosen manifest file, including all its imports, includes, and channels (#5607). - Add
single-file
command to the FML CLI. This command rationalizes a manifest file– including all of its imports and includes– into a single file, suitable for bundling into a secure environment (#5676).
🦊 What's Changed 🦊
- When a cache directory is not specified, now spin up a temporary directory instead of using the (sometimes) long lived system one (#5662).
Nimbus CLI ⛅️🔬🔭👾
🦊 What's Changed 🦊
- Version bump to
0.3.0
(#5674). User facing changelog: https://experimenter.info/nimbus-cli/whats-new - Added isRollout and bucketing info to the
list
command (#5672). - Fixed several paper cut usability issues (#5654):
- Experiments by default are fetched from the API v6, eliminating latency between making changes on experimenter and syncing with remote settings.
- Separated
fetch
andfetch-list
: experiment lists, by default still come from Remote Settings, but the slower API v6/api/v6/experiments
can be queried.
✨ What's New ✨
- Added an
info
command (#5672). - Fixed several paper cut usability issues (#5654):
- Added a
defaults
command to output the feature configuration from the manifest. - Added a
features
command to output the experiment branch features and optionally merged with the manifest defaults. - Now supports reading and writing YAML files.
- Single experiment files can be used as an experiment list file.
- Added a
- Add passthrough parameters for the
open
,enroll
andtest-feature
commands. (#5669)
v115.0 (2023-06-05)
Push
⚠️ Breaking Changes ⚠️
- The constructor for the Push Manager has changed. (#5389)
- Push manager now takes only one argument, a Push Configuration object
- Push manager no longer takes in the registration_id (token) in construction
- Push manager now takes a new
verifyConnectionRateLimiter
parameter in its configuration, it defines the number of seconds between consecutive verify connection requests.
- The
update
function no longer returns a boolean, the consumers did not use the return value. (#5389) - The Error exposed by push is now
PushApiError
, which is reduced to the set of errors the consumer is expected to handle. (#5389):PushApiError::UAIDNotRecognizedError
: The server lost the client's uaid. The app should callverify_connection(true)
and notify all consumers of pushRecordNotFoundError
: The record containing the private key cannot be found. The consumer should callverify_connection(true)
and notify all consumers of pushInternalError
: Consumer should report the error, but ignore it
Nimbus ⛅️🔬🔭
🦊 What's Changed 🦊
- Add additional Cirrus SDK helper methods and add Python testing for the generated Cirrus Python code (#5478).
- Add
user_id
RandomizationUnit (for Cirrus) (#5564). - Fixed up a bug in
get_experiment_branch
andget_active_experiments
((#5584)). - Renamed
GleanPlumb
classes and protocols toNimbusMessaging
in Swift. Added more protocols to make it more mockable in application code (#5604).
Nimbus CLI ⛅️🔬🔭👾
✨ What's New ✨
- Extra commands:
capture-logs
,tail-logs
,test-feature
,fetch
andapply-files
. (#5517) - Extra commands:
validate
to validate experiments against a feature manifest. (#5638)- This is on by default for
test-feature
andenroll
- The version of the manifest may be tweaked with the
--version
,--ref
and--manifest
options.
- This is on by default for
- Extra commands and options to open deeplinks with the app. (#5590).
- An update checker to keep you and your installation fresh. (#5613).
- An installation script to make getting
nimbus-cli
easier. (#5618).
Nimbus FML ⛅️🔬🔭🔧
✨ What's New ✨
- Added a new Remote Settings client component (#5423).
- Added
toJSONObject()
andgetFeatures(featureId)
for Kotlin. This serializes the FML into aJSONObject
(#5574). - Added
FmlClient
, additional methods toFeatureManifest
, and Python UniFFI bindings (#5557). - Updated FML validation to error when a property name that doesn't exist is applied to a feature (#5620).
What's fixed
- Updated the FML downloader plugin to correctly download the release artifacts from the GitHub release
FxA Client
⚠️ Breaking Changes ⚠️
- Changes
handlePushMessage
API so that it now returns exactly one event associated with the push message. (#5556)- This API does not attempt to retrieve any missing tabs.
- Users of this API can use it to display the notification, but should use
pollDeviceCommands
after to capture the commands.
Xcode
- Bumped Xcode version from 13.4.1 -> 14.3.1 (#5615)
v114.0 (2023-05-08)
General
✨ What's New ✨
- Updated the version system to follow the Firefox major version
- Implemented nightly builds
Nimbus ⛅️🔬🔭
✨ What's New ✨
- Added processing of command line arguments (or intent extras) to be driven by a command line tool. (#5482)
- Requires passing
CommandLine.arguments
toNimbusBuilder
in iOS. - Requires passing
intent
toNimbusInterface
in Android.
- Requires passing
- Added Cirrus client object for working with Nimbus in a static, stateless manner (#5471).
- Added
nimbus-cli
. (#5494)
Places ⛅️🔬🔭
🦊 What's Changed 🦊
- Added support for sync payload evolution in history. If other clients sync history records / visits with fields that we don't know about, we store that data as JSON and send it back when it's synced next.
v97.5.1 (2023-04-17)
General
✨ What's New ✨
- Fixing the objcopy path when building the megazord (#5154).
v97.5.0 (2023-04-17)
General
What's Changed
- Android: Upgraded NDK from r21d to r25c.
Nimbus ⛅️🔬🔭
🦊 What's Changed 🦊
- Refactor the
EnrollmentEvolver
in preparation for a larger refactor to split out thestateful
feature. (#5374). - Added a
stateful
cargo feature and added appropriate feature flag attributes (#5448).- This does not functionally change build processes, as the
stateful
feature is now the default feature for thenimbus-sdk
library.
- This does not functionally change build processes, as the
- Changed the ordering around for optional arguments for Python compatibility (#5460).
- This does not change Kotlin or Swift APIs, but affects code that uses the uniffi generated FFI for
record_event
andrecord_past_event
directly.
- This does not change Kotlin or Swift APIs, but affects code that uses the uniffi generated FFI for
✨ What's New ✨
- Added more testing tools for the
NimbusEventStore
, for iOS and Android (#5477)events.advanceEventTime(by: time)
lets you queue up a sequence of events to test JEXL queries.
Sync Manager
🦊 What's Changed 🦊
- Added the sync telemetry reporting logic to replace the temp metrics in iOS. (#5479)
v97.4.1 (2023-04-04)
Places
🦊 What's Changed 🦊
- Added a workaround for a database migration issue that was breaking places for some nightly users (https://github.com/mozilla/application-services/issues/5464)
v97.4.0 (2023-04-03)
Nimbus ⛅️🔬🔭
🦊 What's Changed 🦊
- Changed the ordering around for optional arguments for Python compatibility (#5460).
- This does not change Kotlin or Swift APIs, but affects code that uses the uniffi generated FFI for
record_event
andrecord_past_event
directly.
- This does not change Kotlin or Swift APIs, but affects code that uses the uniffi generated FFI for
v97.3.0 (2023-03-29)
Places ⛅️🔬🔭
🦊 What's Changed 🦊
- Added support for sync payload evolution in bookmarks. If other clients sync bookmark records with fields that we don't know about, we store that data as JSON and send it back when it's synced next.
Nimbus ⛅️🔬🔭
✨ What's New ✨
- Added
recordPastEvent
for iOS and Android for testing of event store triggers. (#5431) - Added
recordMalformedConfiguration
method forFeatureHolder
to record when some or all of a feature configuration is found to be invalid. (#5440)
🦊 What's Changed 🦊
- Removed the check for major
schemaVersion
in Experiment recipes. (#5433)
v97.2.0 (2023-03-08)
General
🦊 What's Changed 🦊
- Android: The JVM compatibility target is now version 11 (#5401)
- NOTE: This is technically a breaking change, but all existing downstream projects have already made the necessary changes.
Nimbus ⛅️🔬🔭
🦊 What's Changed 🦊
- Fix Nimbus gradle plugin source file and task dependency issues (#5421)
✨ What's New ✨
- Added new testing tooling
HardcodeNimbusFeatures
to aid UI and integration tests (#5393)
v97.1.0 (2023-02-24)
Tabs
🦊 What's Changed 🦊
- The Tabs engine now trims the payload to be under the max the server will accept (#5376)
Sync Manager
🦊 What's Changed 🦊
- Exposing the Sync Manager component to iOS by addressing the existing naming collisions, adding logic to process the telemetry
data returned in the component's
sync
function, and adding the component to the iOS megazord (#5359).
v97.0.0 (2023-02-22)
Nimbus ⛅️🔬🔭
🦊 What's Changed 🦊
- Updated the Nimbus Gradle Plugin to fix a number of issues after migrating it to this repository (#5348)
- Good fences: protected calls out to the error reporter with a
try
/catch
(#5366) - Updated the Nimbus FML CLI to only import the R class if it will be used by a feature property (#5361)
⚠️ Breaking Changes ⚠️
- Android and iOS: Several errors have been moved to an internal support library and will no longer be reported as top-level Nimbus errors. They should still be accessible through
NimbusError.ClientError
. They are:RequestError
,ResponseError
, andBackoffError
. (#5369)
v96.4.0 (2023-01-30)
Tabs
What's Changed
The Tabs engine is now more efficient in how it fetches its records:
- The Tabs engine no longer clears the DB on every sync.
- Tabs now tracks the last time it synced and only fetches tabs that have changed since the last sync.
- Tabs will keep records for up to 180 days, in parity with the clients engine. To prevent the DB from getting too large.
Nimbus ⛅️🔬🔭
🦊 What's Changed 🦊
- Added
GleanMetrics.NimbusHealth
metrics for measuring duration ofapply_pending_experiments
andfetch_experiments
. (#5344)
v96.3.0 (2023-01-18)
Places
What's changed
- Removes old iOS bookmarks migration code. The function
migrateBookmarksFromBrowserDb
no longer exists. (#5276)
Nimbus ⛅️🔬🔭
What's New
- iOS: added a
Bundle.fallbackTranslationBundle()
method. (#5314) - Moved the Nimbus Gradle Plugin into application-services and updated its functionality to support local development. (#5173)
v96.2.1 (2023-01-04)
Places
What's changed
- Limited the number of visits to migrate for History to 10,000 visits. (#5310)
v96.2.0 (2023-01-03)
Nimbus ⛅️🔬🔭
What's Changed
- Fixed an issue where the NimbusQueues protocol was missing from the NimbusApi (#5298)
✨ What's New ✨
- Added
eventLastSeen
query to the event store and jexl transforms (#5297) - Introduced the
NimbusBuilder
for Swift (#5307)
Tabs
What's Changed
- Fixed a regression causing failure to read old tabs databases (#5286)
Autofill
🦊 What's Changed 🦊
- Exposed autofill api to iOS consumer and resolved
createKey
function conflict with the Logins component.
v96.1.3 (2022-12-08)
Tabs
What's Changed
- Fixed a regression causing failure to read old tabs databases (#5286)
v96.1.2 (2022-12-07)
Logins
What's changed
- Removes Fennec migration code. The function
importMultiple
no longer exists. (#5268)
Nimbus
What's Changed
- Event store date comparison logic update to be entirely relative (#5265)
- Updates event store to initialize all dates at the start of the current year (#5279)
- Adds new Kotlin/Swift methods to clear the event store (#5279)
- Adds Swift methods to wait for operation queues to finish (#5279)
Places
What's changed
- Removes Fennec migration code. (#5268)
The following functions no longer exist:
importBookmarksFromFennec
importPinnedSitesFromFennec
importVisitsFromFennec
Viaduct
What's New
- Allow viaduct to make requests to the android emulator's host address via a new viaduct_allow_android_emulator_loopback() (in Rust)/allowAndroidEmulatorLoopback() (in Kotlin) (#5270)
Tabs
What's changes
- The ClientRemoteTabs struct/interface now has a last_modified field which is the time when the device last uploaded the tabs.
v96.1.1 (2022-12-01)
autofill
What's Changed
- Fixed a bug where
scrub_encrypted_data()
didn't update the last sync time, which prevented the scrubbed CC data from being fixed. - Don't report sentry errors when we try to decrypt the empty string. This happens when the consumer tries to decript
a CC number after
scrub_encrypted_data()
is called.
logins
What's Changed
- Don't report
Origin is Malformed
errors to Sentry. This is a known issue stemming from FF Desktop sending us URLs without a scheme. See #5233 for details.
places
What's Changed
- Switch to using incremental vacuums for maintenance, which should speed up the process.
- Don't report places
relative URL without a base
to Sentry. This is a known issue caused by Fenix sending us URLs with an invalid scheme (see #5235)
v96.1.0 (2022-11-29)
FxA Client
What's new
- Exposed a new function for swift consumers
resetPersistedState
resetPersistedState
can be used to refresh the account manager to reflect the latest persisted state.resetPersistedState
should be called in between a different account manager instance persisting the state, and the current account manager persisting state- For example, the Notification Service in iOS creates its own instance of the account manager, changes its state (by changing the index of the last retrieved send tab)
- The main account manager held by the application should call
resetPersistedState
before calling any other method that might change its state. This way it can retrieve the most up to date index that the Notification Services persisted.
What's changed
- The
processRawIncomingAccountEvent
function will now process all commands, not just one. This moves the responsibilty of ensuring each push gets a UI element to the caller.
v96.0.1 (2022-11-18)
Logins
What's Changed
- Updated the URL redaction code to remove potential PII leak. Version
96.0.0
should not be used by downstream clients.
Nimbus
What's changed
- Add methods to Kotlin and Swift to call the record event method on the nimbus client (#5244)
FxA Client
What's changed
- The devices retrieved from the devices list are now only the devices that have been accessed in 21 days. This should help remove duplicates and idle devices for users. (#4984)
v96.0.0 (2022-11-16)
⛅️🔬🔭 Nimbus
✨ What's New ✨
active_experiments
is available to JEXL as a set containing slugs of all enrolled experiments (#5227)- Added Behavioral Targeting/Display Triggers accessible from JEXL for experiments and messages (#5226, #5228)
- Android only: added a new
NimbusBuilder
method to unify Fenix and Focus startup sequences. (5239)
⚠️ Breaking Changes ⚠️
- Changed the type of
customTargetingAttributes
inNimbusAppSettings
to aJSONObject
. The change will be breaking only for Android. (#5229) - Android only: Removed the
initialize()
methods in favor ofNimbusBuilder
class. (5239)
Logins
What's Changed
- Include a redacted version of the URL in the Sentry error report when we see a login with an invalid origin field.
- Made it so
InvalidDatabaseFile
errors aren't reported to Sentry. These occurs when a non-existent path is passed tomigrateLoginsWithMetrics()
, which happens about 1-2 times a day. This is very low volume, the code is going away soon, and we have a plausible theory that these happen when Fenix is killed after the migration but beforeSQL_CIPHER_MIGRATION
is stored.
Places
What's Changed
- Report a Sentry breadcrumb when we fail to parse URLs, with a redacted version of the URL.
JwCrypto
What's Changed
- Log a breadcrumb with a redacted version of the crypto key when it has an invalid form (before throwing DeserializationError)
v95.0.1 (2022-11-03)
General
- Added function to unset the app-services error reporter
v95.0.0 (2022-10-28)
General
What's fixed
- Fixed a bug released in 94.3.1. The bug broke firefox-ios builds due to a name conflict. (#5181)
What's Changed
- Updated UniFFI to 0.21.0. This improves the string display of the fielded errors on Kotlin. Currently only logins is using these errors, but we plan to start using them for all components.
Autofill
⚠️ Breaking Changes ⚠️
- The autofill API now uses
AutofillApiError
instead ofAutofillError
.AutofillApiError
exposes a smaller number of variants, which will hopefully make it easier to use for the consumer.
Logins
⚠️ Breaking Changes ⚠️
- Renamed
LoginsStorageError
toLoginsApiError
, which better reflects how it's used and makes it consistent with the places error name. - Removed the
LoginsApiError::RequestFailed
variant. This was only thrown when calling the sync-related methods manually, rather than going through the SyncManager which is the preferred way to sync. Those errors will now be grouped underLoginsApiError::UnexpectedLoginsApiError
.
What's Changed
- Added fields to errors in
logins.udl
. Most variants will now have amessage
field.
Nimbus ⛅️🔬🔭
What's Changed
- Disabled Glean events recorded when the SDK is not ready for a feature (#5185)
- Add structs for behavioral targeting (#5205)
- Calls to
log::error
have been replaced witherror_support::report_error
(#5204)
Places
⚠️ Breaking Changes ⚠️
- Renamed
PlacesError
toPlacesApiError
, which better reflects that it's used in the public API rather than for internal errors. - Removed the
JsonError
,InternalError
, andBookmarksCorruption
variants from places error. Errors that resulted inInternalError
will now result inUnexpectedPlacesError
.BookmarksCorruption
will also result in anUnexpectedPlacesError
and an error report will be automatically generated.JsonError
didn't seem to be actually used.
Tabs
⚠️ Breaking Changes ⚠️
- The tabs API now uses
TabsError
withTabsApiError
.TabsApiError
exposes a smaller number of variants, which will hopefully make it easier to use for the consumer.
v94.3.2 (2022-10-13)
General
What's Changed
- Android: Reverted NDK back to r21d from r25b. (#5156)
Sync Manager
What's Changed
- Syncing will sync each engine in a deterministic order which matches desktop (#5171)
v94.3.1 (2022-09-23)
Nimbus ⛅️🔬🔭
What's Fixed
- A regression affecting Android in calculating
days_since_install
anddays_since_update
(#5157)
v94.3.0 (2022-09-20)
General
What's Changed
- Rust toolchain has been bumped to 1.63 and minimum version bumped to 1.61 to comply with our Rust Policy
- Android: Upgraded NDK from r21d to r25b. (#5142)
Places
What's Changed
- Added metrics for the
run_maintenance()
method. This can be used by consumers to decide when to schedule the nextrun_maintenance()
call and to check if calls are taking too much time.
What's new
- Exposed a function in Swift
migrateHistoryFromBrowserDb
to migrate history frombrowser.db
toplaces.db
, the function will migrate all the local visits in one go. (#5077).- The migration might take some time if a user had a lot of history, so make sure it is not run on a thread that shouldn't wait.
- The migration runs on a writer connection. This means that other writes to the
places.db
will be delayed until the migration is done.
Nimbus
What's Changed
- Added
applyLocalExperiments()
method as short hand forsetLocalExperiments
andapplyPendingExperiments
. (#5131)applyLocalExperiments
andapplyPendingExperiments
now returns a cancellable job which can be used in a timeout.initialize
function takes a raw resource file id, and returns a cancellableJob
.
v94.2.1 (2022-09-21)
Nimbus ⛅️🔬🔭
What's Changed
- Added
applyLocalExperiments()
method as short hand forsetLocalExperiments
andapplyPendingExperiments
. (#5131)applyLocalExperiments
andapplyPendingExperiments
now returns a cancellable job which can be used in a timeout.initialize
function takes a raw resource file id, and returns a cancellableJob
.
What's Fixed
- A regression affecting Android in calculating
days_since_install
anddays_since_update
(#5157)
v94.2.0 (2022-09-13)
General
error-support
is now exposed to both Firefox iOS and Focus iOS.error-support
supports better error reporting and logging for errors. (#5094)
Nimbus FML ⛅️🔬🔭🔧
What's Changed
- Add
channels
value for defaults and add support for multiple channels inchannel
via comma separation. (#5101)
✨ What's New ✨
- JEXL targeting allows for using the
in
keyword with objects and a map of active experiments has been added to TargetingAttributes. The map will always be empty at this time. (#5104)
Nimbus ⛅️🔬🔭
What's Changed
- Added metrics for SDK unavailability and disk cache unreadiness to tease apart the difference in startup slowness. (#5118)
v94.1.0 (2022-08-18)
Nimbus
What's new
- Added telemetry to track how often apps query for variables before Nimbus is initialized. (#5091)
v94.0.1 (2022-08-09)
Nimbus FML
What's fixed
- Linux releases for the FML were missing, there are available again now. (#5080)
v94.0.0 (2022-08-02)
Logins
⚠️ Breaking Changes ⚠️
- Removed expired logins sqlcipher migration metrics and renamed the
migrateLoginsWithMetrics
function since it no longer reports metrics. An associated iOS PR (#11470) has been created to address the function renaming. (#5064)
v93.8.0 (2022-07-29)
Nimbus FML ⛅️🔬🔭
What's Changed
- Validate the configuration passed from a top-level FML file to imported files. (#5055)
Places
What's new
- We now expose all of the Places history APIs to Swift consumers. (#4989)
- Added an optional db_size_limit parameter to
run_maintenance
. This can be used to set a target size for the places DB. If the DB is over that size, we'll prune a few older visits. The number of visits is very small (6) to ensure that the operation only blocks the database for a short time. The intention is thatrun_maintenance()
is called frequently compared to how often visits are added to the places DB.
Sync15
What's changed
CLIENTS_TTL
has been updated to be 180 days instead of 21 (#5054)
v93.7.1 (2022-07-26)
Places
What's changed
- The
delete_visits_between
API now also deletes history metadata (#5046)
v93.7.0 (2022-07-18)
Nimbus FML ⛅️🔬🔭🔧
What's Changed
- Added
MOZ_APPSERVICES_MODULE
environment variable to specify the megazord module for iOS (#5042). If it is missing, no module is imported.
✨ What's New ✨
- Enabled remote loading and using configuring of branches. (#5041)
- Add a
fetch
command tonimbus-fml
to demo and test remote loading and paths. (#5047)
Logins
What's Changed
- Updated the
LoginsStorageError
implementation and introduce error reporting for unexpected errors. Note that some errors were removed, which is technically a breaking change, but none of our consumers use those errors so it's not a breaking change in practice.
v93.6.0 (2022-07-11)
Autofill
What's Fixed
- Fixed syncing of autofill when tombstones exist in the local mirror (#5030)
Nimbus FML ⛅️🔬🔭🔧
What's New
- Added support for breaking up FML files using
includes
and separating into different modules withimports
. (#5031, #5022, #5016, #5014, #5007, #4999, #4997, #4976)- This is not a breaking change, but should be accompanied by a upgrade to the megazord (#4099).
- This also deprecates some commands in the command line interface (#5022). These will be removed in a future release.
- Related proposal document: FML: Imports and Includes.
Logins
What's Changed
- sqlcipher migrations no longer record metrics (#5017)
Glean
What's Changed
- Updated to Glean v50.1.2
UniFFI
What's Changed
- Updated to UniFFI 0.19.3
v93.5.0 (2022-06-16)
Nimbus FML ⛅️🔬🔭🔧
What's Changed
- Added
includes
list property to enable splitting up largenimbus.fml.yaml
files (#4976).
v93.4.0 (2022-06-09)
General
What's Changed
- Glean updated to v50 and all internal calls adopted
v93.3.0 (2022-06-06)
Error-support
What's New
- Added a new error reporting system that is intended to eventually replace using
log::error
to report errors - Added code using the new system to track down application-services#4856
- Added UniFFI API for this crate. Consumers should use this to register for error reports and breadcrumbs.
v93.2.2 (2022-05-27)
Tabs
What's Changed
- Fixed the iOS breaking change in the
SyncUnlockInfo
constructor by makingtabsLocalId
an optional parameter (#4975).
v93.2.1 (2022-05-24)
General
What's new
- Uniffi was upgraded to 0.18.0. For our consumers, this means there now exported types that used to be internal to
uniffi
. (#4949).- The types are:
Url
alias forstring
PlacesTimestamp
alias fori64
VisitTransitionSet
alias fori32
Guid
alias forstring
JsonObject
alias forstring
- Non of the exposed types conflict with a type in iOS so this is not a breaking change.
- The types are:
Nimbus ⛅️🔬🔭
What's new
- Make generation of Experimenter compatible YAML repeatable: fields, variables, features and enum variants are listed alphabetically. (#4964).
Tabs
What's Changed
- The component has been updated for integration into Firefox iOS (#4905).
- The
DeviceType
naming conflict which preventedrust-components-swift
from generating Tabs code has been resolved. - Errors and the
reset
function have been exposed. - Parameters for the
sync
function have been updated to match theSyncUnlockInfo
parameters. - The
tabs-sync
example has been updated with the above changes.
- The
v93.2.0 (2022-05-11)
General
What's new
- Application services now releases a separate xcframework with only the components needed by focus-ios (namely Nimbus, Viaduct and Rustlog). This change is only relevant for focus, it does not affect the already existing xcframework for firefox ios. (#4953)
v93.1.0 (2022-05-06)
Nimbus ⛅️🔬🔭
What's New
- New API in the
FeatureHolder
, both iOS and Android to control the output of thevalue()
call:- to cache the values given to callers; this can be cleared with
FxNimbus.invalidatedCachedValues()
- to add a custom initializer with
with(initializer:_)
/withInitializer(_)
.
- to cache the values given to callers; this can be cleared with
Places
What's Fixed:
- Fixed a bug in Android where non-fatal errors were crashing. (#4941)
- Fixed a bug where querying history metadata would return a sql error instead of the result (4940)
What's new:
- Exposed the
deleteVisitsFor
function in iOS, the function can be used to delete history metadata. (#4946)- Note: The API is meant to delete all history, however, iOS does not use the
places
Rust component for regular history yet.
- Note: The API is meant to delete all history, however, iOS does not use the
v93.0.4 (2022-04-28)
Places
What's New
- The
delete_visits_for()
function now deletes all history metadata even when the item is bookmarked.
Nimbus
What's fixed
- Fixed a bug where the visibility of
GetSdk
was internal and it was used in generated FML code. (#4927)
v93.0.3 (2022-04-27)
Nimbus ⛅️🔭🔬
What's New
- Added targeting attributes for
language
andregion
, based upon thelocale
. #4919- This also comes with an update in the JEXL evaluator to handle cases where
region
is not available.
- This also comes with an update in the JEXL evaluator to handle cases where
What's Changed
- Fixed: A crash was detected by the iOS team, which was traced to
FeatureHolder.swift
. (#4924)- Regression tests added, and FeatureHolder made stateless in both Swift and Kotlin.
v93.0.2 (2022-04-25)
Nimbus FML
What's fixed
- (iOS only) Made the extensions on
String
andVariables
public. The extended functions are used in the generated code and that didn't compile in consumers when internal.
v93.0.1 (2022-04-20)
Nimbus FML ⛅️🔬🔭🔧
What's Fixed
- Handling of optional types which require a mapping to a usable type. (#4915)
Places
- Downgraded places
get_registered_sync_engine
log:error
tolog:warn
to fix an issue where places was unnecessarily creating sentry noise. This change was also cherry-picked to v91.1.2
v93.0.0 (2022-04-13)
Nimbus ⛅️🔭🔬 + Nimbus FML ⛅️🔬🔭🔧
What's New
- Add support for bundled resources in the FML in Swift. This corresponds to the
Image
andText
types. #4892- This must include an update to the megazord, as well re-downloading the
nimbus-fml
binary. - Kotlin support for the same has also changed to match the Swift implementation, which has increased performance.
- This must include an update to the megazord, as well re-downloading the
v92.0.1 (2022-03-24)
Nimbus FML ⛅️🔬🔭🔧
What's Fixed
- Swift: a bug in our understanding of Swift optional chaining rules meant that maps with a mapping and merging produced invalid code. (#4885)
General
What's Changed
- Added documentation of our sqlite pragma usage. (#4876)
v92.0.0 (2022-03-17)
Places
⚠️ Breaking Changes ⚠️
- Removed some functions related to sync interruption. These were never really completed and don't seem to be in use by iOS/Android code:
PlacesApi.new_sync_conn_interrupt_handle()
- Swift only:
PlacesAPI.interrupt()
- The exception variant
InternalPanic
was removed. It's only use was replaced by the already existingUnexpectedPlacesException
. (#4847)
What's New
- The Places component will report more error variants to telemetry. (#4847)
Autofill / Logins / Places / Sync Manager, Webext-Storage
What's Changed
- Updated interruption handling and added support for shutdown-mode which interrupts all operations.
Tabs
⚠️ Breaking Changes ⚠️
- The tabs component's constructor now requires the path to the database file where remote tabs will be persisted to.
- Requesting remote tabs before the first sync will now return the tabs in this database, so may be "stale".
Glean
⚠️ Breaking Changes ⚠️
Swift
- GleanMetrics should now be imported under
import Glean
instead of importing viaMozillaRustComponents
Nimbus FML
What's Changed
- Papercut fixes for nicer developer experience #4867
- More helpful validation error reporting
- Better handling of defaults in objects and enum maps
- More YAML syntactic checking.
- Allow experimenter to output to a YAML file, as well as JSON. #4874
- If the file extension is
yaml
, then output as YAML, otherwise, output as JSON.
- If the file extension is
v91.1.2 (2022-04-19)
IMPORTANT: The following change was cherry-picked to 91.1.2 which was a release not from the main branch. The change then landed in v93.0.1. This means that versions v92.0.0 - v93.0.0 do not have the change.
Places
- Downgraded places
get_registered_sync_engine
log:error
tolog:warn
to fix an issue where places was unnecessarily creating sentry noise.
v91.1.1 (2022-03-23)
Autofill
What's New
- Added
temp-store
,journal-mode
, andforeign-keys
pragmas to autofill component. (#4882)
v91.1.0 (2022-02-11)
⛅️🔬🔭 Nimbus SDK
What's fixed
- Fixes a bug where disabling studies did not disable rollouts. (#4807)
✨ What's New ✨
- A message helper is now available to apps wanting to build a Messaging System on both Android and iOS. Both of these access the variables provided by Nimbus, and can have app-specific variables added. This provides two functions:
Xcode
- Bumped Xcode version from 13.1.0 -> 13.2.1
Nimbus FML
What's fixed
- Fixes a bug where each time the fml is run, the ordering of features in the experimenter json is changed. (#4819)
v91.0.1 (2022-02-02)
Places
What's Changed
- The database initialization code now uses BEGIN IMMIDIATE to start a
transaction. This will hopefully prevent
database is locked
errors when opening a sync connection.
What's New
- The
HistoryVisitInfo
struct now has anis_remote
boolean which indicates whether the represented visit happened locally or remotely. (#4810)
v91.0.0 (2022-01-31)
Nimbus FML
What's New
- The Nimbus FML can now generate swift code for the feature manifest. (#4780)
- It can be invoked using:
$ nimbus-fml <FEATURE_MANIFEST_YAML> -o <OUTPUT_NAME> ios features
- You can check the support flags and options by running:
$ nimbus-fml ios --help
- The generated code exposes:
- a high level nimbus object, whose name is configurable using the
--classname
option. By default the object isMyNimbus
. - All the enums and objects defined in the manifest as idiomatic Swift code.
- a high level nimbus object, whose name is configurable using the
- Usage:
- To access a feature's value:
// MyNimbus is the class that holds all the features supported by Nimbus // MyNimbus has an singleton instance, you can access it using the `shared` field: let nimbus = MyNimbus.shared // Then you can access the features using: // MyNimbus.features.<featureNameCamelCase>.value(), for example: let feature = nimbus.features.homepage.value()
- To access a field in the feature:
// feature.<propertyNameCamelCase>, for example: assert(feature.sectionsEnabled[HomeScreenSection.topSites] == true)
- To access a feature's value:
⚠️ Breaking Changes ⚠️
-
Android only: Accessing drawables has changed to give access to the resource identifier. (#4801)
- Migration path to the old behaviour is:
let drawable: Drawable = MyNimbus.features.exampleFeature.demoDrawable
becomes:
let drawable: Drawable = MyNimbus.features.exampleFeature.demoDrawable.resource
General iOS
What's changed
- Moved
SwiftKeychainWrapper
from an external Swift Package to be bundled with FxA. This is due to issues Firefox iOS had with their dependency tree. (#4797) - Exposed all crates as targets for the XCFramework. (#4797)
v90.0.1 (2022-01-24)
Places
- Fixed an issue with previously consumed errors for invalid URLs were propagating to consumers and causing a crash
- Changed
bookmarks_get_all_with_url
andaccept_result
to accept a string instead of url
- Changed
v90.0.0 (2022-01-20)
Places
⚠️ Breaking Changes ⚠️
- Places has been completely UniFFI-ed
v89.0.0 (2022-01-20)
Supported Xcode Versions
- Reverting the supported Xcode version from 13.2.1 to 13.1.0 to circumvent the issues with Swift Package Manager in Xcode 13.2.1. (#4787)
Nimbus☁️🔬🔭
What's New
- Add
Text
andImage
support for the FML to access bundled resources (#4784).
Breaking Change
- The
NimbusInterface
now exposes acontext: Context
property.
v88.0.0 (2022-01-19)
Nimbus☁️🔬🔭
What's Changed
- The SDK is now tolerant to legacy experiment recipes that have both
feature
andfeatures
in their branches (SDK-1989)
General
⚠️ Breaking Changes ⚠️
- The bundled version of Glean has been updated to v43.0.2.
See the Glean Changelog for full details.
BREAKING CHANGE: Pass build info into initialize, which contains the build date.
A suitable instance is generated by
glean_parser
inGleanMetrics.GleanBuild.info
.
v87.3.0 (2022-01-11)
Supported Xcode Versions
- As of Jan 2022, support for Xcode version 13.2.1 is upcoming. After the associated PR is merged AS side and a release is cut, Fx-iOS will update on their side to fully support this Xcode version. See Fx-iOS's Wiki for details.
viaduct
What's New
- Add support for PATCH methods. (#4751)
Nimbus
What's new
- The Nimbus SDK now support application version targeting, where experiment creators can set
app_version|versionCompare({VERSION}) >= 0
and the experiments will only target users runningVERSION
or higher. (#4752)- The
versionCompare
transform will return a positive number ifapp_version
is greater thanVERSION
, a negative number ifapp_version
is less thanVERSION
and zero if they are equal VERSION
must be passed in as a string, for example:app_version|versionCompare('95.!') >= 0
will target users who are on any version starting with95
or above (95.0
,95.1
,95.2.3-beta
,96
etc..)
- The
v87.2.0 (2021-12-15)
✨✨ What's New ✨✨
⛅️🔭🔬 Nimbus
- Initial release of the Nimbus Feature Manifest Language tool (
nimbus-fml
).- This is a significant upgrade to the Variables API, adding code-generation to Kotlin and Experimenter compatible manifest JSON.
- RFC for language specification.
- This is the first release it is made available to client app's build processes.
- Build on CI ready for application build processes to download.
v87.1.0 (2021-12-02)
Logins
What's changed
- The
update()
andadd_or_update()
methods will log rather than return an error when trying to update a duplicate login (#4648)
Logins, Places, SyncManager
What's Changed
- These packages all use
parking_lot::Mutex
instead ofstd::Mutex
, meaning we should no longer see errors about mutexes being poisoned.
Push
What's fixed
- Fixes a bug where the subscriptions would fail because the server didn't return the
uaid
, this seems to happen only when the client sends request that include theuaid
.(#4697)
General
- We now use xcode 13.1 to generate our iOS build artifacts. (#4692)
v87.0.0 (2021-11-17)
Push
What's changed
- Push internally no longer uses the
error_support
dependency to simplify the code. It now directly defines exactly one error enum and exposes that touniffi
. This should have no implication to the consumer code (#4650)
Places
⚠️ Breaking Changes ⚠️
- Switched sync manager integration to use
registerWithSyncManager()
like the other components (#4627)
SyncManager
⚠️ Breaking Changes ⚠️
- Updated SyncManager to use UniFFI:
- SyncManager is now a class that gets instatiated rather than a singleton
- Added more SyncManagerException subclasses
- SyncParams.engines is now a SyncEngineSelection enum. SyncEngineSelection's variants are All, or Some(engine_list). This replaces the old code which used null to signify all engines.
- SyncResult.telemetry was replaced with SyncResult.telemetryJson.
- There were a handful of naming changes:
- SyncAuthInfo.tokenserverURL -> SyncAuthInfo.tokenserverUrl
- DeviceSettings.type -> DeviceSettings.kind
v86.2.0 (2021-11-02)
Push
What's Changed
- We've changed the database schema to avoid confusion about the state of subscriptions and
in particular, avoid
SQL: UNIQUE constraint failed: push_record.channel_id
errors reported in #4575. This is technically a breaking change as a dictionary described in the UDL changed, but in practice, none of our consumers used it, so we are not declaring it as breaking in this context.
Logins
What's New
- Added support for recording telemetry when the logins encryption key needs to be regenerated.
v86.1.0 (2021-10-27)
⛅️🔬🔭 Nimbus
What's New
- Rollouts: allows winning branch promotion and targeting rollouts of features. #4567.
- for both Android and iOS.
What's fixed
- Fixed a bug in iOS where the installation date would be set to start of EPOCH (#4597)
- Fixed a bug in Android where we were missing disqualification events after a global opt-out (#4606)
Push
- We've changed how the push database is opened, which should mean we now automatically handle some kinds of database corruption.
General
What's changed
- The bundled version of Glean has been updated to v42.0.1. See the Glean Changelog for full details. (Note there is a breaking change in Rust, but that doesn't impact consumers of Application Services)
v86.0.1 (2021-10-28)
Logins
What's Changed
- Downgraded the log level of some logs, so now they should not show up in Sentry.
v86.0.0 (2021-10-13)
Logins
⚠️ Breaking Changes ⚠️
- Rework logins to no longer use sqlcipher and instead use plain sqlite. This is a major change with a massive impact on all consumers of this component, all of whom are already aware of this change and have PRs in-progress. (#4549)
v85.4.2 (2021-10-20)
Nimbus
What's fixed
- Fixed a bug in iOS where the installation date would be set to start of EPOCH (#4597)
v85.4.1 (2021-10-08)
Logins
- Metrics for the logins sqlcipher migration are included to help "bootstrap" the metrics ready for the migration.
v85.4.0 (2021-10-05)
Sync
What's Changed
- Clients engine now checks for tombstones and any deserialisation errors when receiving a client record, and ignores it if either are present (#4504)
Nimbus
What's changed
- The DTO changed to remove the
probeSets
andenabled
fields that were previously unused. (#4482) - Nimbus will retry enrollment if it previously errored out on a previous enrollment.
v85.3.0 (2021-09-30)
Nimbus
What's new
- Nimbus can now target on
is_already_enrolled
. Which is true only if the user is already enrolled in experiment. (#4490) - Nimbus can now target on
days_since_install
anddays_since_update
. Which reflect the days since the user installed the application and the days since the user last updated the application. (#4491) - Android only: the observer method
onExperimentsApplied()
is now called every timeapplyPendingExperiments()
is called. This is to bring it in line with iOS.
v85.2.0 (2021-09-28)
Places
What's New
- Added Swift bindings for the following History Metadata APIs:
getHighlights
anddeleteHistoryMetadata
.
v85.1.0 (2021-09-27)
General
What's Changed
-
Rust toolchain has been bumped to 1.55 and minimum version bumped to 1.53 to comply with our Rust Policy
-
Xcode has been updated to version 13
- application-services noq uses the new build system by default
Nimbus
What's Changed
- 🐞🍏 Bugfix, iOS only — Increased visibility for
Dictionary
extensions when working withFeatureVariables
andenums
.
v85.0.0 (2021-09-22)
Places, Autofill, Webext-Storage
What's Changed
- Databases which are detected as being corrupt as they are opened will be deleted and re-created.
Nimbus
What's New
- #4455: For both iOS and Android: extra methods on
Variables
to support orderable items:getEnum
to coerce strings into Enums.get*List
,get*Map
to get lists and maps of all types.- Dictionary/Map extensions to map string keys to enum keys, and string values to enum values.
- Nimbus now supports multiple features on each branch. This was added with backward compatibility to ensure support for both schemas. (#4452)
⚠️ Breaking Changes ⚠️
- #4455: Android only: method
Variables.getVariables(key, transform)
,transform
changes type from(Variables) -> T
to(Variables) -> T?
.
v84.0.0 (2021-09-13)
Places
⚠️ Breaking Changes ⚠️
previewImageUrl
property was added toHistoryMetadata
(#4448)
What's changed
previewImageUrl
was added toVisitObservation
, allowing clients to make observations about the 'hero' image of the webpage (#4448)
Push
⚠️ Breaking Changes ⚠️
- The push component now uses
uniffi
! Here are the Kotlin breaking changes related to that:PushAPI
no longer exists, consumers should consumerPushManager
directlyPushError
becomesPushException
, and all specific errors are nowPushException
children, and can be retrieved usingPushException.{ExceptionName}
, for exampleStorageError
becomesPushException.StorageException
- The
PushManager.decrypt
function now returns aList<Byte>
, where it used to returnByteArray
, the consumer can do the conversion using.toByteArray()
- All references to
channelID
becomechannelId
(with a lowercased
)
v83.0.0 (2021-09-08)
Android
⚠️ Breaking Changes ⚠️
- Many error classes have been renamed from
FooError
orFooErrorException
to justFooException
, to be more in keeping with Java/Kotlin idioms.- This is due to UniFFi now replacing trailing 'Error' named classes to 'Exception'
Autofill
⚠️ Breaking Changes ⚠️
- The
Error
enum is now calledAutofillError
(AutofillException
in Kotlin) to avoid conflicts with builtin names.
Push
⚠️ Breaking Changes ⚠️
- The
unsubscribeAll
API will now return nothing as opposed to a boolean. The boolean was misleading as it only ever returned true. errors can be caught using exceptions. (#4418)
What's Changed
- The push
unsubscribe
API will no longer accept a nullchannel_id
value, a validchannel_id
must be presented, otherwise rust will panic and an error will be thrown to android. note that this is not a breaking change, since our hand-written Kotlin code already ensures that the function can only be called with a valid, non-empty, non-nullable string. (#4402)
Nimbus
What's Changed
DatabaseNotReady
exceptions are no longer reported to the error reporter on either Android or iOS. #4438NimbusErrorException
has been renamedNimbusException
. This internal API, so is not a breaking change.
v82.3.0 (2021-08-30)
What's New
- Changed how shared libraries are loaded to avoid an issue when both uniffi
and
Helpers.kt
wants to load the same library (#4412)
v82.2.0 (2021-08-19)
Push
What's changed
- The push component will now attempt to auto-recover from the server losing its UAID (#4347)
- The push component will return a new kotlin Error
UAIDNotRecognizedError
in cases where auto-recovering isn't possible (when subscribing) - Two other new errors were defined that were used to be reported under a generic error:
JSONDeserializeError
for errors in deserializationRequestError
for errors in sending a network request
- The push component will return a new kotlin Error
Nimbus
What's changed
- Nimbus on iOS will now post a notification when it's done fetching experiments, to match what it does when applying experiments. (#4378)
v82.1.0 (2021-07-30)
Places
What's New
- The Swift bindings for history metadata enums and structs now have public initializers, allowing them to be used properly from Swift. (#4371)
v82.0.0 (2021-07-29)
General
⚠️ Breaking Changes ⚠️
- The bundled version of Glean has been updated to v39.0.4, which includes a new API for recording extra event fields that have an explicit type.. (#4356)
What's New
- Added content signature and chain of trust verification features in
rc_crypto
, and updated NSS to version 3.66. (#4195)
Nimbus
What's Changed
- The Nimbus API now accepts application specific context as a part of its
appSettings
. The consumers get to define this context for targeting purposes. This allows different consumers to target on different fields without the SDK having to acknowledge all the fields. (#4359)
v81.0.1 (2021-07-19)
Tabs
⚠️ Breaking Changes ⚠️
Note: Though this is technically a breaking change, we do not expect any consumers to have upgraded to v81. Since this was a bug that was introduced in v81 we're treating it as a bugfix.
- Tab struct member last_used is now a i64
v81.0.0 (2021-07-13)
Tabs
⚠️ Breaking Changes ⚠️
- Tabs has been Uniffi-ed! (#4192)
- Manual calling of sync() is removed
- registerWithSyncManager() should be used instead
- Tab struct member lastUsed is now a U64
Nimbus
What's changed
- Fixed a bug where opt-in enrollments in experiments were not preserved when the application is restarted (#4324)
- The nimbus component now specifies the version of the server's api - currently V1. That was done to avoid redirects. (#4319)
Push
What's changed
- Fixed a bug where we don't delete a client's UAID locally when it's deleted on the server (#4325)
v80.0.1 (2021-07-06)
General
What's Changed
- Updated CircleCI xcode version to 12.5.1
v80.0.0 (2021-06-24)
fxa-client
⚠️ Breaking Changes ⚠️
- The old StateV1 persisted state schema is now removed. (#4218) Users on very old versions of this component will no longer be able to cleanly update to this version. Instead, the consumer code will recieve an error indicating that the schema was not correctly formated.
Nimbus
What's Changed
- Nimbus SDK now supports different branches having different Feature Configs (#4213)
Other
./libs/build-all.sh
now displays a more helpful error message when a file fails checksum integrity test.
v79.0.2 (2021-06-23)
- Removed hard crash for
migrateToPlaintextHeader
and allowed error to propagate for Logins
v79.0.1 (2021-06-15)
Logins
- Fixed a bug on iOS where
getDbSaltForKey
would incorrectly trigger a fatal error instead of propagating errors to the caller.
Dependencies
- The version of UniFFI used to generate Rust component bindings was updated to v0.12.0.
v79.0.0 (2021-06-09)
Logins
⚠️ Breaking changes ⚠️
Logins now Uniffi-ed! While this is a very large change internally, the externally visible changes are:
- The name and types of exceptions have changed - the base class for errors is LoginsStorageErrorException.
- The struct
ServerPassword
(Android) andLoginRecord
(iOS) is now namedLogin
with the formSubmitURL field now formSubmitUrl
[viaduct-reqwest]
What's Changed
- Update viaduct-reqwest to use reqwest 0.11. (#4146)
v78.0.0 (2021-06-01)
[places]
⚠️ Breaking Changes ⚠️
- History Metadata API shape changed to follow an observation pattern, similar to what is present for History. Shape of objects and related DB schema changed as well. See (#4123)
v77.0.2 (2021-05-31)
Autofill
- Fixed a failing assertion when handling local dupes during a sync (#4154)
v77.0.1 (2021-05-24)
CI-only to force iOS artifact build, 77.0.0 is not good for iOS
- add --force flag when installing swift-protobuf via homebrew (#4137)
v77.0.0 (2021-05-24)
Logins
- Split the DB from the sync engine (#4129)
- Rename LoginStore to LoginsSyncEngine (#4124)
Nimbus ☁️🔬
What's New
- Both Android and iOS gain a
nimbus.getVariables(featureId: String)
and a new wrapper around JSON data coming straight from Remote Settings. - Application features can only have a maximum of one experiment running at a time.
- Enable consuming applications to change the server collection being used. (#4076)
What's Changed
- Add manual feature exposure recording (#4120)
- Android and iOS
Branch
objects no longer have access to aFeatureConfig
object. - Localized strings and images are provided by the app, but usable from nimbus. (#4133)
⚠️ Breaking changes ⚠️
- Migrate the experiment database from version 1 to version 2 on first run .(#4078)
- Various kinds of incorrectly specified feature and featureId related fields will be detected, and any related experiments & enrollments will be discarded.
- Experiments & enrollments will also be discarded if they are missing other required fields (eg schemaVersion).
- If there is an error during the database upgrade, the database will be wiped, since losing existing enrollments is still less bad than having the database in an unknown inconsistent state.
v76.0.1 (2021-05-18)
Autofill
Fixed an error migrating from version 1 to version 2 of the database.
v76.0.0 (2021-05-12)
History Metadata Storage
- Introduced a new experimental metadata storage API, part of libplaces.
Sync Manager
- Removed support for the wipeAll command (#4006)
Autofill
What's Changed
- Added support to scrub encrypted data to handle lost/corrupted client keys. Scrubbed data will be replaced with remote data on the next sync.
Nimbus
- Added bucket and collections to
NimbusServerSettings
, with default values. - Added
getAvailableExperiments()
method exposed byNimbusClient
. - At most one local experiment will be enrolled for any given
featureId
, and to support this, the database can now have a NotEnrolledReason::FeatureConflict value.
⚠️ Breaking changes ⚠️
- Moved the
Nimbus
class and its test class from Android Components into this repository. Existing integrations should pass a delegate in to provide Nimbus with a thread to do I/O and networking on, and an Obsevrer. Fixed in the complementary android-components#10144
v75.2.0 (2021-04-20)
Autofill
What's Changed
get_address()
andget_credit_card()
now throw a NoSuchRecord error instead of SqlError when the GUID is not found- The main credit-cards table is dropped and recreated to ensure already existing databases will continue to work.
v75.1.0 (2021-04-13)
Nimbus SDK
What's changed
- add a
get_available_experiments()
method to enable QA tooling. This should not be used for user-facing user-interfaces.
v75.0.1 (2021-04-06)
Nimbus SDK
What's changed
- Make
channel
targeting comparision case-insensitive. (#4009)
v75.0.0 (2021-03-29)
v74.0.1 (2021-03-19)
General
- Revert a Rust toolchain config change that turned out to cause build issues in our release pipeline.
v74.0.0 (2021-03-18)
General
What's Changed
- The bundled version of Glean has been updated to v36.0.0.
- The bundled version of Nimbus has been updated to v0.10.0.
Nimbus SDK
⚠️ Breaking changes ⚠️
- The new Nimbus version 0.10.0 includes new required fields
app_name
andchannel
in theAppContext
struct passed intoinitialize
.
v73.0.2 (2021-03-16)
- This is a deliberately empty release, designed to help test some downstream automation that picks up new appservices releases.
v73.0.1 (2021-03-10)
Android
- The
-forUnitTest
build no longer includes code compiled for Windows, meaning that it is no longer possible to run appservices Kotlin unit tests on Windows. We hope this will be a temporary measure while we resolve some build issues.
v73.0.0 (2021-03-10)
General
- The bundled version of the Nimbus SDK has been updated to v0.9.0.
- The top-level Rust workspace now builds with Rust 1.50
- The top-level Rust workspace is now stapled to Rust 1.50, so all developers will build with 1.50, as will the continuous integration for this repo.
iOS
- The Nimbus SDK is now available as part of the
MozillaAppServices
Swift module.
FxA Client
⚠️ Breaking changes ⚠️
- The Kotlin and Swift bindings are now generated automatically using UniFFI. As a result many small details of the API surface have changed, such as some classes changing names to be consistent between Rust, Kotlin and Swift. (#3876)
v72.1.0 (2021-02-25)
General
What's Changed
- This release fixes an "unsatisfied link error" problem with autofill and nimbus, stemming from a misconfiguration in the Android build setup.
v72.0.0 (2021-02-25)
General
What's Changed
- The bundled version of the Nimbus SDK has been updated to v0.8.2.
Autofill
⚠️ Breaking changes ⚠️
- The autofill Kotlin package as been renamed from
org.mozilla.appservices.autofill
tomozilla.appservices.autofill
, for consistency with other components.
v71.0.0 (2021-02-18)
General
What's Changed
- The bundled version of the Nimbus SDK has been updated to v0.8.1.
v70.0.0 (2021-02-04)
General
What's Changed
- The bundled version of Glean has been updated to v34.0.0.
- The bundled version of the Nimbus SDK has been updated to v0.7.2.
Autofill
⚠️ Breaking changes ⚠️
- The
NewCreditCardFields
record is now calledUpdatableCreditCardFields
. - The
NewAddressFields
record is now calledUpdatableAddressFields
.
What's Changed
- The
CreditCard
andAddress
records now exposes additional metadata around timestampes. - Infrastructure for syncing incoming address records has been added.
v69.0.0 (2021-01-28)
General
What's Changed
- Updated nimbus-sdk to 0.7.1
- Updated Android Components to 71.0.0
iOS
What's Changed
- The
MozillaAppServices.framework
artifact now contains a dynamically-linked library rather than a static library.
v68.1.0 (2020-12-17)
General
What's Changed
- The bundled version of Nimbus SDK has been updated to v0.6.4.
- The internal traits used by
sync15
have been renamed for consistency and clarity (and the README has been updated with docs to help explain them). - The bundled version of Glean has been updated to v33.10.3.
v68.0.0 (2020-12-08)
General
⚠️ Breaking changes ⚠️
- The bundled version of Nimbus SDK has been updated to v0.6.3, which includes
the following breaking changes:
- Removed
NimbusClient.resetEnrollment
. NimbusClient.{updateExperiments, optInWithBranch, optOut, setGlobalUserParticipation}
now return a list of telemetry events. Consumers should forward these events to their telemetry system (e.g. via Glean).- Removed implicit fetch of experiments on first use of the database. Consumers now must call update_experiments explicitly in order to fetch experiments from the Remote Settings server.
- Removed
What's Changed
- The bundled version of Glean has been updated to v33.5.0.
- Various third-party dependencies have been updated to their latest versions.
v67.2.0 (2020-12-10)
Nimbus SDK
What's Changed
- The bundled version of Nimbus SDK has been updated to v0.5.2.
v67.1.0 (2020-11-18)
What's Changed
- The bundled version of Glean has been updated to v33.4.0. (as part of #3724)
Autofill
What's New
The autofill component has a first cut at Kotlin bindings and is now bundled in the full megazord.
v67.0.0 (2020-11-10)
General
⚠️ Breaking changes ⚠️
- The custom "Lockbox Megazord" package (
org.mozilla.appservices:lockbox-megazord
) has been removed. Existing consumers of this package who wish to update to the latest release of application-services should migrate to using the defaultappservices:full-megazord
package, or contact the development team to discuss an alternate approach. (#3700)
What's Changed
- The version of Rust used to compile our components has been pinned to v1.43.0 in order to match the version of Rust used in mozilla-central. Changes that do not compile under this version of Rust will not be accepted. (#3702)
iOS
What's Changed
- The bundled version of Glean has been updated to v33.1.2. (as part of #3701)
Android
What's Changed
- This release comes with a nontrivial increase in the compiled code size of the
org.mozilla.appservices:full-megazord
package, adding approximately 1M per platform thanks to the addition of the Nimbus SDK component. (#3701) - Several core gradle dependencies have been updated, including gradle itself (now v6.5) and the android gradle plugin (now v4.0.1). (#3701)
Nimbus SDK
What's New
- The first version of the Nimbus Experimentation SDK is now available, via the
org.mozilla.appservices:nimbus
package. More details can be found in the nimbus-sdk repo. (#3701)
FxA Client
What's Fixed
- We no longer discard the final path component from self-hosted sync tokenserver URLs. (#3694)
Autofill
What's Changed
- We added the
touch_address
andtouch_credit_card
store functions and refactored the component. (#3691)
Push
What's Changed
- Attempts to update the device push token are now rate-limited. (#3673)
WebExtension Storage
What's Fixed
- Syncing of incoming tombstone records has been fixed; previously the presence of an incoming tombstone could cause the sync to fail. (#3668)
v66.0.0 (2020-10-28)
Breaking changes
- Android: Updated the
getTopFrecentSiteInfos
API to specify a frecency threshold parameter for the fetched top frecent sites inPlacesReaderConnection
. (#3635)
v65.0.0 (2020-10-19)
Android
What's changed
- Upgraded the JNA dependency version to 5.6.0. (#3647)
Autofill
What's changed
- Updated the autofill-utils example app to include API calls for addresses. (#3605)
- Added API calls for credit cards. (#3615)
v64.0.0 (2020-09-24)
iOS
⚠️ Breaking changes ⚠️
- The
MozillaAppServices.framework
is now built using Xcode 12, so consumers will need update their own build accordingly. (#3586)
What's changed
- The bundled version of glean has been updated to v32.4.0. (#3590) ()
FxA Client
What's changed
- Added a circuit-breaker to the
check_authorization_status
method. In specific circumstances, it was in possible to trigger a failure-recovery infinite loop, which will now error out after a certain now of retries. (#3585)
Autofill
What's changed
- Added a basic API and database layer for the autofill component. (#3582)
Places
What's changed
- Removed the duplicate Timestamp logic from Places, which now exists in Support, and updated the references. (#3593)
- Fixed a bug in bookmarks reconciliation that could lead to deleted items being resurrected in some circumstances. (#3510, Bug 1635859)
Support Code
What's new
- The
rc_crypto
crate now supports ECDSA P384-SHA384 signature verification. (#3557)
v63.0.0 (2020-09-10)
iOS
⚠️ Breaking changes ⚠️
- The
MozillaAppServices.framework
build now includes Glean. Applications that were previously consuming Glean via its standalone framework and usingimport Glean
will instead need toimport MozillaAppServices
. (#3554)
What's changed
- The version of xcode used to build
MozillaAppServices.framework
has been updated to v11.7. (#3556) - When using a custom sync tokenserver URL, the
/1.0/sync/1.5
suffix will be stripped if present. This should simplify setup for self-hosters who are accustomed to supplying the tokenserver URL in this form on other platforms. (#3555)
Android
What's changed
android-components
has been updated to 56.0.0 (previously 47.0.0) (#3538)
Places
What's fixed
- Fixed a bug where sync could ask places to recalculate the frecency of iitems that are not bookmarks, which would fail and prevent the sync from completing. (#3567)
What's changed
- If the database somehow contains bookmarks with an invalid URL, they will now be ignored on read; previously invalid URLs would trigger an error and crash. (#3537)
Push
What's fixed
- Messages using the legacy
aesgcm
encryption method will how have padding bytes correctly stripped; previously the padding bytes would be returned as part of the message and could cause message-parsing errors in consuming code. (#3569)
v62.1.0 (2020-08-21)
Extension Storage
What's fixed
- Do not check total bytes quota on storage.sync.remote operations (Bug 1656947)
FxA Client
What's new
-
Send-tab metrics are recorded. A new function,
fxa_gather_telemetry
on the account object (exposed asaccount.gatherTelemetry()
to Kotlin) which returns a string of JSON.This JSON might grow to support non-sendtab telemetry in the future, but in this change it has:
commands_sent
, an array of objects, each withflow_id
andstream_id
string values.commands_received
, an array of objects, each withflow_id
,stream_id
andreason
string values.
Places
What's new
- Exclude download, redirects, reload, embed and framed link visit type from the
get_top_frecent_site_infos
query. (#3505)
v62.0.0 (2020-07-13)
FxA Client
⚠️ Breaking changes ⚠️
- Adds support for
entrypoint
in oauth flow APIs: consumers ofbeginOAuthFlow
andbeginPairingFlow
(beginAuthentication
andbeginPairingAuthentication
in ios) are now required to pass anentrypoint
argument that would be used for metrics. This puts thebeginOAuthFlow
andbeginPairingFlow
APIs inline with other existing APIs, likegetManageAccountUrl
. (#3265) - Changes the
authorizeOAuthCode
API to now accept anAuthorizationParams
object instead of the individual parameters. TheAuthorizationParams
also includes optionalAuthorizationPKCEParams
that contain thecodeChallenge
,codeChallengeMethod
.AuthorizationParams
also includes an optionalkeysJwk
for requesting keys (#3264)
What's new
- Consumers can now optionally include parameters for metrics in
beginOAuthFlow
andbeginPairingFlow
(beginAuthentication
andbeginPairingAuthentication
in ios). Those parameters can be passed in using aMetricsParams
struct/class.MetricsParams
is defined in both the Kotlin and Swift bindings. The parameters are the following (#3328):- flow_id
- flow_begin_time
- device_id
- utm_source
- utm_content
- utm_medium
- utm_term
- utm_campaign
- entrypoint_experiment
- entrypoint_variation
Logins
What's fixed
- Fixed a bug where attempting to edit a login with an empty
form_submit_url
would incorrectly reject the entry as invalid (#3331).
Tabs
What's new
- Tab records now have an explicit TTL set when storing on the server, to match the behaviour of Firefox Desktop clients (#3322).
v61.0.12 (2020-08-07)
General
- This release only exists to correct issues that occured when publishing a v61.0.11, which failed to produce an artifact because of a warning which occured during the build process. (It contains a small number of additional cherry-picked patches which correct these warnings).
v61.0.11 (2020-08-07)
FxA Client
What's new
-
Send-tab metrics are recorded. A new function,
fxa_gather_telemetry
on the account object (exposed asaccount.gatherTelemetry()
to Kotlin) which returns a string of JSON.This JSON might grow to support non-sendtab telemetry in the future, but in this change it has:
commands_sent
, an array of objects, each withflow_id
andstream_id
string values.commands_received
, an array of objects, each withflow_id
,stream_id
andreason
string values.
v61.0.10 (2020-07-15)
General
- This release exists to correct an error with the publishing process that happened for v61.0.9. As a result, it's changelog is repeated below and is present in the link above.
Logins
- Empty strings are now correctly handled in login validation. (#3331).
v61.0.9 (2020-07-15)
Logins
- Empty strings are now correctly handled in login validation. (#3331).
v61.0.8 (2020-07-15)
General
- The logins and places metrics have been renewed until early 2021. (#3290).
v61.0.7 (2020-06-29)
General
- The default branch has been renamed from
master
tomain
v61.0.6 (2020-06-24)
General
- Adds cargo aliases to download and use
asdev
(#3218)
RustLog
- Network errors should come through as warnings and not errors. (#3254).
v61.0.5 (2020-06-23)
- No content release: we have switched to Taskgraph. (#3168)
v61.0.4 (2020-06-18)
- Fix an issue where a node reassignment or signing out and signing back in wouldn't clear the locally stored last sync time for engines (#3150, PR #3241).
v61.0.3 (2020-06-17)
Tabs
- Fix an issue which we believe is causing numerous failures deserializing protobufs (#3214)
v61.0.2 (2020-06-16)
FxA Client
- Short circuit requests if server requested a backoff and time period has not passed. (#3219)
v61.0.1 (2020-06-16)
General
- Attempt to fix some build tooling issues with the previous release; no user-visible changes. (#3245)
v61.0.0 (2020-06-15)
General
- Remove the node.js integration tests helper and removes node from the circleci environment. (#3187)
- Put
backtrace
behind a cargo feature. (#3213) - Move sqlite dependency down from rc_cryto to nss_sys. (#3198)
- Adds jwe encryption in scoped_keys. (#3195)
- Adds an implementation for pbkdf2. (#3193)
- Fix bug to correctly return the given defaults when the storageArea's
get()
method is used with an empty store (bug 1645598). (#3236) - Fixed a sync bug where the application not providing the "persisted state" would mean the declined list was handled incorrectly (#3205)
Android
- From now on the project uses the Android SDK manager side-by-side NDK. (#3222)
- Download the new NDK by running
./verify-android-environment.sh
in thelibs
directory.- Alternatively, you can download the NDK in Android Studio by going in Tools > SDK Manager > SDK Tools > NDK (check Show Package Details) and check
21.3.6528147
.
- Alternatively, you can download the NDK in Android Studio by going in Tools > SDK Manager > SDK Tools > NDK (check Show Package Details) and check
- The
ANDROID_NDK_ROOT
,ANDROID_NDK_HOME
environment variables (and the directory they point to) can be removed.
- Download the new NDK by running
v60.0.0 (2020-06-01)
General
-
Remove
failure
from the sync_tests and replace it withanyhow
. (#3188) -
Adds an alias for generating protobuf files, you can now use
cargo regen-protobufs
to generate them. (#3178) -
Replaced
failure
withanyhow
andthiserror
. (#3132) -
Android: Added
getTopFrecentSiteInfos
API to retrieve a list of the top frecent sites inPlacesReaderConnection
. (#2163)
FxA Client
What's new
- Additional special case for China FxA in
getPairingAuthorityURL
. (#3160) - Silently ignore push messages for unrecognized commands, rather than reporting an error. (#3177)
v0.59.1 (2021-01-26)
General
- Our iOS framework binaries are now built using XCode 11.7. (#3833)
v0.59.0 (2020-05-08)
Viaduct
Breaking changes
- The
include_cookies
setting is not supported anymore (wasfalse
by default). (#3096)
FxA Client
- Added option boolean argument
ignoreCache
to ignore caching forgetDevices
. (#3066)
⚠️ Breaking changes ⚠️
- iOS: Renamed
fetchDevices(forceRefresh)
togetDevices(ignoreCache)
to establish parity with Android. (#3066) - iOS: Renamed argument of
fetchProfile
fromforceRefresh
toignoreCache
. (#3066)
v0.58.3 (2020-05-06)
v0.58.2 (2020-04-29)
General
- Android: An Android 5 and 6 bug related to protobufs is now fixed. (#3054)
v0.58.1 (2020-04-24)
General
- Android: A bug in the protobuf library that made the previous version unusable has been fixed. (#3033)
v0.58.0 (2020-04-22)
General
- Android: Gradle wrapper version upgraded to
6.3
, Android Gradle Plugin version upgraded to3.6.0
. (#2917) - Android: Upgraded NDK from r20 to r21. (#2985)
- iOS: Xcode version changed to 11.4.1 from 11.4.0. (#2996)
FxA Client
- iOS:
refreshProfile
now takes an optional boolean argumentforceRefresh
to force a network request to be made in every case (#3000) - Added an optional
ttl
parameter togetAccessToken
to limit the lifetime of the token. (#2896)
v0.57.0 (2020-03-31)
General
⚠️ Breaking changes ⚠️
- iOS: The
reqwest
network stack will not be initialized automatically anymore. Please callViaduct.shared.useReqwestBackend()
as soon as possible before using the framework. (#2880)
Logins
What's New
- A new function was added to return a list of duplicate logins, ignoring username. (#2542)
v0.56.0 (2020-03-26)
General
What's changed
- iOS: Xcode version changed to 11.4.0 from 11.3.1.
Logins
⚠️ Breaking changes ⚠️
- Android:
MemoryLoginsStorage
has been removed. Use DatabaseLoginsStorage(":memory:") instead. (#2833).
Libs
What's changed
- The project now builds with version 4.3.0 of SQLCipher instead of a fork of version 4.2.0. Newest version has NSS crypto backend. (#2822).
FxA Client
Breaking changes
Server.dev
is nowServer.stage
to reflect better the FxA server instance it points to. (#2830).
v0.55.3 (2020-04-16)
Places
- Fix table name for history migration
v0.55.2 (2020-04-14)
Places
- Android: Fennec's bookmarks db version supported by the migrations is now the same as that of history
v0.55.1 (2020-04-14)
Places
- Android: Fennec migrations for history and bookmarks now support Fennec database versions 34 and 23, respectively. (#2949)
v0.55.0 (2020-03-16)
Places
⚠️ Breaking changes ⚠️
- Android:
PlacesConnection.deletePlace
has been renamed todeleteVisitsFor
, to clarify that it might not actually delete the page if it's bookmarked, or has a keyword or tags (#2695).
What's fixed
history::delete_visits_for
(formerlydelete_place_by_guid
) now correctly deletes all visits from a page if it has foreign key references, like bookmarks, keywords, or tags. Previously, this would cause a constraint violation (#2695).
FxA Client
What's new
- Added
getPairingAuthorityURL
method returning the URL the user should navigate to on their Desktop computer to perform a pairing flow. (#2815)
Breaking changes
-
In order to account better for self-hosted FxA/Sync backends, the FxAConfig objects have been reworked. (#2801)
- iOS:
FxAConfig.release(contentURL, clientID)
is nowFxAConfig(server: .release, contentURL, clientID)
. - Android:
Config.release(contentURL, clientID)
is nowConfig(Server.RELEASE, contentURL, clientID)
. - These constructors also take a new
tokenServerUrlOverride
optional 4th parameter that overrides the token server URL.
- iOS:
-
iOS:
FxAccountManager
'sgetManageAccountURL
andgetTokenServerEndpointURL
methods now run on background thread and return their results in a callback function. (#2813)
v0.54.1 (2020-03-12)
Sync
What's fixed
- Engine disabled/enabled state changes now work again after a regression in 0.53.0.
Android
What's changed
- There is now preliminary support for an "autoPublish" local-development workflow similar to the one used when working with Fenix and android-components; see this howto guide for details.
Places
What's fixed
- Improve handling of bookmark search keywords. Keywords are now imported correctly from Fennec, and signing out of Sync in Firefox for iOS no longer loses keywords (#2501).
v0.54.0 (2020-03-10)
General
What's changed
- iOS: Xcode version changed to 11.3.1 from 11.3.0.
Rust
What's New
- Sourcing
libs/bootstrap-desktop.sh
is not a thing anymore. Please run./libs/verify-desktop-environment.sh
at least once instead. (#2769)
Push
Breaking changes
- Android: The
PushManager.verifyConnection
now returns aList<PushSubscriptionChanged>
that contain the channel ID and scope of the subscriptions that have expired. (#2632) Seeonpushsubscriptionchange
events on how this change can be propagated to notify web content.
Places
What's fixed
- Improve handling of tags for bookmarks with the same URL. These bookmarks no longer cause syncs to fail (#2750), and bookmarks with duplicate or mismatched tags are reuploaded (#2774).
Breaking changes
- Synced items with unknown types now fail the sync, instead of being silently ignored. We'll monitor this error in telemetry, and add logic to delete these items on the server if needed (#2780).
v0.53.2 (2020-03-05)
FxA Client
What's fixed
- iOS:
FxAccountManager.logout
will now properly clear the persisted account state. (#2755) - iOS:
FxAccountManager.getAccessToken
now runs in a background thread. (#2755)
v0.53.1 (2020-03-05)
Android
What's changed
- A megazord loading failure will throw as soon as possible rather than at call time. (#2739)
iOS
What's New
- Developers can now run
./libs/verify-ios-environment.sh
to ensure their machine is ready to build the iOS Xcode project smoothly. (#2737)
FxA Client
What's new
- Added
FxAConfig.china
helper function to use FxA/Sync chinese servers. (#2736) - iOS: Added
FxAccountManager.handlePasswordChanged
method that should be called after... a password change! (#2744)
v0.53.0 (2020-02-27)
Megazords
What's changed
-
The fenix megazord is no more! (#2565)
The full megazord should be used instead. The two are functionally identical, however this should reduce the configuration surface required to use the application-services code.
An example PR showing the changes typically required for this is available here: https://github.com/MozillaReality/FirefoxReality/pull/2867. Please feel free to reach out if you have any issues.
Sync
What's fixed
-
Rust sync code is now more robust in the face of corrupt meta/global records. (#2688)
-
In v0.52.0 we reported some network related fixes. We lied. This time we promise they are actually fixed. (#2616, #2617 #2623)
What's changed
- Fewer updates to the 'clients' collection will be made. (#2624)
FxA Client
What's changed
- The
ensureCapabilities
method will not perform any network requests if the given capabilities are already registered with the server. (#2681)
What's fixed
- Ensure an offline migration recovery succeeding does not happen multiple times. (#2706)
Places
What's fixed
storage::history::apply_observation
andstorage::bookmarks::update_bookmark
now flush pending origin and frecency updates. This fixes a bug where origins might be flushed at surprising times, like right after clearing history. (#2693)
Push
What's fixed
PushManager.dispatchInfoForChid
does not throwKotlinNullPointerException
anymore if the method returned nothing. (#2703)
v0.52.0 (2020-02-19)
Sync
What's changed
-
Better caching of the tokenserver token and info/configuration response. (#2616)
-
Less network requests will be made in the case nothing has changed on the server. (#2623)
Places
What's changed
-
Added a new field
reasons
which is aList
ofSearchResultReason
s inSearchResult
. (#2564)
Breaking changes
- Android: The
PlacesWriterConnection.resetHistorySyncMetadata
andPlacesWriterConnection.resetBookmarkSyncMetadata
methods have been moved to thePlacesApi
class. (#2668) - iOS: The
PlacesWriteConnection.resetHistorySyncMetadata
method has been moved to thePlacesAPI
class. (#2668)
FxA Client
What's New
-
Android:
FirefoxAccount.handlePushMessage
now handles all possible FxA push payloads and will return newAccountEvent
s (#2522):.ProfileUpdated
which should be handled by fetching the newest profile..AccountAuthStateChanged
should be handled by checking if the authentication state is still valid..AccountDestroyed
should be handled by removing the account information (no need to callFirefoxAccount.disconnect
) from the device..DeviceConnected
can be handled by showing a " is connected to this account" notification..DeviceDisconnected
should be handled by showing a "re-auth" state to the user ifisLocalDevice
is true. There is no need to callFirefoxAccount.disconnect
as it will fail.
-
iOS: Added
FxAccountManager.getSessionToken
. Note that you should request the.session
scope in the constructor for this to work properly. (#2638) -
iOS: Added
FxAccountManager.getManageAccountURL
. (#2658) -
iOS: Added
FxAccountManager.getTokenServerEndpointURL
. (#2658) -
iOS: Added migration methods to
FxAccountManager
(#2637):authenticateViaMigration
will try to authenticate an account without any user interaction using previously stored account information.accountMigrationInFlight
andretryMigration
should be used in conjunction to handle cases where the migration could not be completed but is still recoverable.
-
Added a
deviceId
property to theAccountEvent.deviceDisconnected
enum case. (#2645) -
Added
context=oauth_webchannel_v1
ingetManageDevicesURL
methods for WebChannel redirect URLs. (#2658)
Breaking changes
-
Android: A few changes were made in order to decouple device commands from "account events" (#2522):
- The
AccountEvent
enum has been refactored:.TabReceived
has been replaced by.IncomingDeviceCommand(IncomingDeviceCommand)
,IncomingDeviceCommand
itself is another enum that containsTabReceived
. FirefoxAccount.pollDeviceCommands
now returns an array ofIncomingDeviceCommand
.
- The
-
iOS: The
FxaAccountManager
class has been renamed toFxAccountManager
. (#2637) -
iOS: The
FxAccountManager
default applications scopes do not include.oldSync
anymore. (#2638) -
iOS:
FxaAccountManager.getTokenServerEndpointURL
now returns the full token server URL such ashttps://token.services.mozilla.com/1.0/sync/1.5
. (#2676)
Push
What's New
- Android: Exposed
GeneralError
to the Kotlin layer.
v0.51.1 (2020-02-07)
Android
What's new
- Updated android gradle plugin version to 3.5.3 (#2600)
v0.51.0 (2020-02-06)
FxA Client
What's New
FirefoxAccount
is now deprecated (#2454).- Introducing
FxAccountManager
which provides a higher-level interface to Firefox Accounts. Among other things, this class handles (and can recover from) authentication errors, exposes device-related account methods, handles its own keychain storage and fires observer notifications for important account events (#2454).
Breaking changes
FirefoxAccount.fromJSON(json: String)
has been replaced by theFirefoxAccount(fromJsonState: String)
constructor (#2454).
v0.50.2 (2020-02-06)
What's changed
- Re-releasing to fix misconfigured build options in v0.50.1.
v0.50.1 (2020-02-06)
FxA Client
What's changed
- Fixed a potentially-unsafe use of a boolean in the FFI interface for
migrateFromSessionToken
. (#2592).
v0.50.0 (2020-02-05)
FxA Client
What's changed
- Android:
migrateFromSessionToken
now correctly persists in-flight migration state even when throwing an error (#2586).
Breaking changes
isInMigrationState
now returns an enum rather than a boolean, to indicate whether the migration will re-use or duplicate the underlying sessionToken. (#2586)
v0.49.0 (2020-02-03)
FxA Client
What's New
- Android:
migrateFromSessionToken
now handles offline use cases. It caches the data the consumers originally provide. If there's no network connectivity then the migration could be retried using the newretryMigrateFromSessionToken
method. Consumers may also use theisInMigrationState
method to check if there's a migration in progress. (#2492)
Breaking changes
migrateFromSessionToken
now returns a metrics JSON object if the migration succeeded. (#2492)
v0.48.3 (2020-01-23)
Places
What's new
- The Dogear library for merging synced bookmarks has been updated to the latest version. (#2469)
- Places now exposes
resetHistorySyncMetadata
andresetBookmarkSyncMetadata
methods, which cleans up all Sync state, including tracking flags and change counters. These methods should be called by consumers when the user signs out, to avoid tracking changes and causing unexpected behavior the next time they sign in. (#2447)
What's changed
- Ensure we do the right thing with timestamps, tags and keywords on first sync after migration. (#2472)
- Don't count Fennec bookmarks we know we don't import in success metrics. (#2488)
- Don't fail if the Fennec database has negative positions when importing top-sites (#2462)
- Fix issue with bookmark tags when syncing (#2480)
- Quality and usage metrics are recorded (ditto for logins)
- Fix some swift warnings (#2491)
Breaking Changes
- The Android bindings now collect some basic performance and quality metrics via Glean. Applications that submit telemetry via Glean must request a data review for these metrics before integrating the places component. See the component README.md for more details. (#2431)
- iOS only:
PlacesAPI.resetBookmarksMetadata
has been renamed toPlacesAPI.resetBookmarkSyncMetadata
, for consistency with history. The functionality remains the same.
v0.48.2 (2020-01-13)
FxA Client
What's changed
- Fixed a bug in deserializing FxA objects from JSON when the new
introspection_endpoint
field is not present.
v0.48.1 (2020-01-08)
General
- Revert NSS to version 3.46.
Logins
What's changed
- The error strings returned by
LoginsStorage.importLogins
as part of the migration metrics bundle, no longer include potentially-sensitive information such as guids.
v0.48.0 (2020-01-03)
Logins
Breaking Changes
-
LoginsStorage.importLogins
returns logins migration metrics as JSON object. (#2382) -
iOS only: Added a migration path for apps to convert the encrypted database headers to plaintext(#2100).
New databases must be opened usingLoginsStorage.unlockWithKeyAndSalt
instead ofLoginsStorage.unlock
which is now deprecated. To migrate current users databases, it is required to callLoginsStorage.migrateToPlaintextHeader
before opening the database. This new method requires a salt. The salt persistence is now the responsibility of the application, which should be stored alongside the encryption key. For an existing database, the salt can be obtained usingLoginsStorage.getDbSaltForKey
.
What's new
- Android: Added ability to rekey the database via
rekeyDatabase
. [#2228]
FxA Client
Breaking Changes
- Android:
migrateFromSessionToken
now reuses the existing 'sessionToken' instead of creating a new session token.
What's new
- Android: New method
copyFromSessionToken
will create a new 'sessionToken' state, this is whatmigrateFromSessionToken
used to do, before this release.
Places
Breaking Changes
-
PlacesApi.importVisitsFromFennec
return history migration metrics as JSON object. (#2414)
-
PlacesApi.importBookmarksFromFennec
no longer returns pinned bookmarks, it now returns migration metrics as JSON object. (#2427)
What's new
- Android: New method
PlacesApi.importPinnedSitesFromFennec
returns a list of pinned bookmarks from Fennec. (#2427)
v0.47.0 (2019-12-18)
General
- Updated NSS to version 3.48. (#2379)
- Our iOS framework is now built using Swift version 5.0. (#2383)
- Our iOS framework binaries are now built using XCode 11.3. (#2383)
Logins
Breaking Changes
LoginsStorage.getByHostname
has been removed. (#2152)
What's new
LoginsStorage.getByBaseDomain
has been added. (#2152)- Removed hard deletion of
SyncStatus::New
records indelete
andwipe
logins database functions. (#2362) - Android: The
MemoryLoginsStorage
class has been deprecated, because it behaviour has already started to diverge from that ofDatabaseLoginStorage
. To replace previous uses of this class in tests, please either explicitly mock theLoginsStorage
interface or use aDatabaseLoginStorage
with a tempfile or":memory:"
as thedbPath
argument. (#2389)
v0.46.0 (2019-12-12)
Logins
Breaking Changes
- The Android bindings now collect some basic performance and quality metrics via Glean. Applications that submit telemetry via Glean must request a data review for these metrics before integrating the logins component. See the component README.md for more details. (#2225)
username
,usernameField
, andpasswordField
are no longer serialized asnull
in the case where they are empty strings. (#2252)- Android:
ServerPassword
fieldsusername
,usernameField
, andpasswordField
are now required fields --null
is not acceptable, but empty strings are OK. - iOS:
LoginRecord
fieldsusername
,usernameField
andpasswordField
are no longer nullable.
- Android:
v0.45.1 (2019-12-10)
This release exists only to rectify a publishing error that occurred with v0.45.0.
v0.45.0 (2019-12-10)
Places
What's new
- Added
PlacesReaderConnection.getVisitPageWithBound
which performs faster history visits pagination by first skipping directly to abound
timestamp and then skipping overoffset
items frombound
. (#1019)
Push
Breaking Changes
PushManager.decrypt
will now throw aRecordNotFoundError
exception instead ofStorageError
if a matching subscription could not be found. (#2355)
FxA Client
What's new
FirefoxAccount.checkAuthorizationStatus
will check the status of the currently stored refresh token. (#2332)
Logins
Breaking Changes
- Login records with a
httpRealm
attribute will now have theirusernameField
andpasswordField
properties silently cleared, to help ensure data consistency. (#2158)
What's new
- Added invalid character checks from Desktop to
LoginsStorage.ensureValid
and introducedINVALID_LOGIN_ILLEGAL_FIELD_VALUE
error. (#2262)
Sync Manager
Breaking Changes
- When asked to sync all engines, SyncManager will now sync all engines for which a handle has been set. Previously it would sync all known engines, panicking if a handle had not been set for some engine. While technically a breaking change, we expect that the new behaviour is almost certainly what consuming applications actually want in practice. (#2313)
v0.44.0 (2019-11-21)
Logins
What's new
- Added ability to prevent insertion/updates from creating dupes via
LoginsStorage.ensureValid
. (#2101)
Tabs
Breaking Changes
- The
RemoteTabsProvider
class constructor does not take thelocalDeviceId
argument anymore. - The
RemoteTabsProvider.sync
method takes alocalDeviceId
argument.
v0.43.1 (2019-11-18)
This release exists only to rectify a publishing error that occurred with v0.43.0.
v0.43.0 (2019-11-18)
This release exists only to rectify a publishing error that occurred with v0.42.4.
v0.42.4 (2019-11-18)
General
What's New
- Synced Tabs is available as an Android component in the
org.mozilla.appservices.experimental.remotetabs
maven package.
Push Client
What's new
PushManager.dispatchInfoForChid(channelID)
now also returns theendpoint
andappServerKey
from the subscription.
Breaking Changes
-
The
appServerKey
VAPID public key has moved fromPushConfig
toPushManager.subscription(channelID, scope, appServerKey)
. -
The unused
regenerate_endpoints()
function has been removed.
v0.42.3 (2019-11-04)
General
What's New
-
On Android, our Megazord libraries now include license information for dependencies as part of their
.pom
file, making it easily available to tools such as the oss-licenses-plugin -
Our iOS framework binaries are now built using XCode 11.2.
v0.42.2 (2019-10-21)
Places
What's new
- Android: Exposed
stroage::bookmarks::erase_everything
, which deletes all bookmarks without affecting history, through FFI. (#2012)
FxA Client
What's new
- Android: Add ability to get an OAuth code using a session token via the
authorizeOAuthCode
method. (#2003)
v0.42.1 (2019-10-21)
Places
What's new
- Android: The Fennec bookmarks import method (
importBookmarksFromFennec
) will now return a list of pinned bookmarks. (#1993)
v0.42.0 (2019-10-10)
Places
What's new
- Android: Fennec history import now supports microsecond timestamps for
date_visited
.
Breaking changes
- The methods for importing places data from fenix have been moved from the writer connection to the PlacesAPI.
v0.41.0 (2019-10-02)
General
What's New
- Our components are now built with the newer Android NDK r20 instead of r15c. This change will make it easier for contributors to set up their development environment since there's no need to generate Android toolchains anymore. (#1916)
For existing contributors, here's what you need to do immediately:- Download and extract the Android NDK r20.
- Change the
ANDROID_NDK_ROOT
andANDROID_NDK_HOME
environment variables to point to the newer NDK dir. You can also delete the now un-usedANDROID_NDK_TOOLCHAIN_DIR
variable. - Delete
.cargo/config
at the root of the repository if you have it. - Regenerate the Android libs:
cd libs && rm -rf android && ./build-all.sh android
.
Logins
What's new
- Added ability to get logins by hostname by using
LoginsStorage.getByHostname
. (#1782)
v0.40.0 (2019-09-26)
Logins
Breaking Changes
- getHandle has been moved to the LoginsStorage interface. All implementers other than DatabaseLoginsStorage should implement this by throwing a
UnsupportedOperationException
.
v0.39.4 (2019-09-25)
Sync Manager
What's fixed
- Engines which are disabled will not have engine records in meta/global. (#1866)
- The FxA access token is no longer logged at the debug level. (#1866)
v0.39.3 (2019-09-24)
FxA Client
What's new
- The OAuth access token cache is now persisted as part of the account state data, which should reduce the number of times callers need to fetch a fresh access token from the server.
v0.39.2 (2019-09-24)
Sync Manager
What's fixed
- Clients with missing engines in meta/global should have the engines repopulated. (#1847)
v0.39.1 (2019-09-17)
FxA Client
What's new
Add ability to get the current device id in Kotlin via getCurrentDeviceId
method.
v0.39.0 (2019-09-17)
FxA Client
What's new
- New
getSessionToken
method on the FxA Client that returns the stored session_token from state. Also we now store the session_token into the state from the 'https://identity.mozilla.com/tokens/session' scope.
Places
What's fixed
- Hidden URLs (redirect sources, or links visited in frames) are no longer
synced or returned in
get_visit_infos
orget_visit_page
. Additionally, a newis_hidden
flag is added toHistoryVisitInfo
, though it's currently alwaysfalse
, since those visits are excluded. (#1715)
Sync Manager
- The new sync manager component is now available for integration (#1447).
- This should include no breaking changes at the moment, but in the future we will deprecate the non-sync manager sync APIs on android.
- Note: Currently, the sync manager is only available in the
full
andfenix
megazords.
v0.38.2 (2019-09-04)
Android
What's new
- The Gradle Android Plugin has been updated to 3.5.0. (#1680)
iOS
What's new
- Releases are now built with Xcode 11.0.0. (#1719)
v0.38.1 (2019-08-26)
FxA Client
What's new
- Added support for a webchannel redirect behaviour. (#1608)
Android
What's new
- Initial versions of Fennec data import methods have landed:
v0.38.0 (2019-08-19)
General
- Our OpenSSL dependency has been removed for all platforms other than desktop-linux (used when running local rust unit tests and the android -forUnitTests artifact). All other platforms use NSS. (#1570)
Places
What's Fixed
- Tags containing embedded whitespace are no longer marked as invalid and removed. (#1616)
v0.37.1 (2019-08-09)
Android
What's fixed
- Published artifacts should now correctly declare their
packaging
type in their pom files. (#1564)
FxA Client
What's fixed
FirefoxAccount.handlePushMessage
will not return an error on unknown push payloads.
v0.37.0 (2019-08-08)
FxA Client
What's new
- The Tablet, VR and TV devices types have been added.
What's fixed
- The
FirefoxAccount.disconnect
method should now properly dispose of the associated device record.
Breaking changes
- The
FirefoxAccount.beginOAuthFlow
method does not require thewantsKeys
argument anymore as it will always do the right thing based on the requested scopes.
v0.36.0 (2019-07-30)
General
What's New
-
The Fenix megazord now supports Logins. (#1465)
-
For maintainers only: please delete the
libs/{desktop, ios, android}
folders and start over using./build-all.sh [android|desktop|ios]
.
What's fixed
- Android x86_64 crashes involving the
intel_aes_encrypt_cbc_128
missing symbol have been fixed. (#1495)
Places
What's New
- Added a
getBookmarkURLForKeyword
method that retrieves a URL associated to a keyword. (#1345)
Push
Breaking changes
PushManager.dispatchForChid
method has been renamed todispatchInfoForChid
and its result type is now Nullable. (#1490)
v0.35.4 (2019-07-24)
This release exists only to rectify a publishing error that occurred with v0.35.3.
v0.35.3 (2019-07-24)
This release exists only to rectify a publishing error that occurred with v0.35.2.
v0.35.2 (2019-07-24)
This release exists only to rectify a publishing error that occurred with v0.35.1.
v0.35.1 (2019-07-24)
FxA Client
What's Fixed
- Android:
migrateFromSessionToken
will not leave the account in a broken state if network errors happen during the migration process.
Push
What's Fixed
- Updated the default server host for the push service to match the production server.
v0.35.0 (2019-07-16)
General
Megazords
The long-awaited android megazord changes have arrived. This has a large number of changes, many of them breaking: (#1103)
-
Consumers who depend on network features of application-services, but which were not using a megazord, will no longer be able to use a legacy HTTP stack by default.
-
Consumers who depend on network features and do use a megazord, can no longer initialize HTTP in the same call as the megazord.
-
Both of these cases should import the
org.mozilla.appservices:httpconfig
package, and callRustHttpConfig.setClient(lazy { /* client to use */ })
before calling functions which make HTTP requests. -
For custom megazord users, the name of your megazord is now always
mozilla.appservices.Megazord
. You no longer need to load it by reflection, since the swapped-out version always has the same name as your custom version. -
The reference-browser megazord has effectively been replaced by the full-megazord, which is also the megazord used by default
-
The steps to swap-out a custom megazord have changed. The specific steps are slightly different in various cases, and we will file PRs to help make the transition.
-
Substitution builds once again work, except for running unit tests against Rust code.
FxA Client
What's Fixed
- The state persistence callback is now correctly triggered after a call
to
FirefoxAccount.getProfile
.
Breaking changes
- The
FirefoxAccount.destroyDevice
method has been removed in favor of the more generalFirefoxAccount.disconnect
method which will ensure a full disconnection by invalidating OAuth tokens and destroying the device record if it exists. (#1397) - The
FirefoxAccount.disconnect
method has been added to the Swift bindings as well. - The
FirefoxAccount.beginOAuthFlow
method will redirect to a content page that forces the user to connect to the last seen user email. To avoid this behavior, a newFirefoxAccount
instance with a new persisted state must be created.
v0.34.0 (2019-07-10)
General
-
All of our cryptographic primitives are now backed by NSS (#1349). This change should be transparent our customers.
If you build application-services, it is recommended to delete the
libs/{desktop, ios, android}
folders and start over using./build-all.sh [android|desktop|ios]
. GYP and ninja are required to build these libraries.
Places
What's New
- Added
WritableHistoryConnection.acceptResult(searchString, url)
for marking an awesomebar result as accepted. (#1332)- Specifically,
queryAutocomplete
calls for searches that contain frequently accepted results are more highly ranked.
- Specifically,
Breaking changes
- Android only: The addition of
acceptResult
toWritableHistoryConnection
is a breaking change for any custom implementations ofWritableHistoryConnection
(#1332)
Push
Breaking Changes
OpenSSLError
has been renamed to the more generalCryptoError
. (#1349)
v0.33.2 (2019-07-04)
This release exists only to rectify a publishing error that occurred with v0.33.1.
v0.33.1 (2019-07-04)
This release exists only to rectify a publishing error that occurred with v0.33.0.
v0.33.0 (2019-07-04)
FxA Client
Breaking Changes
- iOS: FirefoxAccountError enum variants have their name
lowerCamelCased
instead ofUpperCamelCased
, to better fit with common Swift code style. (#1324)
v0.32.3 (2019-07-02)
Places
What's Fixed
-
PlacesReaderConnection.queryAutocomplete
should return unique results. (#970) -
Ensures bookmark sync doesn't fail if a bookmark or query is missing or has an invalid URL. (#1325)
v0.32.2 (2019-06-28)
General
-
This is a release that aims to test infrastructure changes (ci-admin).
-
OpenSSL dependency updated. (#1328)
v0.32.1 (2019-06-26)
FxA Client
What's Fixed
- Fixes SendTab initializeDevice in Android to use the proper device type (#1314)
iOS Bindings
What's Fixed
- Errors emitted from the rust code should now all properly output their description. (#1323)
Logins
What's Fixed
- Remote login records which cannot be parsed are now ignored (and reported in telemetry). #1253
v0.32.0 (2019-06-14)
Places
What's fixed
-
Fix an error that could happen when the place database is closed. (#1304)
-
iOS only: Ensure interruption errors don't come through as network errors. (#1304)
v0.31.3 (2019-07-02)
General
- (Backport) Update
smallvec
dependency to pick up a security fix (#1353)
Places
- (Backport) Ensures bookmark sync doesn't fail if a bookmark or query is missing or has an invalid URL (#1325)
FxA Client
- (Backport) Fixes SendTab initializeDevice in Android to use the proper device type (#1314)
v0.31.2 (2019-06-10)
Sync
What's fixed
- Fixes an edge case introduced in v0.31.1 where a users set of declined engines (aka the "Choose what to Sync" preferences) could be forgotten. (#1273)
v0.31.1 (2019-06-10)
Sync
What's fixed
- Fixes an issue where a stale sync key will be used in cases where a user signs out and signs in to another account. (#1256)
FxA Client
What's new
- Added a new method to help recover from invalid access tokens.
(#1244) If the
application receives an an authentication exception while using a token
obtained through
FirefoxAccount.getAccessToken
, it should:- Call
FirefoxAccount.clearAccessTokenCache
to remove the invalid token from the internal cache. - Retry the operation after obtaining fresh access token via
FirefoxAccount.getAccessToken
. - If the retry also fails with an authentication exception, then the user will need to reconnect their account via a fresh OAuth flow.
- Call
FirefoxAccount.getProfile
now performs the above retry logic automagically. An authentication error while callinggetProfile
indicates that the user needs to reconnect their account. (#1244
v0.31.0 (2019-06-07)
Sync
- Android: A new
sync15
package defines Kotlin data classes for the Sync telemetry ping. (#1112) - Android:
PlacesApi.syncHistory
andPlacesApi.syncBookmarks
now return aSyncTelemetryPing
. (#1112) - iOS:
PlacesAPI.syncBookmarks
now returns a JSON string with the contents of the Sync ping. This should be posted to the legacy telemetry submission endpoint. (#1112)
Places
What's fixed
- Deduping synced bookmarks with newer server timestamps no longer throws unique constraint violations. (#1259)
Logins
Breaking Changes
- iOS: LoginsStoreError enum variants have their name
lowerCamelCased
instead ofUpperCamelCased
, to better fit with common Swift code style. (#1042)
v0.30.0 (2019-05-30)
Push
Breaking Changes
- Changed the internal serialization format of the Push Keys.
FxA Client
Breaking Changes
- Changed the internal serialization format of the Send Tab Keys. Calling
ensureCapabilities
will re-generate them.
Features
- Added
migrateFromSessionToken
to allow creating a refreshToken from an existing sessionToken. Useful for Fennec to Fenix bootstrap flow, where the user can just reuse the existing sessionToken to create a new session with a refreshToken.
v0.29.0 (2019-05-23)
Places
What's New
- A new
getRecentBookmarks
API was added to return the list of most recently added bookmark items (#1129).
Breaking Changes
- The addition of
getRecentBookmarks
is a breaking change for custom implementation ofReadableBookmarksConnection
on Android (#1129).
v0.28.1 (2019-05-21)
This release exists only to rectify a publishing error that occurred with v0.28.0.
v0.28.0 (2019-05-17)
FxA
Breaking Changes
FirefoxAccount.ensureCapabilities
now takes a set of capabilities as a parameter. All the device registered "capabilities" such as Send Tab will be replaced by the passed set of new capabilities.
Push
Breaking Changes
-
PushManager.verifyConnection()
now returns a boolean.true
indicates the connection is valid and no action required,false
indicates that the connection is invalid. All existing subscriptions have been dropped. The caller should send apushsubscriptionchange
to all known apps. (This is due to the fact that the Push API does not have a way to send just the new endpoint to the client PWA.) #1114 -
PushManager.unsubscribe(...)
now will only unsubscribe a single channel. It will returnfalse
if no channel is specified or if the channel was already deleted. To delete all channels for a given user, callPushManager.unsubscribeAll()
. #889
General
What's Fixed
- Native libraries should now have debug symbols stripped by default, resulting in significantly smaller package size for consuming applications. A test was also added to CI to ensure that this does not regress in future. (1107)
v0.27.2 (2019-05-08)
Logins
What's new
- iOS only: Logins store has a new (static)
numOpenConnections
function, which can be used to detect leaks. (#1070)
Places
What's New
- iOS only: PlacesApi can now migrate bookmark data from a
browser.db
database via themigrateBookmarksFromBrowserDb
function. It is recommended that this only be called for non-sync users, as syncing the bookmarks over will result in better handling of sync metadata, among other things. (#1078) - iOS: Sync can now be interrupted using the
interrupt
method (#1092) - iOS: Sync metadata can be reset using the
resetBookmarksMetadata
method (#1092)
v0.27.1 (2019-04-26)
FxA
What's New
- Added
destroyDevice
support to existing Send Tab capabilities. (#821)
Places
What's New
- Frecencies are now recalculated for bookmarked URLs after a sync. (#847)
Push
What's Fixed
- Authentication failures with the autopush server should be fixed. (#1080)
v0.27.0 (2019-04-22)
General
-
JNA has been updated to version 5.2.0 (previously 4.5.2) (#1057)
-
SQLCipher has been updated to version 4.1.0 (previously 4.0.0) (#1060)
-
android-components
has been updated to 0.50.0 (previously 0.49.0) (#1062) -
SQLCipher should no longer be required in megazords which do not contain
logins
. (#996) -
Non-megazord builds should once again work (#1046)
FxA
What's New
-
New methods
getManageAccountURL
andgetManageDevicesURL
have been added, which the application can use to direct the user to manage their account on the web. (#984) -
Android only: Added device registration and Firefox Send Tab capability support. Your app can opt into this by calling the
FirefoxAccount.initializeDevice
method. (#676) -
Switched to use the new fxa-auth-server token endpoint which generates device records, email and push notifications for connected clients(#1055)
Places
Breaking Changes
- It is no longer possible to create an encrypted places database. (#950)
syncBookmarks()
API is now markedopen
to be accessible outside the framework. (#1058)
What's Fixed
- Non-megazord builds should once again function. (#1045)
v0.26.2 (2019-04-18)
iOS Framework
What's Fixed
- iOS temporarially no longer uses NSS for crypto. This is a short term fix to allow firefox-ios to release an update.
v0.26.1 (2019-04-18)
iOS Framework
What's Fixed
- iOS networking should use the reqwest backend, instead of failing (#1032)
v0.26.0 (2019-04-17)
Gradle plugin
- Removed the appservices bintray repo from the plugin (#899)
Push
Breaking Change
PushAPI.subscribe()
now returns aSubscriptionResponse
that contains the server suppliedchannelID
and thesubscriptionInfo
block previously returned. Please note: the server suppliedchannelID
may differ from the suppliedchannelID
argument. This is definitely true when an empty channelID value is provided tosubscribe()
, or if the channelID is not a proper UUID. The returnedchannelID
value is authoritative and will be the value associated with the subscription and future subscription updates. As before, thesubscriptionResponse.subscriptionInfo
can be JSON serialized and returned to the application. (#988)
Places
What's new
- Bookmarks may now be synced using the
syncBookmarks
method onPlacesApi
(and on Android, the interface it implements,SyncManager
). (#850) - Android only: New methods for querying paginated history have been added:
getVisitCount
andgetVisitPage
(#992) - Android only:
getVisitInfos
now takes a list of visit types to exclude. (#920)
Breaking Changes
- Android only: The addition of
syncBookmarks
on thePlacesManager
interface is a breaking change. (#850) - Android only:
sync
has been renamed tosyncHistory
for clarity given the existence ofsyncBookmarks
. (#850) - Android only:
getVisitInfos
has changed, which is breaking for implementors ofReadableHistoryConnection
. (#920) - Android only: New methods on
ReadableHistoryConnection
:getVisitCount
andgetVisitPage
. (#992)
Logins
What's new
- iOS only: Logins operations may now be interrupted via the
interrupt()
method on LoginsDb, which may be called from any thread. (#884)- This is currently only implemented for iOS due to lack of interest on the Android side, please let us know if this is desirable in the Android API as well. Feel free to indicate support for exposing this in the Android API here.
v0.25.2 (2019-04-11)
General
- Some cryptographic primitives are now backed by NSS. On reference-browser and fenix megazords the GeckoView NSS libs are used, otherwise these libraries are bundled. (#891)
What's Fixed
- Megazords and requests should work again. (#946)
- The vestigial
reqwest
backend is no longer compiled into the megazords (#937).- Note that prior to this it was present, but unused.
iOS
- The individual components projects have been removed, please use the MozillaAppServices framework from now on. (#932)
- The NSS .dylibs must be included in your application project, see instructions
Push
What's fixed
- PushAPI now stores some metadata information across restarts (#905)
v0.24.0 (2019-04-08)
Megazords
Breaking Changes
-
Megazord initialization has changed. Megazords' init() function now takes a
Lazy<mozilla.components.concept.fetch.Client>
(from concept-fetch), which will be used to proxy all HTTP requests through. It will not be accessed until a method is called on rust code which requires the network. This functionality is not present in non-megazords. (#835)An example of how to initialize this follows:
val megazordClass = Class.forName("mozilla.appservices.MyCoolMegazord") val megazordInitMethod = megazordClass.getDeclaredMethod("init", Lazy::class.java) val lazyClient: Lazy<Client> = lazy { components.core.client } megazordInitMethod.invoke(megazordClass, lazyClient)
Or (if you don't have GeckoView available, e.g. in the case of lockbox):
val megazordClass = Class.forName("mozilla.appservices.MyCoolMegazord") val megazordInitMethod = megazordClass.getDeclaredMethod("init", Lazy::class.java) // HttpURLConnectionClient is from mozilla.components.lib.fetch.httpurlconnection val lazyClient: Lazy<Client> = lazy { HttpURLConnectionClient() } megazordInitMethod.invoke(megazordClass, lazyClient)
General
- Native code builds are now stripped by default, reducing size by almost an
order of magnitude. (#913)
- This is done rather than relying on consumers to strip them, which proved more difficult than anticipated.
Push
What's new
- PushAPI now defines a number of default parameters for functions (#868)
Breaking changes
mozilla.appservices.push.BridgeTypes
is nowmozilla.appservices.push.BridgeType
(#885)
Places
What's Fixed
- Swift PlacesAPI methods are not externally accessible (#928)
v0.23.0 (2019-03-29)
Places
What's Fixed
- createBookmarkItem on android will now create the correct type of bookmark. (#880)
Push
Breaking changes
- the
PushManager
argumentsocket_protocol
is nowhttp_protocol
to correctly map its role.socket_protocol
is reserved.
v0.22.1 (2019-03-27)
Logins
What's New
- iOS Logins storage now has
ensureLocked
,ensureUnlocked
, andwipeLocal
methods, equivalent to those provided in the android API. (#854)
Places
What's Fixed
- PlacesAPIs should now be closed when all references to them are no longer used. (#749)
v0.22.0 (2019-03-22)
Logins
- Added a disableMemSecurity function to turn off some dubious behaviors of SQLcipher. (#838)
- The iOS SQLCipher build configuration has been adjusted (#837)
Push
Breaking changes
PushManager
'sdispatch_for_chid
method has been renamed todispatchForChid
.PushManager
constructor arguments are now camelCased.
org.mozilla.appservices
Gradle plugin
- Artifacts are now to be published to the
mozilla-appservices
bintray organization. This necessitates version 0.4.3 of the Gradle plugin. (#843)
v0.21.0 (2019-03-20)
General
- Breakpad symbols should be available for android now (#741)
Places
- Places now is available on iOS, however support is limited to Bookmarks. (#743)
- Places now has bookmarks support enabled in the FFI. This addition is too large to include in the changelog, however both Swift and Kotlin APIs for this are fairly well documented. (#743)
v0.20.2 (2019-03-15)
- An automation problem with the previous release, forcing a version bump. No functional changes.
- Local development: non-megazord builds are now
debug
be default, improving local build times and working around subtle build issues. - Override this via a flag in
local.properties
:application-services.nonmegazord-profile=release
v0.20.1 (2019-03-15)
- A error in the build.gradle file caused the v0.20.0 release to fail, this release should not be meaningfully different from it.
v0.20.0 (2019-03-14)
General
- The previous release had an issue with the megazords, and so another release was needed. This is version 0.4.2 of the megazord plugin. (#775)
Breaking Changes
- All package names have been normalized. The gradle packages should all be
org.mozilla.appservices:component
, and the java namespaces should bemozilla.appservices.component
. (#776)
Logins
Breaking Changes
- The gradle package for logins has been changed from
'org.mozilla.sync15:logins'
toorg.mozilla.appservices:logins
. (#776)
Places
Breaking Changes
-
Several classes and interfaces have been renamed after feedback from consumers to avoid
Interface
in the name, and better reflect what they provide.PlacesApiInterface
=>PlacesManager
PlacesConnectionInterface
=>InterruptibleConnection
ReadablePlacesConnectionInterface
=>ReadableHistoryConnection
WritablePlacesConnectionInterface
=>WritableHistoryConnection
ReadablePlacesConnection
=>PlacesReaderConnection
WritablePlacesConnection
=>PlacesWriterConnection
-
The java namespace used in places has changed from
org.mozilla.places
tomozilla.appservices.places
(#776) -
The gradle package for places has been changed from
'org.mozilla.places:places'
toorg.mozilla.appservices:places
. (#776)
FxA
Breaking Changes
- The gradle package for fxa-client has been changed from
'org.mozilla.fxaclient:fxaclient'
toorg.mozilla.appservices:fxaclient
. (#776)
0.19.0 (2019-03-13)
General
What's New
- Initial support for the new Push component landed, however it's not yet ready for widespread use (#683)
Places
What's New
- A massive rewrite of the Kotlin API has been completed. This distinguishes
reader and writer connections. A brief description of the new types follows.
Note that all the types have corresponding interfaces that allow for them to
be mocked during testing as needed. (#718)
PlacesApi
: This is similar to a connection pool, it exists to give out reader and writer connections via the functionsopenReader
andgetWriter
. The naming distinction is due to there only being a single writer connection (which is actually opened when thePlacesApi
is created). This class generally should be a singleton.- In addition to
openReader
andgetWriter
, this also includes thesync()
method, as that requires a special type of connection.
- In addition to
ReadablePlacesConnection
: This is a read-only connection to the places database, implements all the methods of the API that do not require write access.- Specifically,
getVisited
,matchUrl
,queryAutocomplete
,interrupt
,getVisitedUrlsInRange
, andgetVisitInfos
all exist on this object.
- Specifically,
WritablePlacesConnection
: This is a read-write connection, and as such, contains not only the all reader methods mentioned above, but also the methods requiring write access, such as:noteObservation
,wipeLocal
,runMaintenance
,pruneDestructively
,deleteEverything
,deletePlace
,deleteVisitsSince
,deleteVisitsBetween
, anddeleteVisit
.
- Note that the semantics of the various methods have not been changed, only their location.
Breaking Changes
- Almost the entire API has been rewritten. See "What's New" for details. (#718)
0.18.0 (2019-02-27)
FxA
Breaking Changes
- Swift:
FxAError
has been renamed toFirefoxAccountError
(#713)
Places
What's Fixed
- Autocomplete should no longer return an error when encountering certain emoji (#691)
Logging
What's New
- The
rc_log
component now has support for iOS. It is only available as part of the MozillaAppServices megazord. (#618)
0.17.0 (2019-02-19)
FxA
What's New
- We are now using Protocol Buffers to pass the Profile data across the FFI boundaries, both on Android and iOS. On Android there should be no breaking changes.
- Kotlin:
Profile
is now a Data Class.
Breaking changes
- iOS: You now have to include the
SwiftProtobuf
framework in your projects for FxAClient to work (otherwise you'll get a runtime error when fetching the user profile). It is built intoCarthage/Build/iOS
just likeFxAClient.framework
. - iOS: In order to build FxAClient from source, you need swift-protobuf installed. Simply run
brew install swift-protobuf
if you have Homebrew. - iOS: You need to run
carthage bootstrap
at the root of the repository at least once before building the FxAClient project: this will build theSwiftProtobuf.framework
file needed by the project. - iOS: the
Profile
class now inherits fromRustProtobuf
. Nothing should change in practice for you.
Places
What's New
- New methods on PlacesConnection (Breaking changes for classes implementing PlacesAPI):
-
fun deleteVisit(url: String, timestamp: Long)
: If a visit exists at the specified timestamp for the specified URL, delete it. This change will be synced if it is the last remaining visit (standard caveat for partial visit deletion). (#621) -
fun deleteVisitsBetween(start: Long, end: Long)
: Similar todeleteVisitsSince(start)
, but takes an end date. (#621) -
fun getVisitInfos(start: Long, end: Long = Long.MAX_VALUE): List<VisitInfo>
: Returns a more detailed set of information about the visits that occured. (#619)VisitInfo
is a new data class that contains a visit's url, title, timestamp, and type.
-
fun wipeLocal()
: Deletes all history entries without recording any sync information. (#611).This means that these visits are likely to start slowly trickling back in over time, and many of them will come back entirely if a full sync is performed (which may not happen for some time, admittedly). The intention here is that this is a method that's used if data should be discarded when disconnecting sync, assuming that it would be desirable for the data to show up again if sync is reconnected.
For more permanent local deletions, see
deleteEverything
, also added in this version. -
fun runMaintenance()
: Perform automatic maintenance. (#611)This should be called at least once per day, however that is a recommendation and not a requirement, and nothing dire happens if it is not called.
The maintenance it may perform potentially includes, but is not limited to:
- Running
VACUUM
. - Requesting that SQLite optimize our indices.
- Expiring old visits.
- Deleting or fixing corrupt or invalid rows.
- Etc.
However not all of these are currently implemented.
- Running
-
fun pruneDestructively()
: Aggressively prune history visits. (#611)These deletions are not intended to be synced, however due to the way history sync works, this can still cause data loss.
As a result, this should only be called if a low disk space notification is received from the OS, and things like the network cache have already been cleared.
-
fun deleteEverything()
: Delete all history visits. (#647)For sync users, this will not cause the visits to disappear from the users remote devices, however it will prevent them from ever showing up again, even across full syncs, or sync sign-in and sign-out.
See also
wipeLocal
, also added in this version, which is less permanent with respect to sync data (a full sync is likely to bring most of it back).
-
Breaking Changes
- The new
PlacesConnection
methods listed in the "What's New" all need to be implemented (or stubbed) by any class that implementsPlacesAPI
. (multiple bugs, see "What's New" for specifics).
What's fixed
- Locally deleted visits deleted using
deleteVisitsSince
should not be resurrected on future syncs. (#621) - Places now properly updates frecency for origins, and generally supports origins in a way more in line with how they're implemented on desktop. (#429)
0.16.1 (2019-02-08)
Logins
What's Fixed
- iOS
LoginRecord
s will no longer use empty strings forhttpRealm
andformSubmitUrl
in cases where they claim to use nil. (#623)- More broadly, all optional strings in LoginRecords were were being represented as empty strings (instead of nil) unintentionally. This is fixed.
- iOS: Errors that were being accidentally swallowed should now be properly reported. (#640)
- Schema initialization/upgrade now happen in a transaction. This should avoid corruption if some unexpected error occurs during the first unlock() call. (#642)
Breaking changes
- iOS: Code that expects empty strings (and not nil) for optional strings should be updated to check for nil instead. (#623)
- Note that this went out in a non-major release, as it doesn't cause compilation failure, and manually reading all our dependents determined that nobody was relying on this behavior.
FxA
What's Fixed
- iOS: Some errors that were being accidentally swallowed should now be properly reported. (#640)
0.16.0 (2019-02-06)
General
What's New
- iOS builds now target v11.0. (#614)
- Preparatory infrastructure for megazording iOS builds has landed.(#625)
Places
Breaking Changes
- Several new methods on PlacesConnection (Breaking changes for classes implementing PlacesAPI):
fun interrupt()
. Cancels any calls toqueryAutocomplete
ormatchUrl
that are running on other threads. Those threads will throw anOperationInterrupted
exception. (#597)- Note: Using
interrupt()
during the execution of other methods may work, but will have mixed results (it will work if we're currently executing a SQL query, and not if we're running rust code). This limitation may be lifted in the future.
- Note: Using
fun deletePlace(url: String)
: Deletes all visits associated with the provided URL (#591)- Note that these deletions are synced!
fun deleteVisitsSince(since: Long)
: Deletes all visits between the given unix timestamp (in milliseconds) and the present (#591).- Note that these deletions are synced!
What's New
- Initial support for storing bookmarks has been added, but is not yet exposed over the FFI. (#525)
FxA
What's Fixed
- iOS Framework: Members of Avatar struct are now public. (#615)
0.15.0 (2019-02-01)
General
What's New
- A new megazord was added, named
fenix-megazord
. It contains the components for FxA and Places (and logging). (#585)- Note: To use this, you must be on version 0.3.1 of the gradle plugin.
Logins
What's Fixed
- Fix an issue where unexpected errors would become panics. (#593)
- Fix an issue where syncing with invalid credentials would be reported as the wrong kind of error (and cause a panic because of the previous issue). (#593)
Places
What's New
- New method on PlacesConnection (breaking change for classes implementing PlacesAPI):
fun matchUrl(query: String): String?
. This is similar toqueryAutocomplete
, but only searches for URL and Origin matches, and only returns (a portion of) the matching url (if found), or null (if not). (#595)
What's Fixed
-
Autocomplete will no longer return an error when asked to match a unicode string. (#298)
-
Autocomplete is now much faster for non-matching queries and queries that look like URLs. (#589)
FxA
What's New
- It is now possible to know whether a profile avatar has been set by the user. (#579)
Breaking Changes
- The
avatar
accessor from theProfile
class in the Swift framework now returns an optionalAvatar
struct instead of aString
. (#579)
0.14.0 (2019-01-23)
General
What's New
-
A new component was added for customizing how our Rust logging is handled. It allows Android code to get a callback whenever a log is emitted from Rust (Most users will not need to use this directly, but instead will consume it via the forthcoming helper that hooks it directly into android-components Log system in android-components PR #1765). (#472)
-
The gradle megazord plugin updated to version 0.3.0, in support of the logging library. Please update when you update your version of android-components. (#472)
-
In most cases, opaque integer handles are now used to pass data over the FFI (#567). This should be more robust, and allow detection of many types of errors that would previously cause silent memory corruption.
This should be mostly transparent, but is a semi-breaking semantic change in the case that something throws an exception indicating that the Rust code paniced (which should only occur due to bugs anyway). If this occurs, all subsequent operations on that object (except
close
/lock
) will cause errors. It is "poisoned", in Rust terminology. (In the future, this may be handled automatically)This may seem inconvenient, but it should be an improvement over the previous version, where we instead would simply carry on despite potentially having corrupted internal state.
-
Build settings were changed to reduce binary size of Android
.so
by around 200kB (per library). (#567) -
Rust was updated to 1.32.0, which means we no longer use jemalloc as our allocator. This should reduce binary size some, but at the cost of some performance. (No bug as this happens automatically as part of CI, see the rust-lang release notes for more details).
Breaking Changes
- Megazord builds will no longer log anything by default. Logging must be enabled as described "What's New". (#472)
Places
What's Fixed
- PlacesConnection.getVisited will now return that invalid URLs have not been visited, instead of throwing. (#552)
- PlacesConnection.noteObservation will correctly identify url parse failures as such. (#571)
- PlacesConnections not utilizing encryption will not make calls to mlock/munlock on every allocation/free. This improves performance up to 6x on some machines. (#563)
- PlacesConnections now use WAL mode. (#555)
FxA
Breaking Changes
Some APIs which are semantically internal (but exposed for various reasons) have changed.
- Android: Some
protected
methods onorg.mozilla.fxaclient.internal.RustObject
have been changed (destroy
now takes aLong
, as it is an opaque integer handle). This object should not be considered part of the public API of FxA, but it is still available. Users using it are recommended not to do so. (#567) - iOS: The type
RustOpaquePointer
was replaced byRustHandle
, which is aRustPointer<UInt64>
. While these are technically part of the public API, they may be removed in the future and users are discouraged from using them. (#567)
0.13.3 (2019-01-11)
Places
What's Fixed
- Places will no longer log PII. (#540)
0.13.2 (2019-01-11)
Firefox Accounts
What's New
- The fxa-client android library will now write logs to logcat. (#533)
- The fxa-client Android and iOS librairies will throw a differentiated exception for general network errors. (#535)
0.13.1 (2019-01-10)
Note: This is a patch release that works around a bug introduced by a dependency. No functionality has been changed.
General
What's New
N/A
What's Fixed
- Network requests on Android. Due to a bug in
reqwest
, it's version has been pinned until we can resolve this issue. (#530)
0.13.0 (2019-01-09)
General
What's New
- Upgraded openssl to 1.1.1a (#474)
What's Fixed
- Fixed issue where backtraces were still enabled, causing crashes on some android devices (#509)
- Fixed some panics that may occur in corrupt databases or unexpected data. (#488)
Places
What's New
N/A
What's fixed
- Autocomplete no longer returns more results than requested (#489)
Logins
Deprecated or Breaking Changes
- Deprecated the
reset
method, which does not perform any useful action (it clears sync metadata, such as last sync timestamps and the mirror table). Instead, use the newwipeLocal
method, or delete the database file. (#497)
What's New
- Added the
wipeLocal
method for deleting all local state while leaving remote state untouched. (#497) - Added
ensureLocked
/ensureUnlocked
methods which are identical tolock
/unlock
, except that they do not throw if the state change would be a no-op (e.g. they do not require that you checkisLocked
first). (#495) - Added an overload to
unlock
andensureUnlocked
that takes the key as a ByteArray. Note that this is identical to hex-encoding (with lower-case hex characters) the byte array prior to providing it to the string overload. (#499)