Skip to content

Commit c96d4d1

Browse files
authored
Merge pull request #36 from cashapp/release-0.6.3
Release 0.6.3
2 parents 602cf93 + 810394b commit c96d4d1

48 files changed

Lines changed: 348 additions & 185 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CashAppPayKit.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'CashAppPayKit'
3-
s.version = '0.6.2'
3+
s.version = '0.6.3'
44
s.summary = 'PayKit iOS SDK'
55
s.homepage = 'https://github.com/cashapp/cash-app-pay-ios-sdk'
66
s.license = 'Apache License, Version 2.0'
@@ -26,4 +26,4 @@ Pod::Spec.new do |s|
2626
]
2727
}
2828
end
29-
end
29+
end

CashAppPayKitUI.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'CashAppPayKitUI'
3-
s.version = "0.6.2"
3+
s.version = "0.6.3"
44
s.summary = 'UI components for the PayKit iOS SDK'
55
s.homepage = 'https://github.com/cashapp/cash-app-pay-ios-sdk'
66
s.license = 'Apache License, Version 2.0'

Demo/PayKitDemo/ComponentsViewController.swift

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,36 @@ class ComponentsViewController: UITableViewController {
2929
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
3030
let cell: UITableViewCell
3131
switch indexPath.row {
32-
case 0: cell = CashAppDemoCell(title: "Small Button", view: CashAppPayButton(size: .small, onClickHandler: {}))
32+
case 0:
33+
let smallButton = CashAppPayButton(size: .small, onClickHandler: {})
34+
smallButton.isEnabled = false
35+
cell = CashAppDemoCell(title: "Small Button", view: smallButton)
3336
case 1: cell = CashAppDemoCell(title: "Large Button", view: CashAppPayButton(size: .large, onClickHandler: {}))
34-
case 2: cell = CashAppDemoCell(
37+
case 2:
38+
cell = CashAppDemoCell(
39+
title: "Small Button",
40+
view: CashAppPayButton(size: .small, onClickHandler: {}, usePolychromeAsset: true)
41+
)
42+
case 3:
43+
let largeButton = CashAppPayButton(size: .large, onClickHandler: {}, usePolychromeAsset: true)
44+
largeButton.isEnabled = false
45+
cell = CashAppDemoCell(title: "Large Button", view: largeButton)
46+
case 4: cell = CashAppDemoCell(
3547
title: "Small Payment Method",
3648
view: CashAppPaymentMethod(size: .small, cashTag: "$jack")
3749
)
38-
case 3: cell = CashAppDemoCell(
50+
case 5: cell = CashAppDemoCell(
3951
title: "Large Payment Method",
4052
view: CashAppPaymentMethod(size: .large, cashTag: "$jack")
4153
)
54+
case 6: cell = CashAppDemoCell(
55+
title: "Small Payment Method",
56+
view: CashAppPaymentMethod(size: .small, cashTag: "$jack", usePolychromeAsset: true)
57+
)
58+
case 7: cell = CashAppDemoCell(
59+
title: "Large Payment Method",
60+
view: CashAppPaymentMethod(size: .large, cashTag: "$jack", usePolychromeAsset: true)
61+
)
4262
default:
4363
cell = UITableViewCell()
4464
}
@@ -55,7 +75,7 @@ class ComponentsViewController: UITableViewController {
5575
}
5676

5777
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
58-
4
78+
8
5979
}
6080

6181
override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {

RELEASE-NOTES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## Paykit 0.6.3 Release Notes
2+
3+
Pay Kit 0.6.3 supports iOS and requires Xcode 11 or later. The minimum supported Base SDK is 12.0.
4+
5+
Pay Kit 0.6.3 includes the following new features and enhancements.
6+
7+
- **PayKitUI Update**
8+
9+
This is a complete UI Update to button and payment method styles to coincide with Afterpay + Cash App brand convergence UI. An additional parameter called `usePolychromeAsset` will toggle between the two convergence UI styles and will default to false. Since this is not a breaking API change, it's recommended to view and select which asset type (`usePolychromeAsset`) to use. See `ComponentsViewController` to view all variations.
10+
111
## PayKit 0.6.2 Release Notes
212

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

Sources/PayKit/CashAppPay.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import UIKit
1919

2020
public class CashAppPay {
2121

22-
public static let version = "0.6.2"
22+
public static let version = "0.6.3"
2323

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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "srgb",
6+
"components" : {
7+
"alpha" : "1.000",
8+
"blue" : "0x00",
9+
"green" : "0x00",
10+
"red" : "0x00"
11+
}
12+
},
13+
"idiom" : "universal"
14+
},
15+
{
16+
"appearances" : [
17+
{
18+
"appearance" : "luminosity",
19+
"value" : "dark"
20+
}
21+
],
22+
"color" : {
23+
"color-space" : "srgb",
24+
"components" : {
25+
"alpha" : "1.000",
26+
"blue" : "0x4F",
27+
"green" : "0xD6",
28+
"red" : "0x00"
29+
}
30+
},
31+
"idiom" : "universal"
32+
}
33+
],
34+
"info" : {
35+
"author" : "xcode",
36+
"version" : 1
37+
}
38+
}

Sources/PayKitUI/Shared/Assets/Resources/Images.xcassets/DarkLogo.imageset/cash-app-pay-logotype-dark 1.svg

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)