Commit Graph

83 Commits

Author SHA1 Message Date
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
8239f11f13 Add more verbose logging 2021-11-20 20:32:37 +03:00
Kirill Kamakin
32b9e2b32c Add Russian translation 2021-11-20 20:28:58 +03:00
Kirill Kamakin
1d2c5584a8 Read instructions step header from resources 2021-11-20 20:21:46 +03:00
Kirill Kamakin
ff4be6807f Add splash screen 2021-11-20 20:11:19 +03:00
Kirill Kamakin
4b817ba404 Add disclaimer fragment 2021-11-20 18:43:33 +03:00
Kirill Kamakin
0e4016150a Observe auth statuses as LiveData, not Flow 2021-11-20 15:37:03 +03:00
Kirill Kamakin
e39b8ae354 Provide SharedPreferences via Hilt 2021-11-20 15:36:13 +03:00
Kirill Kamakin
1985764340 Fix ConcurrentModificationException caused by coroutines 2021-11-20 14:07:09 +03:00
Kirill Kamakin
5866584d14 Replace "Mealie" with "Mealient" everywhere 2021-11-20 13:44:07 +03:00
Kirill Kamakin
9d948616c9 Remove empty file 2021-11-20 00:47:37 +03:00
Kirill Kamakin
dd33004c6f Add loadRecipeInfo tests 2021-11-20 00:43:00 +03:00
Kirill Kamakin
2f825361cd Add saveRecipeInfo tests 2021-11-20 00:07:01 +03:00
Kirill Kamakin
d64a49b31f Fix opening recipe info without ingredients/instructions 2021-11-17 23:21:37 +03:00
Kirill Kamakin
a67a3a5de0 Implement opening of recipe info card 2021-11-17 22:59:01 +03:00
Kirill Kamakin
7ebe89adfc Implement loading and saving full recipe info 2021-11-17 20:44:14 +03:00
Kirill Kamakin
de6ca65b19 Rename RecipeEntity to RecipeSummaryEntity 2021-11-17 19:34:45 +03:00
Kirill Kamakin
c2129c763e Implement proper loading of recipe summaries 2021-11-16 22:41:21 +03:00
Kirill Kamakin
c3cc48e911 Update diff callback logic 2021-11-15 19:43:30 +03:00
Kirill Kamakin
9da3c44d40 Support showing placeholders in recipe view holders 2021-11-15 19:43:30 +03:00
Kirill Kamakin
96d337e7a1 Fit image 2021-11-15 19:43:30 +03:00
Kirill Kamakin
37e89d0c2b Allow loading images from null urls with Glide 2021-11-15 19:43:30 +03:00
Kirill Kamakin
e2050f3f28 Fix attempts to load images with null slug 2021-11-15 19:43:30 +03:00
Kirill Kamakin
99c5d24a98 Extract recipe view holder to separate file 2021-11-15 19:43:29 +03:00
Kirill Kamakin
5040582fdf Remove excessive logging 2021-11-15 19:38:39 +03:00
Kirill Kamakin
9401539ee9 Reduce amount of logged info 2021-11-15 19:38:39 +03:00
Kirill Kamakin
e4ec2a9e94 Reuse menu option name as its content description 2021-11-14 11:55:44 +03:00
Kirill Kamakin
7e1576e8f6 Implement logout feature 2021-11-14 11:51:31 +03:00
Kirill Kamakin
670dcbccc8 Fix showing logout option by default 2021-11-14 10:46:17 +03:00
Kirill Kamakin
07484113d5 Implement showing logout menu option 2021-11-14 10:39:25 +03:00
Kirill Kamakin
641106260d Add more verbose logging 2021-11-14 10:34:54 +03:00
Kirill Kamakin
698d93b351 Implement observing authentication statuses 2021-11-14 10:27:45 +03:00
Kirill Kamakin
1a136b6ade Replace action bar with material toolbar 2021-11-14 09:41:30 +03:00
Kirill Kamakin
587b9609c3 Update layout of view holders for recipes 2021-11-13 21:15:53 +03:00
Kirill Kamakin
a8e91522fd Add saveRecipes tests 2021-11-13 20:49:27 +03:00
Kirill Kamakin
e097d6c690 Add queryAllCategoryRecipes and queryAllTagRecipes for tests 2021-11-13 20:46:12 +03:00
Kirill Kamakin
12ebf8d968 Add queryAllRecipes method useful in tests 2021-11-13 19:25:29 +03:00
Kirill Kamakin
4b9b0593ed Set manifest for tests 2021-11-13 19:25:12 +03:00
Kirill Kamakin
4c8fdad38e Add RoomTypeConverters tests 2021-11-13 19:03:25 +03:00
Kirill Kamakin
0ff9afa4c6 Add OkHttpBuilder tests 2021-11-13 19:03:13 +03:00
Kirill Kamakin
c5e116549d Do not add logging interceptor to release builds 2021-11-13 15:12:09 +00:00
Kirill Kamakin
0398a6403e Add AuthRepoImpl tests 2021-11-13 17:49:43 +03:00
Kirill Kamakin
22d19b4c04 Extract generic test code 2021-11-13 17:49:35 +03:00
Kirill Kamakin
dd74715818 Use SingletonComponent everywhere to make it easier to test 2021-11-13 17:38:46 +03:00
Kirill Kamakin
740dd12f3b Enable lint rules and fix found issues 2021-11-13 16:46:00 +03:00
Kirill Kamakin
dc518555e8 Fix logging reference to PagingData 2021-11-13 15:09:39 +03:00
Kirill Kamakin
31fc27ebef Fix parsing of null descriptions 2021-11-13 15:09:39 +03:00
Kirill Kamakin
284f32588f Add new launcher icon 2021-11-13 15:09:39 +03:00
Kirill Kamakin
734dff68a7 Use margin instead of four attrs with same value 2021-11-13 15:09:38 +03:00