Commit Graph

102 Commits

Author SHA1 Message Date
renovate[bot]
725f4bc1ea Update dependency io.mockk:mockk to v1.13.10 (#223)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 19:07:07 +00:00
renovate[bot]
cf192fa939 Update hilt to v2.51 (#222)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 19:54:16 +01:00
renovate[bot]
fba600d600 Update composeDestinations to v1.10.1 (#219)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-24 19:09:20 +00:00
renovate[bot]
b3460f164c Update dependency androidx.hilt:hilt-navigation-compose to v1.2.0 (#220)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-24 18:54:53 +00:00
renovate[bot]
237951843a Update kaspresso to v1.5.5 (#217)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-24 18:30:48 +00:00
renovate[bot]
0d6ff9b914 Update dependency com.google.truth:truth to v1.4.1 (#215)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-24 18:14:51 +00:00
renovate[bot]
64bf96e036 Update dependency org.jetbrains.kotlinx.kover to v0.7.6 (#216)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-24 18:01:15 +00:00
renovate[bot]
68cd5f8500 Update coil to v2.6.0 (#218)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-24 17:44:42 +00:00
renovate[bot]
2955a347b5 Update dependency androidx.compose:compose-bom to v2024.02.01 (#213)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-24 17:32:39 +00:00
renovate[bot]
82648b6950 Update dependency androidx.compose.material:material to v1.6.2 (#212)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-24 17:20:13 +00:00
Kirill Kamakin
7461decd73 Update dependencies versions (#203) 2024-02-17 10:22:34 +00:00
Kirill Kamakin
c03c65a96b Add Kotlinx Kover test coverage calculator (#199)
* Add Kotlin Kover

* Add AuthKtorConfiguration tests

* Ensure at least 25% code coverage

* Exclude Previews from code coverage

* Specify Kover report path for SonarQube

* Add Kover xml report task

* Extract sonar to a separate step

* Add some exclusions and minimum coverage

* Exclude Hilt-generated classes

* Add shopping list view model tests

* Reduce the coverage requirement
2024-02-17 10:43:36 +01:00
Kirill Kamakin
80baf11ec4 Fix signed release build issues (#198)
* Update Gradle to 8.5

* Disable view binding generation

* Downgrade AGP to 8.1
2024-01-14 15:39:19 +00:00
Kirill Kamakin
7c02a8341d Fix displaying recipe ingredient note twice (#197)
* Update README.md

* Bump version to 35

* Cleanup dependencies

* Bump versions of dependencies

* Save isFood/disableAmount flags to db

* Fix displaying ingredient note twice

* Remove whitespace after note is extracted
2024-01-14 10:44:21 +00:00
Kirill Kamakin
de4df95a0e Complete migration to Compose (#194)
* Migrate disclaimer screen to Compose

* Migrate base URL screen to Compose

* Migrate base URL screen to Compose

* Migrate authentication screen to Compose

* Initialize add recipe screen

* Remove unused resources

* Display add recipe operation result

* Add delete icon to ingredients and instructions

* Allow navigating between fields on add recipe

* Allow navigating between fields on authentication screen

* Allow to proceed from keyboard on base url screen

* Use material icons for recipe item

* Expose base URL as flow

* Initialize Compose navigation

* Allow sending logs again

* Allow to override navigation and top bar per screen

* Add additional logs

* Migrate share recipe screen to Compose

* Fix unit tests

* Restore recipe list tests

* Ensure authentication is shown after URL input

* Add autofill to authentication

* Complete first set up test

* Use image vector from Icons instead of drawable

* Add transition animations

* Fix logging host in Host header

* Do not fail test if login token is used
2024-01-13 10:28:10 +00:00
Kirill Kamakin
f6f44c7592 Use Compose to draw the list of recipes (#187)
* Add paging-compose dependency

* Move progress indicator to separate module

* Introduce color scheme preview

* Move loading helper to UI module

* Move helper composables to UI module

* Rearrange shopping lists module

* Add LazyPagingColumnPullRefresh Composable

* Add BaseComposeFragment

* Add pagingDataRecipeState

* Add showFavoriteIcon to recipe state

* Disable unused placeholders

* Make "Try again" button optional

* Fix example email

* Wrap recipe info into a Scaffold

* Add dialog to confirm deletion

* Add RecipeItem Composable

* Add RecipeListError Composable

* Add RecipeList Composable

* Replace recipes list Views with Compose

* Update UI test

* Remove application from ViewModel
2023-11-23 06:23:30 +00:00
Kirill Kamakin
2b15e230ad Revert "Add ACRA for crash reports (#180)" (#185)
This reverts commit 3d0cf8b902.
2023-11-15 18:07:44 +00:00
Kirill Kamakin
3d0cf8b902 Add ACRA for crash reports (#180) 2023-11-11 20:53:04 +00:00
Kirill Kamakin
941d45328e Add linked ingredients to recipe step (#177)
* Add Compose to app module

* Move Theme to ui module

* Add Coil image loader

* Use Compose for recipe screen

* Save instruction to ingredient relation to DB

* Display ingredients as server formats them

* Display linked ingredients under each step

* Fix ingredients padding

* Show recipe full screen

* Fix recipe screen UI issues

* Hide keyboard on recipe navigation

* Fix loading recipes from DB with no instructions or ingredients

* Add instructions section title

* Add ingredients section title

* Remove unused view holders
2023-11-07 20:47:01 +01:00
Kirill Kamakin
5ed1acb678 Simplify network layer (#175)
* Use Ktor for network requests

* Remove V0 version

* Remove Retrofit dependency

* Fix url

* Update versions of dependencies

* Revert kotlinx-datetime

Due to https://github.com/Kotlin/kotlinx-datetime/issues/304

* Rename leftovers

* Remove OkHttp

* Remove unused manifest

* Remove unused Hilt module

* Fix building empty image URLs

* Use OkHttp as engine for Ktor

* Reduce visibility of internal classes

* Fix first set up test

* Store only auth token, not header

* Remove UnitInfo/FoodInfo/VersionInfo/NewShoppingListItemInfo

* Remove RecipeSummaryInfo and ShoppingListsInfo

* Remove FullShoppingListInfo

* Remove ParseRecipeURLInfo

* Remove FullRecipeInfo

* Sign out if access token does not work

* Rename getVersionInfo method

* Update version name
2023-11-05 15:01:19 +01:00
Kirill Kamakin
888783bf14 Update dependencies (#172)
* Remove rootCoverage

* Bump versions of dependencies

* Update GitHub Actions dependencies
2023-10-15 22:08:31 +02:00
Kirill Kamakin
be51a5c00a Implement adding and modifying shopping list items (#165)
* Add dismissed shopping list item preview

* Implement editing of note and quantity

* Add new editor row for food

* Implement loading units and foods

* Display dropdown for foods

* Display dropdown for units

* Implement updating food and units

* Create secondary editor state constructor

* Display "Add" button

* Combine editing state to an object

* Implement showing editor for new items

* Implement saving new items

* Log final screen state

* Fix ordering of foods

* Show keyboard when editing starts

* Add bottom padding to the list

* Show new items above checked
2023-07-22 18:02:45 +02:00
Kirill Kamakin
1e5e727e92 Implement shopping lists screen (#129)
* Initialize shopping lists feature

* Start shopping lists screen with Compose

* Add icon to shopping list name

* Add shopping lists to menu

* Set max size for the list

* Replace compose-adapter with accompanist

* Remove unused fields from shopping lists response

* Show list of shopping lists from BE

* Hide shopping lists if Mealie is 0.5.6

* Add shopping list item click listener

* Create material app theme for Compose

* Use shorter names

* Load shopping lists by pages and save to db

* Make page handling logic match recipes

* Add swipe to refresh to shopping lists

* Extract SwipeToRefresh Composable

* Make LazyPagingColumn generic

* Show refresh only when mediator is refreshing

* Do not refresh automatically

* Allow controlling Activity state from modules

* Implement navigating to shopping list screen

* Move Compose libraries setup to a plugin

* Implement loading full shopping list info

* Move Storage classes to database module

* Save shopping list items to DB

* Use separate names for separate ids

* Do only one DB version update

* Use unique names for all columns

* Display shopping list items

* Move OperationUiState to ui module

* Subscribe to shopping lists updates

* Indicate progress with progress bar

* Use strings from resources

* Format shopping list item quantities

* Hide unit/food/note/quantity if they are not set

* Implement updating shopping list item checked state

* Remove unnecessary null checks

* Disable checkbox when it is being updated

* Split shopping list screen into composables

* Show items immediately if they are saved

* Fix showing "list is empty" before the items

* Show Snackbar when error happens

* Reduce shopping list items paddings

* Remove shopping lists when URL is changed

* Add error/empty state handling to shopping lists

* Fix empty error state

* Fix tests compilation

* Add margin between text and button

* Add divider between checked and unchecked items

* Move divider to the item

* Refresh the shopping lists on authentication

* Use retry when necessary

* Remove excessive logging

* Fix pages bounds check

* Move FlowExtensionsTest

* Update Compose version

* Fix showing loading indicator for shopping lists

* Add Russian translation

* Fix SDK version lint check

* Rename parameter to match interface

* Add DB migration TODO

* Get rid of DB migrations

* Do not use pagination with shopping lists

* Cleanup after the pagination removal

* Load shopping list items

* Remove shopping lists storage

* Rethrow CancellationException in LoadingHelper

* Add pull-to-refresh on shopping list screen

* Extract LazyColumnWithLoadingState

* Split refresh errors and loading state

* Reuse LazyColumnWithLoadingState for shopping list items

* Remove paging-compose dependency

* Refresh shopping list items on authentication

* Disable missing translation lint check

* Update Compose and Kotlin versions

* Fix order of checked items

* Hide useless information from a shopping list item
2023-07-03 15:07:19 +02:00
Kirill Kamakin
d6a4fbb365 Bump versions of dependencies 2023-04-07 14:52:31 +02:00
Kirill Kamakin
717d4a9e9c Update the gradle binaries 2023-02-01 16:37:13 +01:00
Kirill Kamakin
77395a07f4 Add base url setup to sign in test 2022-12-16 21:43:35 +01:00
Kirill Kamakin
8c3ec9a40d Enable AndroidX test orchestrator 2022-12-16 21:43:34 +01:00
Kirill Kamakin
24388192e1 Add first Kaspresso test 2022-12-16 21:43:34 +01:00
Kirill Kamakin
f2a4d00cf9 Add sharetarget compatibility library 2022-11-28 20:09:08 +01:00
Kirill Kamakin
d62ce1a74e Remove Google Analytics and Crashlytics 2022-11-22 19:50:29 +01:00
Kirill Kamakin
dfd590ee50 Add RecipeViewModel tests 2022-11-05 12:17:48 +01:00
Kirill Kamakin
81e3fcfd98 Start splash screen API migration 2022-10-31 21:08:17 +01:00
Kirill Kamakin
a9cfca3eff Replace Glide kapt with Glide KSP 2022-10-31 19:56:42 +01:00
Kirill Kamakin
611a844dfc Update versions of dependencies 2022-10-29 15:54:14 +02:00
Kirill Kamakin
8638b36fa9 Update versions 2022-10-01 13:29:44 +02:00
Kirill Kamakin
107bb64256 Replace Timber with Logger 2022-08-05 20:16:29 +02:00
Kirill Kamakin
4d53b10db0 Extract application build setup to plugin 2022-08-03 19:48:55 +02:00
Kirill Kamakin
e53efc0307 Move SDK versions to version catalog 2022-08-01 22:26:35 +02:00
Kirill Kamakin
d80ae83c7d Move plugin versions to version catalog 2022-08-01 22:23:12 +02:00
Kirill Kamakin
7601702235 Move libraries versions to version catalog 2022-08-01 22:14:17 +02:00
Kirill Kamakin
51687437c0 Start working on extraction of versions 2022-08-01 21:14:54 +02:00
Kirill Kamakin
f63ad611ba Use version catalog for root plugins 2022-07-30 23:06:39 +02:00
Kirill Kamakin
c728bd5b60 Remove unused versions.gradle 2022-07-29 22:11:48 +02:00
Kirill Kamakin
aa02afb997 Downgrade Kotlin to match AS plugin version 2022-07-09 10:11:57 +02:00
Kirill Kamakin
cdcad620ad Update versions of dependencies 2022-07-09 10:08:03 +02:00
Kirill Kamakin
12d4498c0e Remove Flipper 2022-06-18 09:39:18 +02:00
Kirill Kamakin
0d52f77ab7 Enable desugaring 2022-06-13 20:33:18 +02:00
Kirill Kamakin
97c94ca307 Fix min sdk version 2022-06-13 20:09:50 +02:00
Kirill Kamakin
1840ce3edc Update versions of all dependencies 2022-06-12 19:30:42 +02:00
Kirill Kamakin
9450fa6ca1 Extract versions to separate file 2022-06-12 19:30:42 +02:00