Commit Graph

72 Commits

Author SHA1 Message Date
Kirill Kamakin
5c5bfdedd3 Fix sending duplicate requests 2022-10-29 19:22:54 +02:00
Kirill Kamakin
b2ff374cef Use server info repo in ViewModel 2022-10-29 19:19:20 +02:00
Kirill Kamakin
cda22215ec Extract server info repo 2022-10-29 19:15:57 +02:00
Kirill Kamakin
f2b20024eb Request both versions simultaneously 2022-10-29 18:26:29 +02:00
Kirill Kamakin
7702dbebd1 Move V0 responses to v0 package 2022-10-29 18:15:10 +02:00
Kirill Kamakin
47addc3b90 Fix opening recipes on v0.5.6 2022-10-29 17:46:28 +02:00
Kirill Kamakin
45b1b07372 Fix absent images on v0.5.6 2022-10-29 17:33:39 +02:00
Kirill Kamakin
4577aac8fc Check version if it is unknown 2022-10-29 17:14:24 +02:00
Kirill Kamakin
17fc2f62bd Check version when requesting recipes 2022-10-29 17:09:42 +02:00
Kirill Kamakin
1502d3db9d Return V1 version response from V1 data source 2022-10-29 16:57:21 +02:00
Kirill Kamakin
da33bc2730 Remove v1 version from v0 data source 2022-10-29 16:50:13 +02:00
Kirill Kamakin
1f5234d123 Allow viewing recipes on V1 2022-10-29 16:40:19 +02:00
Kirill Kamakin
95205f8ffe Initialize v1 support 2022-08-14 18:19:42 +02:00
Kirill Kamakin
c810e0550a Fix RemoteToLocalMappingsTest compilation 2022-08-07 12:00:29 +02:00
Kirill Kamakin
ec10eab888 Remove unused default parameters 2022-08-07 11:52:27 +02:00
Kirill Kamakin
725b75211d Simplify MealieDataSourceImpl 2022-08-07 11:42:36 +02:00
Kirill Kamakin
35566d8fa9 Hide MealieDataSourceWrapper behind interfaces 2022-08-07 11:00:19 +02:00
Kirill Kamakin
e0a4442e72 Create network module 2022-08-06 18:23:10 +02:00
Kirill Kamakin
715f99a6ed Use AddRecipeRequest mappers 2022-08-05 21:57:55 +02:00
Kirill Kamakin
81e06dc1d8 Simplify logAndMapErrors calls 2022-08-05 21:54:52 +02:00
Kirill Kamakin
107bb64256 Replace Timber with Logger 2022-08-05 20:16:29 +02:00
Kirill Kamakin
ba5f7322ab Implement logging module 2022-08-05 18:58:21 +02:00
Kirill Kamakin
057651c60f Use intermediate representation for AddRecipe draft 2022-08-04 21:19:15 +02:00
Kirill Kamakin
8784912cdb Extract AddRecipeInput proto file to a module 2022-08-04 20:53:26 +02:00
Kirill Kamakin
53b40bbc60 Extract database module 2022-08-04 19:34:21 +02:00
Kirill Kamakin
e18f726da5 Implement adding recipes through app 2022-06-12 12:49:18 +02:00
Kirill Kamakin
3079cd9588 Implement Glide image preload in RecyclerView 2022-04-18 18:08:06 +02:00
Kirill Kamakin
2686f757ea Replace Picasso with Glide 2022-04-18 13:17:07 +02:00
Kirill Kamakin
a5ae5e91cd Disable Picasso logging 2022-04-09 17:32:18 +05:00
Kirill Kamakin
ad1077510b Add auth repo and storage tests 2022-04-08 23:03:36 +05:00
Kirill Kamakin
869fa21e3f Make code more readable 2022-04-08 22:08:21 +05:00
Kirill Kamakin
a3d320bb79 Fix logout button 2022-04-08 21:54:43 +05:00
Kirill Kamakin
0a854947a9 Move base url implementation to impl package 2022-04-08 20:10:13 +05:00
Kirill Kamakin
7c081c199a Replace AccountManager with EncryptedSharedPreferences 2022-04-08 20:07:32 +05:00
Kirill Kamakin
d1578afab9 Fix AuthenticationInterceptor calling getAuthHeader twice 2022-04-08 17:54:23 +05:00
Kirill Kamakin
b129913a82 Clear unused and fix tests 2022-04-08 17:54:23 +05:00
Kirill Kamakin
d40793104f Fix recursive calls to getAuthToken 2022-04-08 17:54:23 +05:00
Kirill Kamakin
76a49a41a1 Implement token invalidation 2022-04-08 17:54:23 +05:00
Kirill Kamakin
57f4ec4e22 Implement the simplest account manager authentication 2022-04-08 17:54:22 +05:00
Kirill Kamakin
096b5389bd Use AccountManager 2022-04-08 17:54:21 +05:00
Kirill Kamakin
0c3767645c Implement migration from 1 to 2 2022-04-06 15:30:51 +05:00
Kirill Kamakin
eca325ebe4 Simplify error handling 2022-04-05 15:35:18 +05:00
Kirill Kamakin
468aa8c02a Implement login/logout functionality 2022-04-04 16:42:22 +05:00
Kirill Kamakin
f44f54522d Extract Base URL from authentication 2022-04-04 03:34:50 +05:00
Kirill Kamakin
617bcc7eae Reduce page size to something more efficient 2022-04-04 02:38:47 +05:00
Kirill Kamakin
ef2aa5b412 Allow recipe image to be null 2022-04-04 02:37:51 +05:00
Kirill Kamakin
b3e25db4df Replace Shared Preferences with Data Store 2022-04-03 19:59:57 +05:00
Kirill Kamakin
ec5d05c819 Use @Singleton where possible 2022-04-03 17:24:38 +05:00
Kirill Kamakin
8fee0c3a3d Reorganize code 2022-04-03 17:21:18 +05:00
Kirill Kamakin
7fc2887dc7 Major code refactoring
Main goals are:
1. Ability to use mocks in unit tests instead of
having to setup mock web server as if it was an
integration test.
2. Cache Retrofit services in memory
3. Make it easier to read
4. Use OptIn where possible instead of propagating
Experimental* annotations everywhere
2022-04-03 00:17:28 +05:00