Commit Graph

38 Commits

Author SHA1 Message Date
Matthew Chen
86b8eb08b8 Remove YapDatabase.
Apply asset from design.

Fix rebase breakage.
2021-03-25 11:41:16 -03:00
Matthew Chen
d0cbf8cfd0 Rework dependency access. 2021-03-25 09:24:27 -03:00
Matthew Chen
d82b6f8250 Create a new GRDB storage adapter after grdb schema migrations. 2021-01-27 09:45:12 -03:00
Matthew Chen
584a638993 Create a new GRDB storage adapter after grdb schema migrations. 2021-01-27 09:45:12 -03:00
Matthew Chen
ad6bda8a44 Rename singleton accessors. 2020-09-17 21:11:07 -03:00
Michael Kirk
71fcc1cd58 Ensure new-user schema migrations run
The "file exists" check doesn't work, because GRDB itself automatically creates
the database earlier on, so instead we inspect if any migrations exist in the
migrations table.

also removes a spurious main-thread check for a non-ui db accessor and renames
it to be more ergonomic.
2019-11-18 12:06:15 -07:00
Michael Kirk
f14a1b758c Run new user migrations whenever grdb file doesn't exist 2019-11-18 12:06:15 -07:00
Nora Trapp
65d54e7282 UIAlertController -> ActionSheetController 2019-10-28 14:43:59 -07:00
Matthew Chen
6ad154a862 Fix some of the broken tests. 2019-10-16 09:21:26 -03:00
Michael Kirk
37c4a9231f fix subsequent launches 2019-10-11 19:58:29 -07:00
Michael Kirk
75aa02cef9 Fix assumption that DB always exists with initial schema
It won't exist until we run the first migration.
2019-10-11 10:50:21 -07:00
Michael Kirk
3092bdf540 intern initial schema 2019-10-11 10:47:44 -07:00
Matthew Chen
0d1b172e81 Fix rebase breakage. 2019-08-26 13:18:49 -03:00
Matthew Chen
bdf6874c82 Fix rebase breakage. 2019-08-26 13:18:49 -03:00
Matthew Chen
a7a7499a8e Migrate more key-value stores. 2019-06-19 11:21:12 -04:00
Matthew Chen
882dd16d7c Apply presentAlert() throughout codebase. 2019-03-21 10:55:04 -04:00
Matthew Chen
c0922fc2c0 Remove LockInteractionController. 2019-01-08 13:52:36 -05:00
Matthew Chen
4556025566 Update migrations. 2018-11-28 16:01:12 -05:00
Matthew Chen
8110e0c765 Clean up usage of TSAccountManager. 2018-11-27 09:21:44 -05:00
Matthew Chen
1d40cbfb41 Rework account attributes; persist manual message fetch; add "unrestricted UD" setting. 2018-10-03 08:59:55 -04:00
Matthew Chen
b076f14964 Swift exit(). 2018-09-27 16:56:54 -04:00
Matthew Chen
e1db60c1c0 Rework creation of singletons. 2018-09-19 15:11:26 -04:00
Matthew Chen
3a12446be8 Modify environment accessors to use our 'shared' convention. 2018-09-07 16:20:41 -04:00
Michael Kirk
c7662b5a86 Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics
Going forward, we want to prefer safer asserts, but we don't want to blindly
apply crashing asserts across the codebase
2018-09-07 10:00:48 -06:00
Matthew Chen
cc5a480baa Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen
c0d486b1f1 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen
3a50377902 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen
45e782c243 Revamp orphan data cleaner. 2018-08-07 13:07:26 -04:00
Matthew Chen
7f23dfa258 Respond to CR. 2018-04-24 13:15:11 -04:00
Matthew Chen
2265ae08aa Don't start app version migrations until storage is ready. 2018-04-24 11:56:32 -04:00
Matthew Chen
d6f4db1523 Rename TSStorageManager to OWSPrimaryStorage. 2018-03-06 17:12:13 -03:00
Matthew Chen
3acdd84398 Elaborate request factory. 2018-03-02 15:05:14 -05:00
Matthew Chen
be1fde905c Don't mark app as ready until all version migrations are done. 2018-01-30 11:27:44 -05:00
Matthew Chen
aeeef43416 Register all database views asynchronously. 2018-01-30 10:30:28 -05:00
Matthew Chen
d52eba739d Clean up TSStorageManager usage. 2017-12-19 11:41:31 -05:00
Matthew Chen
85686d3144 Continue TSStorageManager refactor. 2017-12-19 11:41:30 -05:00
Matthew Chen
150f417a5e Clean up ahead of PR. 2017-12-05 11:32:19 -05:00
Matthew Chen
9da165b846 Continue conversion of app setup. 2017-12-05 11:19:11 -05:00