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
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
package gq.kirmanak.mealient.database
|
||||
|
||||
import androidx.room.*
|
||||
import androidx.room.Database
|
||||
import androidx.room.RoomDatabase
|
||||
import androidx.room.TypeConverters
|
||||
import gq.kirmanak.mealient.database.recipe.RecipeDao
|
||||
import gq.kirmanak.mealient.database.recipe.entity.*
|
||||
import gq.kirmanak.mealient.database.recipe.entity.RecipeEntity
|
||||
import gq.kirmanak.mealient.database.recipe.entity.RecipeIngredientEntity
|
||||
import gq.kirmanak.mealient.database.recipe.entity.RecipeIngredientToInstructionEntity
|
||||
import gq.kirmanak.mealient.database.recipe.entity.RecipeInstructionEntity
|
||||
import gq.kirmanak.mealient.database.recipe.entity.RecipeSummaryEntity
|
||||
|
||||
@Database(
|
||||
version = 11,
|
||||
version = 12,
|
||||
entities = [
|
||||
RecipeSummaryEntity::class,
|
||||
RecipeEntity::class,
|
||||
|
||||
@@ -25,4 +25,6 @@ data class RecipeIngredientEntity(
|
||||
@ColumnInfo(name = "recipe_ingredient_quantity") val quantity: Double?,
|
||||
@ColumnInfo(name = "recipe_ingredient_display") val display: String,
|
||||
@ColumnInfo(name = "recipe_ingredient_title") val title: String?,
|
||||
@ColumnInfo(name = "recipe_ingredient_is_food") val isFood: Boolean,
|
||||
@ColumnInfo(name = "recipe_ingredient_disable_amount") val disableAmount: Boolean,
|
||||
)
|
||||
Reference in New Issue
Block a user