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

64 Коммитов

Автор SHA1 Сообщение Дата
JR Conlin 9c0a37f43b
feat: Handle default database paths better (#878)
* return the path in the error message
* specify defaults for `decrypt()` and `subscribe()`

Closes #868
2019-04-01 14:59:50 -07:00
JR Conlin 175573d6e6
feat: Additional requests from customer for PushManager code (#886)
* feat: Additional requests from customer for PushManager code

Closes #885

* f Add changelog
2019-04-01 09:40:42 -07:00
Thom Chiovoloni a35474c5bb
Cut release 0.23.0 2019-03-29 11:53:49 -07:00
Thom Chiovoloni f5a45204a0
Fix createBookmarkItem in android places. Fixes #880 2019-03-29 11:42:40 -07:00
jrconlin 06703aca40
f r's 2019-03-28 14:52:40 -07:00
Thom Chiovoloni ac777f1db1
Cut release 0.22.1 2019-03-27 12:03:08 -07:00
Thom Chiovoloni 0592ab5116
Use Weak<PlacesApi> in APIS. Fixes #749 2019-03-26 11:38:31 -07:00
Thom Chiovoloni f49fa05c84
Add wipeLocal, ensureUnlocked, and ensureLocked to swift logins. Fixes #854 2019-03-25 13:42:22 -07:00
Thom Chiovoloni 3793d9b857
Cut 0.22.0 2019-03-22 16:25:20 -07:00
Nick Alexander 7d14946f8f
Publish to mozilla-appservices bintray organization, not a personal bintray account. (#843) 2019-03-22 16:21:16 -07:00
Thom Chiovoloni 5f1b6865a3
Fix SQLCipher build options to match Firefox for iOS <=15.x. (#837) 2019-03-22 15:09:20 -07:00
Justin D'Arcangelo 63da2beef1
Fix SQLCipher build options to match Firefox for iOS <=15.x.
Add -DNDEBUG=1 back in.

Addressed review comments.

Updated changelog. Fixed additional options.

Had to go back to THREADSAFE=1 since the SQLCipher configure script overwrites it.
2019-03-22 17:43:02 -04:00
Edouard Oger f5c324f978
Suppress detekt failures 2019-03-22 17:22:12 -04:00
Thom Chiovoloni 98f41148d9
Allow disabling memory security, and ensure we have secure_delete on in encrypted logins connections 2019-03-22 12:16:51 -07:00
Thom Chiovoloni 82ba3d1354 Cut release 0.21.0 (now with bookmarks) 2019-03-20 12:51:48 -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
Grisha Kruglov aeccdb4c8e Bump version to 0.20.2 2019-03-18 10:00:33 -07:00
Thom Chiovoloni d4d7196401 Release 0.20.1 2019-03-15 09:31:48 -07:00
Thom Chiovoloni ac0ddc74e7 Release v0.20.0 2019-03-14 13:42:59 -07:00
Thom Chiovoloni dff7532f10 Rename places classes after feedback from a-c 2019-03-14 12:53:23 -07:00
Thom Chiovoloni 4fcb207877 Cut v0.19.0 release 2019-03-13 18:14:51 -07:00
Thom 6a7774599b
Refactor places connection management (#718)
* This is a proof-of-concept for how we might manage connections.

It is currently in a good enough state to see if the idea is worth pursuing.
At a minimum, and before landing, we'd:

* split the schema.rs changes into its own PR - they aren't strictly needed
  for what this patch does.

* Probably move PlacesAPI into its own source file, and better consider
  threading considerations - the PlacesAPI instance will end up being called
  from multiple threads (although the stuff we hand out shouldn't be)

* Manage the "sync" connection similarly to how we manage the "write"
  connection. The PlacesAPI object is probably also where the sync "store"
  objects can live (as currently we create brand new stores each sync, which
  isn't as optimized as it should be)

* FFI changes needed to support this - this would be a breaking change, but
  shouldn't be too difficult to manage.

* Lots of other cleanup - I figured I'd get comments on the general approach
  before spending much time cleaning things up.

So by all means, offer all suggestions, but the main thing I'd like from this
is general approval that we should go ahead with this.

* Flesh out the Api more, including the Kotlin side of the fence

* First cut at Thom's feedback

* Fix nit: IOError => IoError

* Return writer connection to API when finished with it, ensure there's only one in kotlin

* Avoid duplication of rustCall

* Detect closing a connection on a different API than the one that opened it.

* Tests for PlacesApi::close_connection

* Fix busted benchmarks

* Address review feedback

* Changelog entry for connection types refactor

* Document thread-safety of places API
2019-03-05 12:03:33 -08:00
Edouard Oger 773019431b Version bump to v0.18.0 2019-02-27 15:54:47 -05:00
Edouard Oger 23f4c2c976 Prefix types defined in RustFxAFFI.h 2019-02-25 17:56:45 -05:00
Thom Chiovoloni 8b46ce3c08 Mention swift rc_log in changelog 2019-02-21 17:34:50 -08:00
Thom Chiovoloni cef239934e Changelog entry for punycode fix 2019-02-19 20:18:32 -08:00
Thom Chiovoloni bb9703f185 Version bump to v0.17.0 2019-02-19 13:26:52 -08:00
Thom Chiovoloni 13bcb450fd Origins changelog 2019-02-19 13:04:43 -08:00
Thom Chiovoloni 2130d0691c Changelog entry for deleteEverything. Fixes #647 2019-02-19 11:43:12 -08:00
Edouard Oger 984f19d642 Make Profile a data class 2019-02-15 16:53:32 -05:00
Thom Chiovoloni d289393c47 Changelog entries for pruning APIs. Fixes #611 2019-02-14 12:19:01 -08:00
Thom Chiovoloni a0275876e9 Fixup bad changelog automerge 2019-02-12 22:43:08 -08:00
Thom Chiovoloni 9e060581e9 Add a richer API for getting the set of visited pages. Fixes #619 2019-02-12 22:43:08 -08:00
Thom Chiovoloni 65bc158000 Changelog for the deletion APIs, Fixes 2/3rds of #621 2019-02-12 22:43:08 -08:00
Edouard Oger 365390dfee Use protobuf for fxa_profile return value 2019-02-12 19:09:45 -05:00
Thom Chiovoloni fcacb1531c Version bump to v0.16.1 2019-02-08 12:36:35 -08:00
Thom Chiovoloni d930f077b1 Use a transaction when initializing or upgrading the logins database's schema. Fixes #642 2019-02-08 11:19:32 -08:00
Thom Chiovoloni 1e1338bd5a Fix issue where iOS errors are not reported. Fixes #640 2019-02-08 09:44:21 -08:00
Thom Chiovoloni 581deb7765 Fix bug where LoginRecord would turn nil into empty strings improperly. Fixes #623 2019-02-08 09:44:21 -08:00
Ryan Kelly 01c33a033d Cut v0.16.0 release. 2019-02-07 08:47:54 -08:00
Ryan Kelly 91a10d8d7b
Update README and split docs into "consumer" and "contributor" docs.
The website now publishes only consmer-facing documentation
found in ./docs/product-portal/.  The rest of the ./docs/ folder
can be for internal contributor documentation such as how-to guides.
2019-02-05 13:44:48 +11:00
Joe Gasiorek 2ed0fe216e Make Avatar struct members public (#615) 2019-02-04 10:58:44 -05:00
Thom Chiovoloni a1be5266a5 Changelog entry 2019-02-01 14:51:53 -08:00
Thom Chiovoloni b094e675b3 Fix bad changelog automerge from 36cff28 2019-02-01 13:43:38 -08:00
Thom Chiovoloni 36cff286a9 Allow some places operations to be cancelled via an `interrupt` method. 2019-02-01 13:11:45 -08:00
Thom Chiovoloni 14c1198bae Cut v0.15.0 release 2019-02-01 11:46:16 -08:00
Thom Chiovoloni 25ba1f2b7d Add fenix megazord 2019-02-01 11:22:07 -08:00
Thom Chiovoloni c6119d78f6 Fix dubious error handling in logins and bug in ffi_support 2019-02-01 09:48:24 -08:00
Thom Chiovoloni 933a55d1e3 Add a match_url function to places 2019-01-31 16:43:31 -08:00
Thom Chiovoloni 7b6e53c78f Add changelog entry about faster autocomplete 2019-01-31 13:46:40 -08:00