Skip to content

Releases: Shopify/mobile-buy-sdk-ios

3.0.2

23 Jun 17:28
Compare
Choose a tag to compare
  • Updates Crypto implementation to rely on libCommonCrypto instead of custom implementation
  • Adds tests for Crypto target
  • Adds support for CocoaPods
  • Xcode project and filesystem clean-up
  • Adds test to verify sample application compiles on CI
  • Adds issues and pull request templates
  • Adds documentation and examples for customer operations (account creation, login, list orders, etc)

Schema changes

  • Reduces number of supported query parameters for Customer.orders
  • Adds phone parameter to CustomerCreateInput
  • Adds phone parameter to CustomerUpdateInput
  • Adds formattedArea to MailingAddress
  • Reduces sort keys exposed for customer orders
  • Adds availableForSale instead of available in ProductVariant
  • Adds ability to fetch a collection or product by handle

3.0.1

08 Jun 14:21
Compare
Choose a tag to compare
  • Updates CI configurations to be more robust
  • Exposes a test shop with credentials for the sample app, which can now be run with zero configuration out-of-the-box!
  • Updates Dynamic Framework installation instructions to be more comprehensive and clear.
  • Minor bug fixes in the sample app.

3.0

02 Jun 20:22
Compare
Choose a tag to compare
3.0

Version 3 introduces a new paradigm for the Buy SDK, which is now built entirely on top of GraphQL. This release is not backwards compatible with previous versions of the Buy SDK.

2.1.0

21 Nov 21:29
Compare
Choose a tag to compare

Motivation

This version of the SDK brings new features, functionality and long awaited bug fixes to allow merchants to have a stronger Shopify integration within their mobile applications.

Updates

The most significant changes to the SDK are as follows:

  • BUYClient+Storefront
    • Allow collections to be retrieved by IDs

      - (NSOperation *)getCollectionsByIds:(NSArray<NSString *> *)collectionIds page:(NSUInteger)page completion:(BUYDataCollectionsBlock)block

    • Support for getting product tags by collection

      - (NSOperation *)getProductTagsInCollection:(NSString *)collectionId page:(NSUInteger)page completion:(BUYDataTagsListBlock)block

    • Allow products to be retrieved by a list of tags

      - (NSOperation *)getProductsByTags:(NSArray<NSString *> *)tags page:(NSUInteger)page completion:(BUYDataProductsBlock)block

    • Allow a custom page size to be set based off the type of data being fetched

  • BUYProduct
    • A minimumPrice property has been added to obtain the minimum price of a product when considering all the variants
  • BUYCheckout
    • Allow for a discount code to be set onto the checkout (passing in nil will remove the discount from the checkout)

      - (void)setDiscountCode:(nullable NSString *)code

For more info about the changes made in this version please read CHANGELOG.md

2.0.1

29 Sep 17:00
Compare
Choose a tag to compare

This is a bugfix and maintenance release.

  • removes ShippingRate.identifier -- this property does not exist and using it causes bugs
  • fix arg ordering in -[BUYClient(Storefront) getProductTagsPage:completion]
  • fix issues in tests
  • fix issues in sample apps
  • fix issue when running on iOS 9 simulator in Xcode 8 via CocoaPods

2.0.0

04 Aug 17:59
Compare
Choose a tag to compare
  • Added customer login support
  • Simplified checkout handling
  • Improved support for error parsing
  • Standardized API client interfaces (see BUYClient)
  • Removed dependencies on deprecated APIs
  • Updated sample app, including addition of Customer account sample code
  • Support for caching using Core Data

1.2.6

22 Mar 19:58
Compare
Choose a tag to compare
  • ApplePay helper method callback on main thread
  • fix potential race condition for Apple Pay
  • support for Collections API with pagination
  • Inject ProductId in LineItem object when instantiated with variant

1.2.5

10 Feb 16:27
Compare
Choose a tag to compare
  • Addresses race condition in Apple Pay flow with shop and checkout fetching
  • Fixes crash when BUYProductViewController is presented as a root VC in a UITabBarController
  • Adds app's bundle identifier to the user_agent
  • Adds checkout attributes

1.2.4

15 Dec 15:53
Compare
Choose a tag to compare
  • Fixed logic which resulted in an issue where "Setup  Pay" would appear instead of "Buy with  Pay" in the BUYProductViewController (#76).
  • Now using NSURLComponents to generate URLs. Also updated API endpoints (#73 + #75).
  • Sample app Safari view controller checkout logic improvements (#72).

1.2.3

02 Dec 20:13
Compare
Choose a tag to compare
  • Fix shipping rate invalidation bug using Apple Pay in 1.2.2 (#69)