Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main1 #2

Open
wants to merge 47 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
4faa726
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
f387274
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
91577dd
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
df0681b
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
3fb8214
Update Package.swift
TheViLkiS Oct 28, 2024
a4fc7e4
Update Package.swift
TheViLkiS Oct 28, 2024
a5e65dc
Update Package.swift
TheViLkiS Oct 28, 2024
867aaee
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
e4fc6ca
Update Package.swift
TheViLkiS Oct 28, 2024
46a09a0
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
ae38289
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
93f04e8
Update Package.swift
TheViLkiS Oct 28, 2024
1842401
Update Package.swift
TheViLkiS Oct 28, 2024
7806817
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
0196515
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
b821e27
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
7b0fc60
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
b7def27
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
8942e64
Update Package.swift
TheViLkiS Oct 28, 2024
0e30f2f
Update Package.swift
TheViLkiS Oct 28, 2024
c627dca
Update Package.swift
TheViLkiS Oct 28, 2024
9aecd63
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
1d1fc51
Update Package.swift
TheViLkiS Oct 28, 2024
f12e0c4
Update Package.swift
TheViLkiS Oct 28, 2024
6b0bc12
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
37448f0
Update Package.swift
TheViLkiS Oct 28, 2024
234a87e
Update Package.swift
TheViLkiS Oct 28, 2024
9e12a0d
Update Package.swift
TheViLkiS Oct 28, 2024
351ff35
Update PaymentOptionsForm.swift
TheViLkiS Oct 28, 2024
cfff871
Update PaymentOptionsForm.swift
TheViLkiS Oct 28, 2024
5fbafdd
Update PaymentOptionsForm.swift
TheViLkiS Oct 28, 2024
f7fc4b3
Update PaymentOptionsForm.swift
TheViLkiS Oct 28, 2024
5669858
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
e342d44
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
c1dc0a3
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
349fede
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
f999125
Update Package.swift
TheViLkiS Oct 28, 2024
5f2ccfc
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
3529e6f
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
f460dd2
Update Package.swift
TheViLkiS Oct 28, 2024
f6fc1c2
Update Package.swift
TheViLkiS Oct 28, 2024
249c4d4
Update Package.swift
TheViLkiS Oct 28, 2024
004e899
Update Package.swift
TheViLkiS Oct 28, 2024
06a8945
Update Package.swift
TheViLkiS Oct 28, 2024
5e7ed33
Update Package.swift
TheViLkiS Oct 28, 2024
447660a
Update Bundle+Extenstions.swift
TheViLkiS Oct 28, 2024
66d5047
Update Package.swift
TheViLkiS Oct 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.

// swift-tools-version:5.5

import PackageDescription

let package = Package(
Expand All @@ -20,12 +22,14 @@ let package = Package(
url: "[email protected]:intaro/CloudPaymentNetworking.git",
from: "1.0.2")
],

targets: [
.target(
name: "CloudPayments",
dependencies: ["CloudpaymentsNetworking"],
path: "sdk",
resources: [.process("../Resources")]),
resources: [
.process("../Resources")
]
)
]
)
11 changes: 2 additions & 9 deletions sdk/Sources/Utils/Extenstions/Bundle+Extenstions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,14 @@
// Created by Sergey Iskhakov on 16.09.2020.
// Copyright © 2020 Cloudpayments. All rights reserved.
//

import Foundation
import UIKit

extension Bundle {

class var mainSdk: Bundle {
let bundle = Bundle.init(for: PaymentForm.self)
let bundleUrl = bundle.url(forResource: "CloudpaymentsSDK", withExtension: "bundle")
return Bundle.init(url: bundleUrl!)!
}

class var cocoapods: Bundle? {
return Bundle(identifier: "org.cocoapods.Cloudpayments")
return Bundle(identifier: "cloudpayments.CloudPayments.resources") ?? Bundle.main
}
}