Commit Graph

544 Commits

Author SHA1 Message Date
Kirill Kamakin
d772c33a36 Update LICENSE year 2022-04-05 14:54:59 +05:00
Kirill Kamakin
163d14eaba Merge pull request #33 from kirmanak/version
Bump version to 0.1.6
2022-04-04 21:25:39 +05:00
Kirill Kamakin
9d09280522 Bump version to 0.1.6 2022-04-04 21:20:30 +05:00
Kirill Kamakin
97ffbff89a Trim e-mail and username to ease the login process
Spaces aren't visible in EditText and it's possible to
get authentication errors because of that invisible space.
2022-04-04 21:19:57 +05:00
Kirill Kamakin
2e5684c8a3 Merge pull request #32 from kirmanak/fixes
Fix several issues
2022-04-04 21:00:15 +05:00
Kirill Kamakin
f14afd2ebe Fix IllegalStateException when clicking login after logout
The previous login result was stored as live data and
prevented AuthenticationFragment from being shown
properly. However, an attempt to destroy RecipesFragment
was made. This attempt caused IllegalStateException
when accessing view in onDestroyView.
2022-04-04 20:52:14 +05:00
Kirill Kamakin
fb10333c2c Fix showing login/logout button on initial screens 2022-04-04 19:34:21 +05:00
Kirill Kamakin
c98feceab4 Fix pressing back on AuthenticationFragment
If login request isn't disabled when user presses
back then they might get navigated back to
authentication again.
2022-04-04 18:54:48 +05:00
Kirill Kamakin
e6dbff4a67 Fix IllegalStateException when inflating menu 2022-04-04 18:52:19 +05:00
Kirill Kamakin
0a120bb291 Merge pull request #31 from kirmanak/version
Bump version to 0.1.5
2022-04-04 16:53:04 +05:00
Kirill Kamakin
2ba1badb99 Bump version to 0.1.5 2022-04-04 16:48:30 +05:00
Kirill Kamakin
2fa92b49c9 Merge pull request #30 from kirmanak/authenticator
Split URL input and authorization
2022-04-04 16:47:46 +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
2f3260beb4 Merge pull request #29 from kirmanak/data-store
Migrate from Shared Preferences to Data Store
2022-04-03 20:07:24 +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
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
984415bfb2 Merge pull request #28 from kirmanak/refactoring
Refactoring
2022-04-03 01:39:27 +05:00
Kirill Kamakin
915ffa521b Use @Singleton where possible 2022-04-03 00:34:29 +05:00
Kirill Kamakin
1b97504c7a Update minSdk to 23 2022-04-03 00:33:20 +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
405d983a90 Merge pull request #27 from kirmanak/update-version
Update versions of dependencies
2022-04-02 18:16:50 +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
9315aead12 Update JDK version in GitHub Actions 2022-04-02 18:08:14 +05:00
Kirill Kamakin
706f981cca Suppress Room warning 2022-04-02 18:08:14 +05:00
Kirill Kamakin
b3093b4bb3 Update versions of dependencies 2022-04-02 18:08:14 +05:00
Kirill Kamakin
8399b0014a Bump version to v0.1.4 (#26) 2021-12-27 16:58:14 +00:00
Kirill Kamakin
941089c53b Merge pull request #25 from kirmanak/recipe-info-ui
Improve recipe info UI
2021-12-27 19:48:12 +03:00
Kirill Kamakin
c8019e9c85 Implement hiding ingredients and instructions 2021-12-27 19:41:56 +03:00
Kirill Kamakin
6232af2295 Improve recipe info screen UI 2021-12-27 14:47:53 +03:00
Kirill Kamakin
d9397f4168 Merge pull request #24 from kirmanak/flipper
Use Flipper instead of Stetho
2021-12-27 14:40:22 +03:00
Kirill Kamakin
50f6066416 Fix memory leaks found by LeakCanary 2021-12-27 14:26:35 +03:00
Kirill Kamakin
25f14226df Replace Stetho with Flipper, add LeakCanary 2021-12-27 14:26:35 +03:00
Kirill Kamakin
81fb1ae984 Revert "Add Stetho to debug application (#18)"
This reverts commit cc2fb772
Stetho seems to be unmaintained anymore
It also doesn't work with latest Chrome
2021-12-27 12:31:34 +03:00
Kirill Kamakin
412bd190be Merge pull request #23 from kirmanak/dependencies
Update versions of dependencies
2021-12-27 12:27:51 +03:00
Kirill Kamakin
90dbb180a0 Use runTest instead of runBlockingTest now 2021-12-27 12:14:28 +03:00
Kirill Kamakin
6bf78a6177 Disable R8 warnings regarding OkHttp's dependencies 2021-12-27 11:50:03 +03:00
Kirill Kamakin
227fc9b0ff Bump versions of dependencies 2021-12-27 11:50:03 +03:00
Kirill Kamakin
d4bb53f892 Specify OkHttp version via the bill of materials (BOM) 2021-12-27 11:50:02 +03:00
Kirill Kamakin
a36fec226d Use view binding property delegate (#22) 2021-12-27 08:37:10 +00:00
Kirill Kamakin
7bd9d20e9d Merge pull request #21 from kirmanak/structure
Simplify classes structure
2021-12-27 11:12:25 +03: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
fbd6f5574b Merge pull request #20 from daBaret/master
Fix background color for dark theme
2021-12-24 22:55:28 +03:00
Davide Baret
9396fab237 Fix background color for dark theme 2021-12-24 20:05:33 +01:00
Kirill Kamakin
b5249e4bf6 Replace Glide with Picasso (#19) 2021-11-28 13:41:21 +00:00