Граф коммитов

306 Коммитов

Автор SHA1 Сообщение Дата
Edouard Oger 239196463c
Return full URL in getTokenServerEndpointURL 2020-02-19 11:15:51 -05:00
Edouard Oger e6056436ca
FxaAccountManager -> FxAccountManager 2020-02-19 10:24:28 -05:00
Edouard Oger a84bb9fee5
Add Session Token migration to FxAccountManager 2020-02-19 10:01:47 -05:00
Edouard Oger cca298eba8
Run cargo update 2020-02-11 10:24:14 -05:00
Edouard Oger 47a84bc47e
Merge pull request #2454 from mozilla/swift-fxa-mgr
FxA Account manager [ci skip]
2020-01-29 10:27:55 +01:00
Edouard Oger 4fd2b1d195
Run cargo update 2020-01-28 09:30:54 +01:00
Edouard Oger 81d45d3df7
Swift Firefox Account Manager 2020-01-28 05:12:37 +01:00
Ryan Kelly 056071c5d9
Update additional prost-related dependencies. 2020-01-20 15:41:26 +11:00
Edouard Oger 64ed34bd18
Merge pull request #2474 from mozilla/upgrade-reqwest
Upgrade reqwest to 0.10 [ci full]
2020-01-14 15:40:46 -05:00
Edouard Oger ec952ad200
Upgrade reqwest to 0.10 2020-01-14 14:15:49 -05:00
Ryan Kelly 1015181f97
Rebuild the megazord if MEGAZORD_VERSION env var changes. 2020-01-14 10:19:17 +11:00
Mark Hammond 0478aadc00
Logins: Validate and fixup hostname and formSubmitURL. (#2380) 2019-12-18 15:33:55 +11:00
Ethan Glasser-Camp 4f6feb7ff3
Try blindly to make the same change in Swift 2019-12-11 12:10:51 -05:00
Jan-Erik Rediger ab4c10f03a
Fix typo in dependendency summary script 2019-12-10 06:47:29 +11:00
Edouard Oger 6194f39fbd
Update dependencies 2019-12-03 17:11:05 -05:00
lougeniac64 46155b00fb
Added additional checks to check_valid 2019-12-02 13:42:44 -05:00
Vlad Filippov 21d4ce3011
Run cargo update [ci full] 2019-11-27 11:53:19 -05:00
lougeniac64 5441dae879
Handle duplicate logins on insertion/update 2019-11-19 14:12:16 -05:00
Edouard Oger 383a652995
Run cargo update 2019-11-18 10:55:15 -05:00
dependabot-preview[bot] a7e01983ce
Bump base64 from 0.10.1 to 0.11.0
Bumps [base64](https://github.com/marshallpierce/rust-base64) from 0.10.1 to 0.11.0.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases)
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.10.1...v0.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-04 13:10:45 -05:00
Ryan Kelly d07fb1b27f
Include dependency license info in megazord .pom files.
Some of our consumers use this handy plugin [1] to automagically
include dependency license info in their app. By including our
own dependency license info in our .pom file we can make it
easy for those consumers to include correct license info for
all the transitive dependencies they pick up through us.

[1] https://github.com/google/play-services-plugins/tree/master/oss-licenses-plugin
2019-11-01 18:53:47 +11:00
Edouard Oger 975a61effc
Run cargo update 2019-10-11 11:39:19 -04:00
Edouard Oger 7ea2ab6fc1
Run cargo update 2019-10-04 13:30:12 -04:00
Edouard Oger 713bc5345a
Cargo update 2019-09-27 13:20:34 -04:00
Edouard Oger adcf1ae085
Update bindgen 2019-09-25 14:45:06 -04:00
Edouard Oger 8306af2594
Remove Zlib license special handling 2019-09-20 18:51:15 -04:00
Edouard Oger 089c779a8e
Run cargo update 2019-09-20 11:08:42 -04:00
Thom Chiovoloni 6c92e844df
Changelog entry for sync manager 2019-09-16 15:27:09 -07:00
Thom Chiovoloni ef62758d34
Remove sync_manager from lockbox megazord 2019-09-16 15:12:50 -07:00
Thom Chiovoloni f8a5a57a49
Clean up commits for sync manager work, a few things still not finished before this is actually ready for review 2019-09-16 15:06:33 -07:00
Thom Chiovoloni 9f6fcedc85
Initial implementation of the Kotlin Sync Manager API 2019-09-16 15:06:33 -07:00
dependabot-preview[bot] c271c8fae5
Bump lazy_static from 1.3.0 to 1.4.0
Bumps [lazy_static](https://github.com/rust-lang-nursery/lazy-static.rs) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/rust-lang-nursery/lazy-static.rs/releases)
- [Commits](https://github.com/rust-lang-nursery/lazy-static.rs/compare/1.3.0...1.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-26 17:47:15 +00:00
Thom Chiovoloni a960c3a496
Run dependency script 2019-08-20 10:32:19 -07:00
Edouard Oger bb58a63a7d
Fix Rust 1.37.0 warnings 2019-08-15 14:46:07 -04:00
Edouard Oger 31dfb84743
Use rust-ece with rc_crypto dynamic backend 2019-08-14 13:29:45 -04:00
Ryan Kelly 27d4771104
Include license info in binary distributions.
And also add some base-bones docs on how consumers can obtain it.
2019-08-02 07:41:18 +10:00
Ryan Kelly bd24c099f1
Add script for auto-generating dependency listing summary. 2019-07-31 10:21:48 +10:00
Edouard Oger cb7ceb1a1b
Remove support/ios 2019-07-29 14:21:46 -04:00
Edouard Oger 319e8bdc5d
Add logins to the Fenix megazord 2019-07-26 14:40:39 -04:00
Thom Chiovoloni b0680ffb55
megazord: changelog, address comments from review 2019-07-15 11:19:37 -07:00
Thom Chiovoloni 4eb950f21b
Merge branch 'master' into omegazord 2019-07-15 10:54:28 -07:00
Mark Hammond dc1548128e
Have sync15_passwords_sync and callers return the sync ping. (#1229) 2019-07-15 11:27:05 +10:00
Thom Chiovoloni cb975b17e2
Merge branch 'master' into omegazord 2019-07-09 17:10:18 -07:00
Edouard Oger 270b0ea2a0
rc_crypto initial commit (#1349) 2019-07-09 14:00:48 -04:00
Mitchell Hentges e60702f045
Renames publishedArtifacts to publications to match gradle 2019-07-04 09:57:08 -07:00
Thom Chiovoloni 463c46d4db
Remove the (now redundant) reference-browser-megazord 2019-06-12 14:29:33 -07:00
Thom Chiovoloni 3d144a3023
Attempt to fall back to the full megazord if not explicitly initialized 2019-06-12 14:29:32 -07:00
Thom Chiovoloni cd1ee72f50
Clean up publishing 2019-06-12 14:29:32 -07:00
Thom Chiovoloni c7455456d8
Get rid of `nss-libs-android` 2019-06-12 14:29:31 -07:00
Thom Chiovoloni 9deb33ce4b
Apply necessary changes to the rest of the packages 2019-06-12 14:29:31 -07:00
Thom Chiovoloni 4e247e8b64
Delete commented out code which is no longer necessary 2019-06-12 12:19:42 -07:00
Thom Chiovoloni 561e914e98
Start on what this will actually look like to use 2019-06-12 12:19:41 -07:00
Thom Chiovoloni b65abcb47c
Initial work on removing non-megazords. Very WIP 2019-06-12 12:19:41 -07:00
Thom Chiovoloni e9f02001eb
Add empty full-megazord 2019-06-12 12:19:40 -07:00
Thom Chiovoloni d0bbb8d54b
Give all android megazord classes the same name, removing the need for reflection 2019-06-12 12:19:40 -07:00
Thom Chiovoloni cc2bef72e1
Separate Rust HTTP init from megazord init 2019-06-12 12:19:40 -07:00
Edouard Oger f4f7ea8017
Run SwiftLint/SwiftFormat on CI 2019-04-24 21:23:15 -04:00
Edouard Oger 5c3860e236
Rename Run Script to Build Rust libraries 2019-04-24 15:16:32 -04:00
Thom Chiovoloni 788eef4961
Merge pull request #1057 from mozilla/android-fixups
Update JNA to 5.2.0
2019-04-22 12:18:04 -07:00
Thom Chiovoloni 205531da36
Use --locked for android builds in CI. Fixes #901 2019-04-22 11:51:17 -07:00
Thom Chiovoloni 713fb19fe6
Update JNA to 5.2.0. Fixes #320 2019-04-22 11:47:44 -07:00
Thom Chiovoloni 231536437b
Use `bundled` feature of rusqlite where we don't need encryption. Fixes #760 2019-04-22 10:39:13 -07:00
Edouard Oger 224a4ee825
Use root project rust targets for megazords 2019-04-18 20:02:03 -04:00
Edouard Oger 51390a436d
rc_crypto: Use ring backend on iOS 2019-04-18 18:15:28 -04:00
Thom Chiovoloni 95cd810f39
Enable reqwest viaduct backend on iOS 2019-04-18 10:41:01 -07:00
Edouard Oger a6bb093d3b
Do not automagically add nativeLibs to sourceSets 2019-04-17 16:30:54 -04:00
Thom Chiovoloni 60d2f9f8c7
Merge pull request #994 from mozilla/2018-idioms
Enable `rust_2018_idioms` lints everywhere
2019-04-16 12:35:12 -07:00
Thom Chiovoloni 8ed1225723
Turn on idiom lint warnings in all crate 2019-04-16 09:35:10 -07:00
Thom Chiovoloni bf93aed4b2
Run `cargo fix --edition-idioms --all-targets --all-features` 2019-04-16 09:35:10 -07:00
Thom Chiovoloni d62986209b
Expose bookmarks sync 2019-04-16 09:20:23 -07:00
Edouard Oger 7ec1742500
NSS crypto backend for SHA-256 digest 2019-04-11 17:33:03 -04:00
Thom Chiovoloni 170032e7f8
Remove reqwest backend from megazords (#937)
* Prevent reqwest from being compiled into anything other than non-megazords and tests

* Detect if the non-megazord backend got compiled in taskcluster

* Changelog entry for reqwest megazord removal
2019-04-11 11:38:56 -07:00
Edouard Oger 43a24a4958
Kill iOS components projects 2019-04-11 09:59:35 -04:00
Thom Chiovoloni 4ba9368778
Fix megazord build config 2019-04-10 09:28:11 -07:00
Thom Chiovoloni aac2e19084
Merge branch 'master' into fetch 2019-04-05 12:36:30 -07:00
Thom Chiovoloni c5466ebade
Merge pull request #917 from justindarc/fix-bridging-header
Fix issue #916 - Implicit import of bridging header warning
2019-04-04 13:11:11 -07:00
Justin D'Arcangelo 7b3ceef951
Fix import paths in MozillaAppServices.h 2019-04-04 16:07:30 -04:00
Justin D'Arcangelo 55dd06ec41
Update xcconfig files. 2019-04-04 15:35:24 -04:00
Thom Chiovoloni 80f97a314f
Merge pull request #915 from mozilla/strip-native-code-android
Strip native code by default, document debugging process
2019-04-04 11:29:58 -07:00
Justin D'Arcangelo fe2997da88
Fix issue #916 - Implicit import of bridging header warning 2019-04-04 14:18:58 -04:00
Thom Chiovoloni 6b942ff378
Strip native code by default, document debugging process 2019-04-04 10:58:43 -07:00
Thom Chiovoloni b58d0b4052
Undo weirdness with gradle dependencies since nothing seems to require it today... 2019-04-03 14:33:24 -07:00
Thom Chiovoloni c574d9916f
Configure viaduct at init time 2019-04-02 13:38:34 -07:00
Ryan Kelly e7532c59eb
feat(deps): Add docs and CI checks for dependency management. 2019-04-02 09:17:16 +11:00
Thom Chiovoloni 943df891e9
Fix tests, add a stopgap in case cargo's behavior changes (and they've indicated they'd like to change it before...) 2019-03-22 20:30:49 -07:00
Thom Chiovoloni bbc8615618
Add viaduct to the megazords 2019-03-22 19:40:31 -07:00
Edouard Oger 42d387bbd1 Per-module Taskcluster tasks 2019-03-20 15:11:07 -04:00
Thom Chiovoloni cbde4e342a Add #![allow(unknown_lints)] to all crates 2019-03-20 09:02:54 -07:00
Thom Chiovoloni 56a6764dd2
Bookmark APIs for iOS and Kotlin and implement them using the FFI (#743)
* Define conversions to/from protobuf types

* Define bookmark message types

* Add method of getting 'shallow' tree info

* Properly provide parent/position for items

* Add the rust side of the Bookmarks FFI

* Kotlin bookmarks FFI

* Copy xcode project over from logins to start places ios ffi

* places ios: C bindings for places

* protobuf setup for places ios (and docs)

* Fix some things that were annoying me about BookmarkRootGuid, and move it to it's own file

* Add a bookmarks FFI function to return all bookmarks with the requested URL

* Clean up leftover logins stuff in places ios

* Implement swift bookmarks API

* Fix bad comment and missing null check in kotlin bookmarks

* Try and add places to the iOS megazord (hit issue with msg_types name collision)

* Rename msg_types to be unique, finish integration with iOS megazord

* Finish documenting how to pass protobuf data back and forth for swift

* Comment tweak and change canEdit -> isRoot

* Small tweaks to the swift API (some renaming, change class => struct, etc)

* Don't require type in update (since it can't be changed), and handle errors better

* Undo struct -> class change since it subtly broke things

* Respond to feedback from justin

* Allow requesting a only the first level of folder children

* connUseAfterApiClosed -> connUseAfterAPIClosed

* WIP iOS tests

* Make iOS tests build

* Improve path handling for iOS

* Fix megazord test setup and document the weird testing steps that were needed

* Fix failing iOS tests

* Move protobuf-returning functions into their own file

* Add searchBookmarks function

* Use a sealed class and data classes in the kotlin API

* Require that callers of getBookmarksTree pass in the root and whether or not to fetch recursively, rather than using the most expensive possible default

* rename deleteBookmark => deleteBookmarkNode

* Use InterruptScope in the reader bookmark methods

* Fix rebase issue

* Allow interrupt() on iOS

* Use changes from #788 to make places xcode project build much faster

* Change `extern` to `public`, use fewer protobuf types in the rust because they make testing it painful

* More tests of new rust code

* Expose relevant errors over the FFI, and document them (also, fix the kotlin doc formatting)

* fix 'its' being wrong basically everywhere

* Fix many doc typos

* Use FfiStr in bookmarks

* Fix doc nit

* Make missing titles come through as '' for better API consistency

* Tests for the rest of the new rust functions

* Clarify doc nit

* Changelog entry for bookmark ffi

* Expose runMaintenance to Swift

* Handle NoItem => NoSuchGuid

* Rename places::storage::bookmarks::public to places::storage::bookmarks::public_node

* Lina's review feedback
2019-03-19 08:41:19 -07:00
Thom Chiovoloni 53b368cb1c Don't build iOS as release by default 2019-03-18 09:29:10 -07:00
Edouard Oger 6a82a80057 Move everything under org.mozilla.appservices 2019-03-14 15:59:09 -04:00
Edouard Oger fab94fdfc1
Produce Android x86_64 binaries (#731) 2019-03-07 18:26:00 -05:00
jrconlin 26352eb48b
feat: Add FFI Descriptors and integrate Push Component into Kotlin
This patch adds:
 * Kotlin FFI integration with unit tests
 * simplifies decryption to accept raw header values
 * adds new storage system

Closes  #693, #544, #543, #542
2019-03-05 16:29:09 -08:00
Edouard Oger 462ba74071 Move Data extension to its own file 2019-02-25 17:56:45 -05:00
Edouard Oger f078124dd4 Remove RustPointer class 2019-02-25 17:56:45 -05:00
Edouard Oger 899373230a Return AccessTokenInfo using protobufs 2019-02-25 16:42:37 -05:00
Edouard Oger c8bde70fef Re-implement the FxA persist callbacks in Swift
Callbacks across the FFI can be unsafe and for our use case
it is just easier to document which rust methods modify the internal FxA state
and trigger the persist callbacks from the Swift side after calling them.
2019-02-22 16:27:28 -05:00
Thom Chiovoloni 2cd323dfcd Hook swift implement bindings for rc_log, and hook it into the iOS megazord 2019-02-21 17:34:50 -08:00
Thom Chiovoloni 940a3bb2ed Finish up using protobufs in places, and document everything 2019-02-14 20:57:57 -08:00
Garvan Keeley 6539f02a28 Megazord for iOS
The grand patch with all we learned over past 3 days.
A key factor is that Xcode legacy build must be used, or
the build.sh files need to be changed to not touch the output .a
file unless it doesn't exist or the input files have changed.
The xcrun is called twice for each project (for device and sim) and
the second run fails to access the C/Rust .a files linked in the build script.
2019-02-14 16:37:18 -05:00
Edouard Oger 1f4b407288 Revert "Megazord (MozillaAppServices lib) for iOS (#657)"
This reverts commit ee0e17ebd0.
2019-02-12 18:53:23 -05:00
Garvan Keeley ee0e17ebd0
Megazord (MozillaAppServices lib) for iOS (#657)
* Build_megazord.sh for iOS added
* Xcode megazord project
* Update non-megazord projects to properly use SWIFT_OBJC_BRIDGING_HEADER.
* Rename and build as static framework
Add a readme
* Add build-carthage.sh for ios builds
2019-02-12 15:05:16 -05:00
Thom Chiovoloni 1ec71354e8 Mention logging in megazord descriptions 2019-02-01 11:22:07 -08:00
Thom Chiovoloni 25ba1f2b7d Add fenix megazord 2019-02-01 11:22:07 -08:00
Thom 0235e961f7
Implement a bridge from the rust log crate to android. (#472)
* Implement a bridge from the rust log crate to android.

* Ensure we still have logs available in non-megazord contexts

* Changelog entry

* Gradle plugin bump to 0.3.0

* Android version bump to v0.14.0
2019-01-23 11:31:03 -08:00
Nick Alexander 7b8eb59c14 Rename "composites" to "megazords". Fixes #471. 2018-12-14 11:23:46 -08:00