Skip to content

Commit

Permalink
Merge pull request #5 from StreamAMG/feature/smd-789-new-package-api
Browse files Browse the repository at this point in the history
Updated package API
  • Loading branch information
francodriansetti authored Jun 23, 2022
2 parents 19b6ba1 + 645a510 commit 0ade2a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ Change Log:

All notable changes to this project will be documented in this section.

### 1.1.2 - Updated IAP package API.

### 1.1.1 - PlayKit minor update

### 1.1.0 - PlayKit bitrate selector UI
Expand Down
2 changes: 1 addition & 1 deletion Source/StreamSDKPurchases/AMGPurchases.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public class AMGPurchases: IAPDelegate {
if let products = withProducts, !products.isEmpty{
fetchPackages(withProducts: products)
} else {
StreamAMGSDK.sendRequest("\(apiURL)api/v1/package"){ (result: Result<PurchasePackagesResponse, StreamAMGError>) in
StreamAMGSDK.sendRequest("\(apiURL)api/v1/package?type=iap"){ (result: Result<PurchasePackagesResponse, StreamAMGError>) in
switch result {
case .success(let data):
self.fetchPackages(withProducts: data.packages())
Expand Down
2 changes: 1 addition & 1 deletion StreamAMGSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Pod::Spec.new do |spec|

spec.name = "StreamAMGSDK"
spec.version = "1.1.1"
spec.version = "1.1.2"
spec.summary = "Stream AMG SDK"
spec.swift_versions = "5"

Expand Down

0 comments on commit 0ade2a4

Please sign in to comment.