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

89 Коммитов

Автор SHA1 Сообщение Дата
Thom Chiovoloni 6f272696c3
Remove support for creating encrypted places databases. Fixes #950 2019-04-18 16:57:55 -07:00
Thom Chiovoloni 535f42be03
Cut release 0.26.2 2019-04-18 16:01:07 -07:00
Thom Chiovoloni 5b6fb1d979
Cut release 0.26.1 2019-04-18 12:11:26 -07:00
Thom Chiovoloni 95cd810f39
Enable reqwest viaduct backend on iOS 2019-04-18 10:41:01 -07:00
Thom Chiovoloni c3a2ed5558
Cut release 0.26.0 2019-04-17 14:24:40 -07:00
Thom Chiovoloni 5fccf25517
Merge pull request #1016 from mozilla/logins-interrupt
Interruptable logins
2019-04-17 14:17:23 -07:00
Thom Chiovoloni 64b556476f
Add new history methods to changelog 2019-04-17 13:16:16 -07:00
Thom Chiovoloni 28b430b333
Expose interrupt in logins API (iOS only). Fixes #884 2019-04-17 12:47:33 -07:00
Vlad Filippov 5e0696240d
Merge pull request #993 from mozilla/rm-gradle-bintray-repo
Do not inject the appservices bintray repo in the gradle-plugin
2019-04-17 12:00:11 -04:00
Vlad Filippov 2e077dd2f4
Do not inject the appservices bintray repo in the gradle-plugin
Fixes #899
2019-04-17 11:30:49 -04:00
Thom Chiovoloni d62986209b
Expose bookmarks sync 2019-04-16 09:20:23 -07:00
JR Conlin ec43831a57
bug: Only use Auth header if auth provided by server. (#981)
This also includes fixes noted during client build:

* return authoritative, server provided ChannelID to Kotlin layer
* use authoritative ChannelID when storing records
* normalize "channel_id" var names where appropriate
* fix missspellings in comments
* double check that fetching subscriptions w/ same UAID&CHID return same sub info
* tests more closely match real usage (use GUID like values)
* deleting all subscriptions also deletes UAID and Auth from meta-data
* bottleneck db in tests so we can switch between file and memory based

Closes #978, #980
2019-04-15 09:07:37 -07:00
Edouard Oger 7ec1742500
NSS crypto backend for SHA-256 digest 2019-04-11 17:33:03 -04:00
Thom Chiovoloni ab12138582
Try for 0.25.2... 2019-04-11 13:24:33 -07:00
Thom Chiovoloni 006b9d8d22
Replace 0.25.0 with 0.25.1 since 0.25.0 was a failure 2019-04-11 12:42:46 -07:00
Thom Chiovoloni 86b6a477b9
Cut release 0.25.0 (#965) 2019-04-11 11:42:49 -07: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 cb1c3d0da0
Changelog entry for networking/megazord fixes 2019-04-10 15:46:59 -07:00
JR Conlin 570f3fa32a
bug: store meta-data for push component in the database. (#907)
bug: store meta-data for push component in the database.

Push now stores uaid and the server secret auth in a table in the
push.db. the meta_data table allows any key/value data to be stored to
allow for additional future values (if needed).

Closes #905
2019-04-09 20:37:21 -07:00
Thom Chiovoloni d7daee2f29
Release 0.24.0 2019-04-08 10:02:49 -07:00
Justin D'Arcangelo 579b16325d
Update changelog. 2019-04-08 12:38:58 -04:00
Thom Chiovoloni aac2e19084
Merge branch 'master' into fetch 2019-04-05 12:36:30 -07:00
Thom Chiovoloni 6b942ff378
Strip native code by default, document debugging process 2019-04-04 10:58:43 -07:00
Thom Chiovoloni c574d9916f
Configure viaduct at init time 2019-04-02 13:38:34 -07:00
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