Skip to content

Commit

Permalink
Bump version, add changelog entry, update README
Browse files Browse the repository at this point in the history
  • Loading branch information
markmur committed Feb 15, 2024
1 parent e029c03 commit 59e5be4
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 19 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.1.0 - February 13, 2024

- Introduces a new `checkoutDidCompleteWithEvent(event)` method, which returns an event object containing order details from the completed checkout.
- Deprecates the `checkoutDidComplete` lifecycle delegate method.

## 1.0.1 - January 31, 2024

Bumps the package version.
Expand Down
33 changes: 16 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Shopify Checkout Sheet Kit - Swift

[![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](https://github.com/Shopify/checkout-sheet-kit-swift/blob/main/LICENSE) [![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-2ebb4e.svg?style=flat)](https://swift.org/package-manager/) ![Tests](https://github.com/shopify/checkout-sheet-kit-swift/actions/workflows/test-sdk.yml/badge.svg?branch=main) [![GitHub Release](https://img.shields.io/github/release/shopify/checkout-sheet-kit-swift.svg?style=flat)]()
[![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](https://github.com/Shopify/checkout-sheet-kit-swift/blob/main/LICENSE) [![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-2ebb4e.svg?style=flat)](https://swift.org/package-manager/) ![Tests](https://github.com/shopify/checkout-sheet-kit-swift/actions/workflows/test-sdk.yml/badge.svg?branch=main) [![GitHub Release](https://img.shields.io/github/release/shopify/checkout-sheet-kit-swift.svg?style=flat)]()
![image](https://github.com/Shopify/checkout-sheet-kit-swift/assets/2034704/fae4e6e4-0e83-44ab-b65a-c2bceca1afc3)


Expand All @@ -20,7 +20,7 @@ The SDK is an open-source [Swift Package library](https://www.swift.org/package-

```swift
dependencies: [
.package(url: "https://github.com/Shopify/checkout-sheet-kit-swift", from: "1.0")
.package(url: "https://github.com/Shopify/checkout-sheet-kit-swift", from: "1.1")
]
```

Expand All @@ -36,7 +36,7 @@ For more details on managing Swift Package dependencies in Xcode, please see [Ap
#### CocoaPods

```ruby
pod "ShopifyCheckoutSheetKit", "~> 1.0"
pod "ShopifyCheckoutSheetKit", "~> 1.1"
```

For more information on CocoaPods, please see their [getting started guide](https://guides.cocoapods.org/using/getting-started.html).
Expand Down Expand Up @@ -209,7 +209,7 @@ You can use the `ShopifyCheckoutSheetKitDelegate` protocol to register callbacks

```swift
extension MyViewController: ShopifyCheckoutSheetKitDelegate {
func checkoutDidComplete() {
func checkoutDidCompleteWithEvent(event: CheckoutCompletedEvent) {
// Called when the checkout was completed successfully by the buyer.
// Use this to update UI, reset cart state, etc.
}
Expand All @@ -222,22 +222,21 @@ extension MyViewController: ShopifyCheckoutSheetKitDelegate {
func checkoutDidFail(error: CheckoutError) {
// Called when the checkout encountered an error and has been aborted. The callback
// provides a `CheckoutError` enum, with one of the following values:
// Internal error: exception within the Checkout SDK code
// You can inspect and log the Erorr and stacktrace to identify the problem.
case sdkError(underlying: Swift.Error)

/// Internal error: exception within the Checkout SDK code
/// You can inspect and log the Erorr and stacktrace to identify the problem.
case sdkError(underlying: Swift.Error)
// Issued when the provided checkout URL results in an error related to shop being on checkout.liquid.
// The SDK only supports stores migrated for extensibility.
case checkoutLiquidNotMigrated(message: String)

/// Issued when the provided checkout URL results in an error related to shop being on checkout.liquid.
/// The SDK only supports stores migrated for extensibility.
case checkoutLiquidNotMigrated(message: String)
// Unavailable error: checkout cannot be initiated or completed, e.g. due to network or server-side error
// The provided message describes the error and may be logged and presented to the buyer.
case checkoutUnavailable(message: String)

/// Unavailable error: checkout cannot be initiated or completed, e.g. due to network or server-side error
/// The provided message describes the error and may be logged and presented to the buyer.
case checkoutUnavailable(message: String)

/// Expired error: checkout session associated with provided checkoutURL is no longer available.
/// The provided message describes the error and may be logged and presented to the buyer.
case checkoutExpired(message: String)
// Expired error: checkout session associated with provided checkoutURL is no longer available.
// The provided message describes the error and may be logged and presented to the buyer.
case checkoutExpired(message: String)
}

func checkoutDidClickLink(url: URL) {
Expand Down
2 changes: 1 addition & 1 deletion ShopifyCheckoutSheetKit.podspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Pod::Spec.new do |s|
s.version = "1.0.1"
s.version = "1.1.0"

s.name = "ShopifyCheckoutSheetKit"
s.summary = "Enables Swift apps to embed the Shopify's highest converting, customizable, one-page checkout."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SO
import UIKit

/// The version of the `ShopifyCheckoutSheetKit` library.
public let version = "1.0.1"
public let version = "1.1.0"

/// The configuration options for the `ShopifyCheckoutSheetKit` library.
public var configuration = Configuration() {
Expand Down

0 comments on commit 59e5be4

Please sign in to comment.