-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 2.16.0: YandexPay improvements (#264)
* [MIC-7482] CommonSheet adoption for different states (#255) * Change CommonSheet Implementation * Rename YandexPayPaymentActivity -> YandexPayPaymentSheet * Update CHANGELOG * Add secondary button event handling in controller * Add UIKit import to CommonSheetView * Fix extension description * Move dismission state to presenter * Rename CommonSheetIO * Simplify buttons configuration Co-authored-by: Ruslan Akhmadeev <[email protected]> * [MIC-7555] Add finish flow handling for YandexPay payments (#260) * Add new parameters to PaymentInfo * Add ability to provide FinishFlow to YandexPayButtonContainer * Rename IYandexPayPaymentFlowOutput -> YandexPayPaymentFlowDelegate * Update code documentation * Rename yandexPayPaymentActivity -> yandexPayPaymentSheet * Update Sample for new YP interface * Inject CoreSDK to BuyProductsViewController in sample f * Add additional YP Button to Sample * Add YP flow resolving in Sample * Add finish flow handling for YandexPayPaymentProcess * Use PaymentFlow's extension customer's email resolving * Remove unused properties in PaymentController * Update documentation * Update CHANGELOG * Update tests Update tests * Add import UIKIt to YandexPayPaymentFlowDelegate Co-authored-by: Ruslan Akhmadeev <[email protected]> * [MIC-7710] Fix common sheet primary button title (#263) * Change text in localization * Update CHANGELOG * Fix conflicts Fix color handling Fix unknown project's uuid * Bump podfile.lock * Fix CHANGELOG Co-authored-by: Ruslan Akhmadeev <[email protected]>
- Loading branch information
Showing
55 changed files
with
1,120 additions
and
1,200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// | ||
// UITableView+Utils.swift | ||
// | ||
// Copyright (c) 2021 Tinkoff Bank | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UITableView { | ||
func register(_ cellTypes: UITableViewCell.Type...) { | ||
cellTypes.forEach { | ||
register($0, forCellReuseIdentifier: "\($0)") | ||
} | ||
} | ||
|
||
func dequeue<Cell: UITableViewCell>(_ type: Cell.Type, for indexPath: IndexPath? = nil) -> Cell { | ||
let identifier = "\(type)" | ||
|
||
// swiftlint:disable force_cast | ||
if let indexPath = indexPath { | ||
return dequeueReusableCell(withIdentifier: identifier, for: indexPath) as! Cell | ||
} else { | ||
return dequeueReusableCell(withIdentifier: identifier) as! Cell | ||
} | ||
// swiftlint:enable force_cast | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
TinkoffASDKUI/TinkoffASDKUI/Extensions/UIStackView+Utils.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// UIStackView+Utils.swift | ||
// TinkoffASDKUI | ||
// | ||
// Created by r.akhmadeev on 12.01.2023. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UIStackView { | ||
func addArrangedSubviews(_ subviews: [UIView]) { | ||
subviews.forEach { addArrangedSubview($0) } | ||
} | ||
} |
Oops, something went wrong.