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
b56f267979
Use viewLifecycleOwner to observe auth status
...
Even though views aren't modified when auth
status changes, we still need to operate
only when view is visible.
2022-04-02 18:12:32 +05:00
Kirill Kamakin
c8019e9c85
Implement hiding ingredients and instructions
2021-12-27 19:41:56 +03:00
Kirill Kamakin
50f6066416
Fix memory leaks found by LeakCanary
2021-12-27 14:26:35 +03:00
Kirill Kamakin
a36fec226d
Use view binding property delegate ( #22 )
2021-12-27 08:37:10 +00:00
Kirill Kamakin
9ea2facc8d
Extract recipe info adapters to ViewModel
2021-11-27 10:44:28 +03:00
Kirill Kamakin
715e63a1d4
Specify RecipeInfoFragment's layout managers in xml
2021-11-27 10:39:57 +03:00
Kirill Kamakin
cc5c9edb1f
Refactor RecipesFragment
...
This commit extracts SwipeRefreshLayout extension to a
separate file. Additionally, it refactors RecipesFragment in
order to move all the logic to the ViewModel from the View.
2021-11-27 00:22:52 +03:00
Kirill Kamakin
e701b5d7df
Show recipe info in bottom sheet dialog
2021-11-25 20:06:53 +03:00
Kirill Kamakin
d8b4245eef
Remove app title after user authenticates
2021-11-23 21:04:16 +03:00
Kirill Kamakin
a6e948ca6b
Fix calling navigateToAuth twice and even more
...
Calling that method several times in a row is not supported,
Navigation library throws an Exception saying it doesn't know how
to navigate there
2021-11-20 22:07:43 +03:00
Kirill Kamakin
8239f11f13
Add more verbose logging
2021-11-20 20:32:37 +03:00
Kirill Kamakin
1d2c5584a8
Read instructions step header from resources
2021-11-20 20:21:46 +03:00
Kirill Kamakin
0e4016150a
Observe auth statuses as LiveData, not Flow
2021-11-20 15:37:03 +03:00
Kirill Kamakin
5866584d14
Replace "Mealie" with "Mealient" everywhere
2021-11-20 13:44:07 +03:00