From 645a51089d078a8dc1bc28ca4344d7d93ab3df7b Mon Sep 17 00:00:00 2001 From: Franco Driansetti Date: Thu, 23 Jun 2022 10:16:13 +0200 Subject: [PATCH] Updated package API - Updated new package API - Updated SDK version --- README.md | 2 ++ Source/StreamSDKPurchases/AMGPurchases.swift | 2 +- StreamAMGSDK.podspec | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d222c05..8852250 100755 --- a/README.md +++ b/README.md @@ -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 diff --git a/Source/StreamSDKPurchases/AMGPurchases.swift b/Source/StreamSDKPurchases/AMGPurchases.swift index 2aad8f5..14d4193 100644 --- a/Source/StreamSDKPurchases/AMGPurchases.swift +++ b/Source/StreamSDKPurchases/AMGPurchases.swift @@ -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) in + StreamAMGSDK.sendRequest("\(apiURL)api/v1/package?type=iap"){ (result: Result) in switch result { case .success(let data): self.fetchPackages(withProducts: data.packages()) diff --git a/StreamAMGSDK.podspec b/StreamAMGSDK.podspec index 2021e07..09548bb 100644 --- a/StreamAMGSDK.podspec +++ b/StreamAMGSDK.podspec @@ -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"