

Notes now uses Rust & Android components
source link: https://www.tuicool.com/articles/hit/zi6JB3j
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Today we shipped Notes by Firefox 1.1 for Android, all existing users will get the updated version via Google Play .
After our initial testing in version 1.0, we identified several issues with the Android’s “Custom Tab” login features. To fix those problems the new version has switched to using the newly developed Firefox Accounts Android component . This component should resolve the issues that the users experienced while signing in to Notes.

The Android component in Notes uses one of our Rust components in the background to perform authentication actions for Firefox Accounts . The Rust components can be cross-compiled for different environments such as Android, iOS and desktop operating systems. This way we don’t have to rewrite and maintain several copies of the same authentication logic in different languages. There are other reasons why we chose Rust to develop low-level components, such as memory safety, no data races, performance, and more . We hope to bring these new components into our other apps in the near future.
If you are interested in this component architecture and want to contribute, please check out the following links below:

Big thanks to our SoftVision QA , Mozilla Mobile and Mozilla Application Services teams for helping with this release!
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK