View Implementation
For either XML or JetPack Compose, the migration is very quick & painless on the View side. All you'll need to do is change a few lines.
Catalog Feature
We have changed where the Catalog is imported from.
You can replace this code:
<com.miam.kmm_miam_sdk.android.ui.components.catalog.Catalog
with:
<com.miam.sdk.components.catalog.Catalog
Customizing
You can completely configure all the templates & pages in the Catalog Feature.
You can read about it here
Standalone Recipe Card Feature
We have changed the RecipeView to be a RecipeJourney that includes the Recipe Details & allows users to add it to their basket.
You can replace this code:
private val recipeView: RecipeView = itemView as RecipeView
with:
- XML
- JetPack Compose
private val recipeView: RecipeJourney = itemView as RecipeJourney
// keep the same bind
fun bind(suggestionCriteria: SuggestionsCriteria?) {
recipeView.bind(criteria = suggestionCriteria)
}
private val recipeView: RecipeJourney = itemView as RecipeJourney
// keep the same bind
fun bind(suggestionCriteria: SuggestionsCriteria?) {
recipeView.bind(criteria = suggestionCriteria)
}
recipeView.Content()
Customizing
You can completely configure all the templates & pages associated with the Recipe Card Feature.
You can read about it here
Favorites Feature
We have changed where the FavoritePage is imported from.
You can replace this code:
<com.miam.kmm_miam_sdk.android.ui.components.favoritePage.FavoritePage
with:
<com.miam.sdk.components.favoritePage.FavoritePage
Customizing
You can completely configure all the templates & pages in the Favorites Feature.
You can read about it here
MyMeals Feature (Recipes in your basket)
We have changed where the MyMeal is imported from.
You can replace this code:
<com.miam.kmm_miam_sdk.android.ui.components.myMeal.MyMeal
with:
<com.miam.sdk.components.myMeal.MyMeal
Customizing
You can completely configure all the templates & pages in the MyMeals Feature.
You can read about it here