Commit Graph

80 Commits

Author SHA1 Message Date
Jordan Rose
82becbdefc Always try to clean up storage service records with unknown fields
Previously we would only do this if we could handle *all* unknown
fields, but these days we sometimes have more than one unknown field
and learn about one at a time.
2022-01-07 13:55:47 -08:00
Nora Trapp
2814ab7629 Convert to new Promise library 2021-09-03 11:41:34 -07:00
Matthew Chen
fcdca12cf5 Deprecate REST, Part 1
* Port socket manager to Swift.
* Clean up HTTP request success/failure state & errors.
* Rework network manager.
* Rework HTTP errors.
* Rework errors "properties": isRetryable, etc.
* Fix test breakage.
2021-08-18 14:25:36 -03:00
Nora Trapp
858b87ac51 Restrict various AppReadiness blocks to main app only 2021-06-24 12:20:46 -07:00
Nora Trapp
bb59b27958 Avoid duplicate message fetch in NSE 2021-06-16 11:40:06 -07:00
Matthew Chen
742d26a5e6 Update Cocoapods. 2021-04-06 13:57:07 -03:00
Matthew Chen
590067499a Payments entropy, storage service, backup + restore flows.
* Update how payments state is stored in storage service.
* Build 'view passphrase' UI flow.
* Build 'restore payments wallet' UI flow.
* Rework the 'view passphrase' UI flow.
2021-04-06 13:57:07 -03:00
Matthew Chen
d0cbf8cfd0 Rework dependency access. 2021-03-25 09:24:27 -03:00
Matthew Chen
645bd76bd5 Rework app readiness. 2021-02-04 09:55:39 -03:00
Jordan Rose
c7b6ba7010 Make OWSAccountIdFinder's methods into class methods
OWSAccountIdFinder is no longer used for dependency injection in
SignalMetadataKit, so there's no need to allocate empty NSObjects just
to call the methods.

No functionality change.
2021-01-28 12:03:50 -08:00
Matthew Chen
34b6da7b2f Fix build warnings; fix crash around url session errors. 2021-01-23 23:10:54 -03:00
Jordan Rose
87c6355222 Protobuf: Regenerate wrappers for Swift-only protos
And update clients to match (mostly let -> var, but some dropping of
@objc and Equatable as well)
2020-11-17 12:46:26 -08:00
Matthew Chen
ed9ae2ec9f Migrate groups from v1 to v2. 2020-10-30 09:04:12 -03:00
Matthew Chen
d364796d9d Remote obsolete remote config & feature flags around gv2. 2020-10-08 17:24:11 -03:00
Matthew Chen
ad6bda8a44 Rename singleton accessors. 2020-09-17 21:11:07 -03:00
Matthew Chen
debfabda42 Refine error retry handling. 2020-08-13 10:32:40 -03:00
Nora Trapp
d7ef3405e2 Update storage service unknown fields when writing to the manifest 2020-07-24 13:21:21 -07:00
Nora Trapp
115ea3be12 Force refetch the latest manifest after cleaning up unknown identifiers 2020-07-22 14:43:24 -07:00
Nora Trapp
f2d96d02ec Maintain unknown fields when updating storage records 2020-07-22 14:43:24 -07:00
Nora Trapp
ee9a56dc4b Clean up orphaned accounts from storage service 2020-07-22 14:33:07 -07:00
Matthew Chen
269309de01 Add remote config for modern CDS and groups v2. 2020-07-22 13:04:33 -03:00
Nora Trapp
b104082f0d Merge branch 'release/3.9.0' 2020-05-22 14:12:54 -07:00
Nora Trapp
eac6f89dc5 Remove storage service feature flag 2020-05-22 13:11:14 -07:00
Matthew Chen
6b4f192b1b Remove usage of retainUntilComplete. 2020-05-22 09:51:12 -03:00
Matthew Chen
8755b371c1 Try to reduce 0x8badf00d crashes by performing "app did become ready" block one-by-one.; Reduce overall frequency of checkpoints. 2020-05-04 22:02:23 -03:00
Matthew Chen
63de16cd88 Avoid and be robust to duplicate identifiers in storage service manifests. 2020-04-27 13:25:29 -03:00
Nora Trapp
0816aa748a PR Feedback 2020-03-24 17:11:02 -07:00
Nora Trapp
89450058b4 More proto changes: flatten and limit account to relevant data 2020-03-24 17:11:02 -07:00
Nora Trapp
9c291c94ed Treat groupv2 storage records as unknown until the feature is enabled 2020-03-24 17:11:02 -07:00
Nora Trapp
6a39e3d174 Sync archived status with storage service 2020-03-24 17:11:02 -07:00
Nora Trapp
0849c45f21 Add support for Account record to storage service 2020-03-24 17:11:01 -07:00
Nora Trapp
e6178d54a6 Use proto3 for storage service 2020-03-24 17:11:01 -07:00
Matthew Chen
20aeb8df44 Merge remote-tracking branch 'private/release/3.6.0' 2020-03-02 13:39:20 -03:00
Matthew Chen
6a83554c68 Small fixes for the groups v2 work related to storage service. 2020-02-28 16:06:41 -03:00
Matthew Chen
d6d6693b7d Fix bug in storage service manager. 2020-02-27 15:29:36 -03:00
Matthew Chen
4489df8b60 Respond to CR. 2020-02-27 10:25:20 -03:00
Matthew Chen
1c9d4e81a6 Add support for v2 groups to storage service. 2020-02-27 10:01:34 -03:00
Matthew Chen
bcc2a4593c Add support for v2 groups to storage service. 2020-02-27 10:01:34 -03:00
Matthew Chen
24fd4d071e Add support for v2 groups to storage service. 2020-02-27 09:54:49 -03:00
Matthew Chen
32fed290bd Add support for v2 groups to storage service. 2020-02-27 09:53:55 -03:00
Matthew Chen
0c5148f4b7 Add support for v2 groups to storage service. 2020-02-27 09:53:55 -03:00
Nora Trapp
63bedcb33b Specify local version when fetching storage manifest 2020-02-25 12:29:20 -07:00
Matthew Chen
c0547f33d2 Merge remote-tracking branch 'private/release/3.5.0' 2020-02-24 20:29:33 -03:00
Matthew Chen
b8ddecdcb8 Ensure StorageServiceManager is a singleton. 2020-02-24 16:29:08 -03:00
Matthew Chen
2fa5c94d24 Ensure StorageServiceManager is a singleton. 2020-02-24 16:29:08 -03:00
Matthew Chen
ddd2e5123d Combine StorageServiceManager.shared with SSKEnvironment. 2020-02-24 16:29:08 -03:00
Nora Trapp
0665166f13 Rotate the storage service key 2020-02-21 22:22:11 -08:00
Nora Trapp
786d42773f Re-add orphaned records after manifest merges 2020-02-21 21:45:18 -08:00
Nora Trapp
6ebdb6ebf5 Clear out missing accounts from local storage records. 2020-02-21 19:35:48 -08:00
Nora Trapp
f4b5977da5 Be more explicit about when we need to delete all records from the storage service. 2020-02-21 18:06:08 -08:00