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
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
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
fd9f7e5aa1
Reorganize test code
2022-04-03 17:28:12 +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
90dbb180a0
Use runTest instead of runBlockingTest now
2021-12-27 12:14:28 +03:00
Kirill Kamakin
0586776a3e
Fix image loader duplicating slashes
2021-11-27 12:34:37 +03:00
Kirill Kamakin
339f8327de
Implement URL input format checks
2021-11-27 12:27:25 +03:00
Kirill Kamakin
20c19fd644
Move RoomTypeConverters to util
2021-11-27 00:17:18 +03:00
Kirill Kamakin
91078de1a7
Replace PagingSource factory with Google's impl
2021-11-26 19:39:44 +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
70c0df1cf7
Fix ConcurrentModificationException in RecipePagingSourceFactory
...
It seems that it is possible to launch several coroutines on same
main thread of application. That's why it is possible to launch both
invoke and invalidate at the same time even though they are marked as
synchronized. To fix the issue this commit uses a concurrent collection
instead of synchronization.
2021-11-20 21:13:26 +03:00
Kirill Kamakin
965b488eb4
Move shared test classes to root package
2021-11-20 21:09:12 +03:00
Kirill Kamakin
4b817ba404
Add disclaimer fragment
2021-11-20 18:43:33 +03:00
Kirill Kamakin
5866584d14
Replace "Mealie" with "Mealient" everywhere
2021-11-20 13:44:07 +03:00