Skip to content

Commit

Permalink
Release 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mmroz committed Sep 21, 2023
1 parent 9395555 commit cb3c417
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
pod-lint:
name: Pod Lint
runs-on: macos-12
runs-on: macos-13
steps:
- name: Checkout Repo
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion CashAppPayKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'CashAppPayKit'
s.version = '0.5.0'
s.version = '0.5.1'
s.summary = 'PayKit iOS SDK'
s.homepage = 'https://github.com/cashapp/cash-app-pay-ios-sdk'
s.license = 'Apache License, Version 2.0'
Expand Down
2 changes: 1 addition & 1 deletion CashAppPayKitUI.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'CashAppPayKitUI'
s.version = "0.5.0"
s.version = "0.5.1"
s.summary = 'UI components for the PayKit iOS SDK'
s.homepage = 'https://github.com/cashapp/cash-app-pay-ios-sdk'
s.license = 'Apache License, Version 2.0'
Expand Down
12 changes: 12 additions & 0 deletions Demo/PayKitDemo/PayKitViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ extension PayKitViewController {
textView.isEditable = false
textView.font = UIFont.preferredFont(forTextStyle: .body)
textView.backgroundColor = .cyan
textView.textColor = .black
textView.text = "Expect results here"
return textView
}
Expand Down Expand Up @@ -316,6 +317,7 @@ extension PayKitViewController {
textField.keyboardType = .numberPad
textField.borderStyle = .roundedRect
textField.delegate = self
textField.inputAccessoryView = makeToolBar { textField.resignFirstResponder() }
return textField
}

Expand All @@ -324,6 +326,7 @@ extension PayKitViewController {
textField.placeholder = "Reference ID #"
textField.keyboardType = .default
textField.borderStyle = .roundedRect
textField.inputAccessoryView = makeToolBar { textField.resignFirstResponder() }
return textField
}

Expand All @@ -333,6 +336,15 @@ extension PayKitViewController {
label.font = .boldSystemFont(ofSize: UIFont.labelFontSize)
return label
}

func makeToolBar(onDoneHandler: @escaping () -> Void) -> UIToolbar {
let toolbar = UIToolbar(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 35))
let flexSpace = UIBarButtonItem(barButtonSystemItem: .flexibleSpace, target: nil, action: nil)
let doneButton = UIBarButtonItem(systemItem: .done, primaryAction: UIAction { _ in onDoneHandler() })
toolbar.setItems([flexSpace, doneButton], animated: false)
toolbar.sizeToFit()
return toolbar
}
}

// MARK: - CashAppPayObserver
Expand Down
2 changes: 1 addition & 1 deletion Demo/PayKitDemo/TabBarController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import UIKit
class TabBarController: UITabBarController, UITabBarControllerDelegate {
override func viewDidLoad() {
super.viewDidLoad()
self.view.backgroundColor = .white
view.backgroundColor = UIColor.systemGroupedBackground

let payKitController = PayKitViewController()
payKitController.tabBarItem = UITabBarItem(title: "PayKit", image: UIImage(systemName: "briefcase"), tag: 0)
Expand Down
14 changes: 14 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## PayKit 0.5.1 Release Notes

Pay Kit 0.5.1 supports iOS and requires Xcode 11 or later. The minimum supported Base SDK is 12.0.

Pay Kit 0.5.1 includes the following new features and enhancements.

- **Dropped Support for iOS 11 in PayKitUI**

Increased the minimum supported iOS version to 12.

- **`PayKitDemo` Demo**

The *`PayKitDemo` App* includes a button to dismiss the keyboard and better support for light and dark themes.

## PayKit 0.5.0 Release Notes

Pay Kit 0.5.0 supports iOS and requires Xcode 11 or later. The minimum supported Base SDK is 12.0.
Expand Down
2 changes: 1 addition & 1 deletion Sources/PayKit/CashAppPay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import UIKit

public class CashAppPay {

public static let version = "0.5.0"
public static let version = "0.5.1"

public static let RedirectNotification: Notification.Name = Notification.Name("CashAppPayRedirect")

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cb3c417

Please sign in to comment.