Skip to content

Commit

Permalink
Release 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Kogan committed Apr 8, 2022
1 parent e9391bb commit d6857d3
Show file tree
Hide file tree
Showing 159 changed files with 28,954 additions and 5,272 deletions.
3 changes: 3 additions & 0 deletions DolyameSDK.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"1.0.5": "https://raw.githubusercontent.com/Tinkoff/dolyamesdk-ios/1.0.5/Framework/DolyameSDK.xcframework.zip"
}
15 changes: 2 additions & 13 deletions DolyameSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Pod::Spec.new do |s|
s.name = 'DolyameSDK'
s.summary = 'Dolyame SDK for iOS'

s.version = '1.0.4'
s.version = '1.0.5'

s.authors = {
'Isaac Weisberg' => '[email protected]',
Expand All @@ -21,16 +21,5 @@ Pod::Spec.new do |s|
s.resources = [
"Framework/#{s.name}.xcframework/ios-arm64/#{s.name}.framework/#{s.name}Images.bundle"
]

# Dependencies
s.dependency 'SnapKit', '~> 5.0.1'
s.dependency 'Keyboard+LayoutGuide', '~> 1.6.0'
s.dependency 'TPKeyboardAvoiding', '~> 1.3.5'
s.dependency 'Insecurity', '~> 3.0.3'
s.dependency 'Kingfisher', '~> 7.2.0'
s.dependency 'KingfisherWebP', '~> 1.4.0'
s.dependency 'TinkoffASDKCore', '~> 3.0.0-alpha7'
s.dependency 'TinkoffASDKUI', '~> 3.0.0-alpha7'
s.dependency 'Amplitude', '~> 8.5.0'
s.dependency 'SwiftyJSON', '~> 5.0.1'
s.frameworks = "CFNetwork", "Accelerate"
end
4 changes: 2 additions & 2 deletions Example/DolyameSDKUsageDemo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0.4</string>
<string>1.0.5</string>
<key>CFBundleVersion</key>
<string>1201</string>
<string>1236</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ class CheckoutCoordinator {

let partner = DolyamePaymentConfiguration.Partner(id: "bnpl-test-app",
notificationUrl: model.notificationUrl,
demoFlow: model.isDemoFlow,
showErrorScreenDebugInformation: model.showErrorScreenDebugInformation)
demoFlow: model.isDemoFlow)

let dolyamePaymentConfig = DolyamePaymentConfiguration(partner: partner,
order: orderData,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class CheckoutPresenter {
let navigation = Navigation()

var model: CheckoutModel = CheckoutModel(isDemoFlow: false,
showErrorScreenDebugInformation: true,
notificationUrl: nil,
orderId: UUID().uuidString,
orderAmount: 4900,
Expand Down Expand Up @@ -53,7 +52,6 @@ class CheckoutPresenter {

private func createInputData(model: CheckoutModel) -> CheckoutInputData {
CheckoutInputData(isDemoFlow: model.isDemoFlow,
showErrorScreenDebugInformation: model.showErrorScreenDebugInformation,
notificationUrl: model.notificationUrl,
orderId: model.orderId,
orderAmount: model.orderAmount,
Expand All @@ -71,7 +69,6 @@ class CheckoutPresenter {
private func createModelWith(inputData: CheckoutInputData,
orderItems: [CheckoutItemModel]) -> CheckoutModel {
CheckoutModel(isDemoFlow: inputData.isDemoFlow,
showErrorScreenDebugInformation: inputData.showErrorScreenDebugInformation,
notificationUrl: inputData.notificationUrl,
orderId: inputData.orderId,
orderAmount: inputData.orderAmount,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import DolyameSDK
import SnapKit
import UIKit

class CheckoutViewController: UIViewController {
Expand All @@ -15,7 +14,6 @@ class CheckoutViewController: UIViewController {
let payWithDolyameButton = DolyamePaymentButton()

let demoFlowParamView = SwitchParameterView()
let showErrorScreenDebugInformationView = SwitchParameterView()

let notificationUrlParamView = ModifiableParameterView()

Expand Down Expand Up @@ -103,7 +101,6 @@ class CheckoutViewController: UIViewController {
let orderMcc = orderMcc,
let clientInfoId = clientInfoId {
let inputData = CheckoutInputData(isDemoFlow: demoFlowParamView.switcher.isOn,
showErrorScreenDebugInformation: showErrorScreenDebugInformationView.switcher.isOn,
notificationUrl: notificationUrl,
orderId: orderId,
orderAmount: orderAmount,
Expand Down Expand Up @@ -179,10 +176,6 @@ class CheckoutViewController: UIViewController {
demoFlowParamView.label.text = "Demo flow"
demoFlowParamView.switcher.setOn(false, animated: false)

stackView.addArrangedSubview(showErrorScreenDebugInformationView)
showErrorScreenDebugInformationView.label.text = "Error Screen Debug Messages"
showErrorScreenDebugInformationView.switcher.setOn(true, animated: false)

let partnerLabel = UILabel()
partnerLabel.text = "Partner"
stackView.addArrangedSubview(partnerLabel)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import Foundation

struct CheckoutInputData {
let isDemoFlow: Bool
let showErrorScreenDebugInformation: Bool

let notificationUrl: String?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import Foundation

struct CheckoutModel {
let isDemoFlow: Bool
let showErrorScreenDebugInformation: Bool

let notificationUrl: String?

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import SnapKit
import UIKit

class CheckoutItemView: UIView {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import SnapKit
import UIKit

class ModifiableParameterView: UIView {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// Created by a.tonkhonoev on 02.12.2021.
//

import SnapKit
import UIKit

class SwitchParameterView: UIView {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// Created by a.tonkhonoev on 29.11.2021.
//

import SnapKit
import UIKit

struct ItemsListCellObject {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// Created by a.tonkhonoev on 28.11.2021.
//

import SnapKit
import UIKit

class ItemsListViewController: UIViewController {
Expand Down
Loading

0 comments on commit d6857d3

Please sign in to comment.