Skip to content

Commit

Permalink
Release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Kogan committed Mar 14, 2022
1 parent 7ce7469 commit e901508
Show file tree
Hide file tree
Showing 59 changed files with 1,145 additions and 1,157 deletions.
8 changes: 4 additions & 4 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.0'
s.version = '1.0.1'

s.authors = {
'Isaac Weisberg' => '[email protected]',
Expand All @@ -15,7 +15,7 @@ Pod::Spec.new do |s|
s.license = { type: 'MIT', file: 'LICENSE' }
s.source = { git: 'https://github.com/Tinkoff/dolyamesdk-ios.git', tag: s.version.to_s }

s.ios.deployment_target = '13.0'
s.ios.deployment_target = '12.0'
s.swift_version = '5.0'
s.ios.vendored_frameworks = "Framework/#{s.name}.xcframework"
s.resources = [
Expand All @@ -26,8 +26,8 @@ Pod::Spec.new do |s|
s.dependency 'SnapKit', '~> 5.0.1'
s.dependency 'Keyboard+LayoutGuide', '~> 1.6.0'
s.dependency 'TPKeyboardAvoiding', '~> 1.3.5'
s.dependency 'Insecurity', '~> 3.0.1'
s.dependency 'Kingfisher', '~> 7.1.1'
s.dependency 'Insecurity', '~> 3.0.2'
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'
Expand Down
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.0</string>
<string>1.0.1</string>
<key>CFBundleVersion</key>
<string>1090</string>
<string>1126</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ class CartViewController: UIViewController {
init() {
super.init(nibName: nil, bundle: nil)

view.backgroundColor = .systemBackground
if #available(iOS 13.0, *) {
view.backgroundColor = .systemBackground
} else {
view.backgroundColor = .white
}

view.addSubview(titleLabel)
titleLabel.translatesAutoresizingMaskIntoConstraints = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ class CheckoutViewController: UIViewController {
// MARK: Private

private func setup() {
view.backgroundColor = .systemBackground
if #available(iOS 13.0, *) {
view.backgroundColor = .systemBackground
} else {
view.backgroundColor = .white
}

view.addSubview(scrollView)
scrollView.snp.makeConstraints { make in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ class CheckoutItemView: UIView {
super.init(frame: .zero)

let containerView = UIView()
containerView.backgroundColor = UIColor.systemGroupedBackground
if #available(iOS 13.0, *) {
containerView.backgroundColor = .systemGroupedBackground
} else {
containerView.backgroundColor = UIColor(red: 242.0 / 255.0, green: 242.0 / 255.0, blue: 247.0 / 255.0, alpha: 1.0)
}
containerView.layer.cornerRadius = 12.0

containerView.addSubview(titleLabel)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ class AddNewItemViewController: UIViewController {
title = "Добавить новый товар"
navigationItem.leftBarButtonItem = UIBarButtonItem(title: "Закрыть", style: .plain, target: self, action: #selector(onCloseTouched))

view.backgroundColor = .systemBackground
if #available(iOS 13.0, *) {
view.backgroundColor = .systemBackground
} else {
view.backgroundColor = .white
}

stackView.axis = .vertical
stackView.spacing = 2
view.addSubview(stackView)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ItemsListViewController: UIViewController {

private let presenter: IItemsListViewOutput

private let tableView = UITableView(frame: .zero, style: .insetGrouped)
private let tableView = UITableView(frame: .zero, style: .grouped)
private let toolBar = UIView()
private let addBarButton = UIButton(type: .system)

Expand All @@ -33,7 +33,11 @@ class ItemsListViewController: UIViewController {

override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = .systemBackground
if #available(iOS 13.0, *) {
view.backgroundColor = .systemBackground
} else {
view.backgroundColor = .white
}

title = "Товары"
navigationItem.leftBarButtonItem = UIBarButtonItem(title: "Закрыть", style: .plain, target: self, action: #selector(onCloseTouched))
Expand All @@ -43,9 +47,17 @@ class ItemsListViewController: UIViewController {
tableView.snp.makeConstraints { make in
make.leading.trailing.top.equalToSuperview()
}

if #available(iOS 13.0, *) {
toolBar.backgroundColor = .systemBackground
} else {
toolBar.backgroundColor = .white
}
view.addSubview(toolBar)
toolBar.backgroundColor = .systemBackground
if #available(iOS 13.0, *) {
toolBar.backgroundColor = .systemBackground
} else {
toolBar.backgroundColor = .white
}
toolBar.snp.makeConstraints { make in
make.top.equalTo(tableView.snp.bottom)
make.leading.trailing.equalToSuperview()
Expand Down
Loading

0 comments on commit e901508

Please sign in to comment.