Kirill Kamakin
c810e0550a
Fix RemoteToLocalMappingsTest compilation
2022-08-07 12:00:29 +02:00
Kirill Kamakin
725b75211d
Simplify MealieDataSourceImpl
2022-08-07 11:42:36 +02:00
Kirill Kamakin
e0a4442e72
Create network module
2022-08-06 18:23:10 +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
057651c60f
Use intermediate representation for AddRecipe draft
2022-08-04 21:19:15 +02:00
Kirill Kamakin
e18f726da5
Implement adding recipes through app
2022-06-12 12:49:18 +02:00
Kirill Kamakin
ad1077510b
Add auth repo and storage tests
2022-04-08 23:03:36 +05:00
Kirill Kamakin
a3d320bb79
Fix logout button
2022-04-08 21:54:43 +05:00
Kirill Kamakin
7c081c199a
Replace AccountManager with EncryptedSharedPreferences
2022-04-08 20:07:32 +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
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
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
Kirill Kamakin
dfaa12907c
Move AuthService to impl package
2021-12-27 11:05:46 +03:00
Kirill Kamakin
edfac85e8e
Extract dagger modules to di package
2021-12-27 11:03:38 +03:00
Kirill Kamakin
339f8327de
Implement URL input format checks
2021-11-27 12:27:25 +03:00
Kirill Kamakin
b3d03c5281
Extract SharedPreferences extensions to a file
2021-11-27 00:19:49 +03:00
Kirill Kamakin
dc6084ee25
Move auth response handling to runCatching
...
runCatching is easier to read and understand than mapCatching
2021-11-27 00:18:56 +03:00
Kirill Kamakin
b5606f3241
Move network extensions to separate file
2021-11-27 00:18:12 +03:00
Kirill Kamakin
57babcbd1f
Fix using trySendBlocking where trySend must be
2021-11-23 23:48:53 +03:00
Kirill Kamakin
808e1ce359
Map auth errors to internal representation
2021-11-21 17:27:22 +03:00
Kirill Kamakin
dd9c302729
Reuse OkHttp instance
2021-11-20 22:23:51 +03:00
Kirill Kamakin
e39b8ae354
Provide SharedPreferences via Hilt
2021-11-20 15:36:13 +03:00
Kirill Kamakin
5866584d14
Replace "Mealie" with "Mealient" everywhere
2021-11-20 13:44:07 +03:00