Skip to content

Commit

Permalink
Release PassioSDK v3.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratik7u committed Nov 18, 2024
1 parent cd6866f commit 30880c6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
],
targets: [
.binaryTarget(name: "PassioNutritionAISDK",
url: "https://github.com/Passiolife/Passio-Nutrition-AI-iOS-SDK-Distribution/raw/3.2.2/PassioNutritionAISDK.xcframework.zip",
checksum: "f59814bad86518cf0067932e5854c16e1fa0f994f44f9130afa6300a9998ac1b")
url: "https://github.com/Passiolife/Passio-Nutrition-AI-iOS-SDK-Distribution/raw/3.2.3/PassioNutritionAISDK.xcframework.zip",
checksum: "d0d428805f80f8badc443a11e5d8b0b585e49e0873eeeb4c64c98ca3d25c1f94")
]
)
Binary file modified PassioNutritionAISDK.xcframework.zip
Binary file not shown.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ passioConfig.sdkDownloadsModels = false

## Try first to run the Quick Start Demo

A fast and easy way to get started with the SDK is to test it inside of PassioSDKQuickStart Demo App included in this package. Here are the steps:
A fast and easy way to get started with the SDK is to test it using the Quick start project. Here are the steps:

1. Open the project in Xcode:
2. Replace the SDK Key in the PassioQuickStartViewController.swift file with the key you obtained by signing up at https://www.passio.ai/nutrition-ai
3. Connect your iPhone and run
4. Modify the app bundle from "com.PassioDemoApp.demo" to "com.yourcompany...."
5. Run the demo app on your iPhone.
1. Download the Quick start project from this URL: https://github.com/Passiolife/Passio-iOS-QuickStart
2. Open the project in Xcode
3. Find `YOUR_PASSIO_KEY` inside `ImageSelectionVC.swift` and replace the SDK Key with the key you obtained by signing up at https://www.passio.ai/nutrition-ai
4. Modify the app bundle from "com.PassioDemoApp.demo" to "com.yourcompany...."
5. Connect your iPhone and run the demo app on your iPhone
6. For support, please contact support@passiolife.com

***
Expand Down
6 changes: 6 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Passio SDK Release Notes

## V3.2.3
### Updated APIs:

- Renamed `semanticSearchForFood` to `searchForFoodSemantic`
- Renamed `fetchNextPredictedIngredients` to `predictNextIngredients`

## V3.2.2
### New APIs:

Expand Down
10 changes: 5 additions & 5 deletions SDK_API.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PassioNutritionAISDK

## Version 3.2.2
## Version 3.2.3

```Swift
import AVFoundation
Expand Down Expand Up @@ -2593,11 +2593,11 @@ public class PassioNutritionAI {
/// - completion: ``SearchResponse``, which containts list of alternate search and its results
public func searchForFood(byText: String, completion: @escaping (PassioNutritionAISDK.SearchResponse?) -> Void)

/// Semantic search for food will return a list of alternate search and search result
/// Search for food semantic will return a list of alternate search and search result
/// - Parameters:
/// - byText: User typed text
/// - completion: ``SearchResponse``, which containts list of alternate search and its results
public func semanticSearchForFood(searchTerm: String, completion: @escaping (PassioNutritionAISDK.SearchResponse?) -> Void)
public func searchForFoodSemantic(searchTerm: String, completion: @escaping (PassioNutritionAISDK.SearchResponse?) -> Void)

/// Fetch ``PassioFoodItem`` for given ``PassioFoodDataInfo`` and servingQuantity and servingUnit.
/// - Parameters:
Expand Down Expand Up @@ -2723,7 +2723,7 @@ public class PassioNutritionAI {
/// - Parameters:
/// - ingredients: List of food ingredients name
/// - completion: ``PassioPredictedIngredients``, PassioPredictedIngredients responds with a success or error response. If the response is successful, you will receive an array of ``PassioAdvisorFoodInfo`` ingredients showing what might be contained in the given food.
public func fetchNextPredictedIngredients(ingredients: [String], completion: @escaping PassioNutritionAISDK.PassioPredictedIngredients)
public func predictNextIngredients(ingredients: [String], completion: @escaping PassioNutritionAISDK.PassioPredictedIngredients)

/// Use this method for scanning nutrients from Packaged Product. This method returns ``PassioFoodItem``.
/// - Parameters:
Expand Down Expand Up @@ -3999,7 +3999,7 @@ extension UIImageView {

@MainActor public func loadImage(from url: URL, placeholder: UIImage? = nil)
}

infix operator .+ : DefaultPrecedence

infix operator ./ : DefaultPrecedence
Expand Down

0 comments on commit 30880c6

Please sign in to comment.