Skip to content

Commit

Permalink
Merge pull request #127 from stripe-ios/davidme/21.3.0
Browse files Browse the repository at this point in the history
Release 21.3.0
  • Loading branch information
csabol-stripe authored Feb 18, 2021
2 parents 15dc387 + 1dda4ce commit 73306f3
Show file tree
Hide file tree
Showing 428 changed files with 12,943 additions and 4,631 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 21.3.0 2021-02-18
* Adds support for SwiftUI in custom integration using the `STPPaymentCardTextField.Representable` View and the `.paymentConfirmationSheet()` ViewModifier. See `IntegrationTester` for usage examples.
* Removes the UIViewController requirement from STPApplePayContext, allowing it to be used in SwiftUI.
* Fixes an issue where `STPPaymentOptionsViewController` could fail to register a card. [#1758](https://github.com/stripe/stripe-ios/issues/1758)
* Fixes an issue where some UnionPay test cards were marked as invalid. [#1759](https://github.com/stripe/stripe-ios/issues/1759)
* Updates tests to run on Carthage 0.37 with .xcframeworks.


## 21.2.1 2021-01-29
* Fixed an issue where a payment card text field could resize incorrectly on smaller devices or with certain languages. [#1600](https://github.com/stripe/stripe-ios/issues/1600)
* Fixed an issue where the SDK could always return English strings in certain situations. [#1677](https://github.com/stripe/stripe-ios/pull/1677) (Thanks [glaures-ioki](https://github.com/glaures-ioki)!)
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ From left to right: [STPAddCardViewController](https://stripe.dev/stripe-ios/doc
We support Cocoapods, Carthage, and Swift Package Manager. If you link the library manually, use a version from our [releases](https://github.com/stripe/stripe-ios/releases) page. Make sure to embed both `Stripe.xcframework` and `Stripe3DS2.xcframework`.

If you're reading this on GitHub.com, please make sure you are looking at the [tagged version](https://github.com/stripe/stripe-ios/tags) that corresponds to the release you have installed. Otherwise, the instructions and example code may be mismatched with your copy. You can read the latest tagged version of this README and browse the associated code on GitHub using
[this link](https://github.com/stripe/stripe-ios/tree/21.2.1).
[this link](https://github.com/stripe/stripe-ios/tree/21.3.0).

## Requirements

Expand All @@ -76,11 +76,11 @@ Get started with our [📚 integration guides](https://stripe.com/docs/payments)

There are 3 example apps included in the repository:

- [UI Examples](https://github.com/stripe/stripe-ios/tree/21.2.1/Example/UI%20Examples).
- [UI Examples](https://github.com/stripe/stripe-ios/tree/21.3.0/Example/UI%20Examples).
- This example lets you quickly try out the SDK's prebuilt UI components using a mock backend—just build and run!
- [Basic Integration](https://github.com/stripe/stripe-ios/tree/21.2.1/Example/Basic%20Integration)
- [Basic Integration](https://github.com/stripe/stripe-ios/tree/21.3.0/Example/Basic%20Integration)
- This example demonstrates how to build a payment flow using our prebuilt UI component integration (`STPPaymentContext`).
- [Non-Card Payment Examples](https://github.com/stripe/stripe-ios/tree/21.2.1/Example/Non-Card%20Payment%20Examples)
- [Non-Card Payment Examples](https://github.com/stripe/stripe-ios/tree/21.3.0/Example/Non-Card%20Payment%20Examples)
- This example demonstrates how to use `STPAPIClient` to accept various non-card payment methods.

Check out [stripe-samples](https://github.com/stripe-samples/) for more, including:
Expand All @@ -98,7 +98,7 @@ To add card scanning capabilities to our prebuilt UI components, set the `cardSc
<img src="https://user-images.githubusercontent.com/52758633/92628867-4d040200-f282-11ea-95d2-023d9a461d25.gif" width="222" height="458" alt="Card Scanning Demo" align="center">
</p>

Demo this in our [Basic Integration example app](https://github.com/stripe/stripe-ios/tree/21.2.1/Example/Basic%20Integration). When you run the example app on a device, you'll see a "Scan Card" button when adding a new card.
Demo this in our [Basic Integration example app](https://github.com/stripe/stripe-ios/tree/21.3.0/Example/Basic%20Integration). When you run the example app on a device, you'll see a "Scan Card" button when adding a new card.

This feature is currently in beta. Please file bugs on our [GitHub issues page](https://github.com/stripe/stripe-ios/issues).

Expand All @@ -108,7 +108,7 @@ We welcome contributions of any kind including new features, bug fixes, and docu

### Running Tests

1. Install Carthage (if you have homebrew installed, `brew install carthage`)
1. Install Carthage 0.37 or later (if you have homebrew installed, `brew install carthage`)
2. From the root of the repo, install test dependencies by running `carthage bootstrap --platform ios --configuration Release --no-use-binaries --use-xcframeworks`
3. Open Stripe.xcworkspace
4. Choose the "StripeiOS" scheme with the iPhone 8, iOS 13.7 simulator (required for snapshot tests to pass)
Expand Down
2 changes: 1 addition & 1 deletion Stripe.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Stripe'
s.version = '21.2.1'
s.version = '21.3.0'
s.summary = 'Stripe is a web-based API for accepting payments online.'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.homepage = 'https://stripe.com/docs/mobile/ios'
Expand Down
4 changes: 2 additions & 2 deletions Stripe/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>21.2.1</string>
<string>21.3.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>21.2.1</string>
<string>21.3.0</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion Stripe/STPAPIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Stripe3DS2
/// A client for making connections to the Stripe API.
public class STPAPIClient: NSObject {
/// The current version of this library.
@objc public static let STPSDKVersion = "21.2.1"
@objc public static let STPSDKVersion = "21.3.0"

/// A shared singleton API client.
/// By default, the SDK uses this instance to make API requests
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
21.2.1
21.3.0
Loading

0 comments on commit 73306f3

Please sign in to comment.