Skip to content

Commit

Permalink
Release v3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
marinPassio committed Mar 22, 2024
1 parent 6820e70 commit e791b21
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Passio SDK

[![release](https://img.shields.io/badge/release-v3.0.1-brightgreen)](https://github.com/Passiolife/Passio-Nutrition-AI-Android-SDK-Distribution/releases/tag/v3.0.1) [![release](https://img.shields.io/badge/platform-Android-lightgray)]() [![release](https://img.shields.io/badge/minimum--suported--version-26-lightgray)](https://developer.android.com/about/versions/oreo) [![release](https://img.shields.io/badge/Kotlin-v1.6.10-informational)](https://github.com/JetBrains/kotlin/releases/tag/v1.6.10) [![release](https://img.shields.io/badge/codelab-Get_started-important)](https://musing-gates-4e7160.netlify.app/#0)
[![release](https://img.shields.io/badge/release-v3.0.2-brightgreen)](https://github.com/Passiolife/Passio-Nutrition-AI-Android-SDK-Distribution/releases/tag/v3.0.2) [![release](https://img.shields.io/badge/platform-Android-lightgray)]() [![release](https://img.shields.io/badge/minimum--suported--version-26-lightgray)](https://developer.android.com/about/versions/oreo) [![release](https://img.shields.io/badge/Kotlin-v1.6.10-informational)](https://github.com/JetBrains/kotlin/releases/tag/v1.6.10) [![release](https://img.shields.io/badge/codelab-Get_started-important)](https://musing-gates-4e7160.netlify.app/#0)

## Overview:

Expand Down
29 changes: 29 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,35 @@

Full project was build with **Kotlin 1.6.10**

## V3.0.2

## Added APIs

* Added API to fetch suggestion for a certain meal time. To fetch a the full nutritional data for a suggestion item use ```fetchFoodItemForSuggestion```.

```
fun fetchSuggestions(
mealTime: MealTime,
callback: (results: List<PassioSearchResult>) -> Unit
)
enum class MealTime(val mealName: String) {
BREAKFAST("breakfast"),
LUNCH("lunch"),
DINNER("dinner"),
SNACK("snack")
}
fun fetchFoodItemForSuggestion(
suggestion: PassioSearchResult,
callback: (foodItem: PassioFoodItem?) -> Unit
)
```

## Refactored APIs

Renamed ```fetchSearchResult``` to ```fetchFoodItemForSearchResult```.

## V3.0.1

## Added APIs
Expand Down

0 comments on commit e791b21

Please sign in to comment.