diff --git a/Package.swift b/Package.swift index 1b89c51..0a2812e 100644 --- a/Package.swift +++ b/Package.swift @@ -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( @@ -20,12 +22,14 @@ let package = Package( url: "git@github.com:intaro/CloudPaymentNetworking.git", from: "1.0.2") ], - targets: [ .target( name: "CloudPayments", dependencies: ["CloudpaymentsNetworking"], path: "sdk", - resources: [.process("../Resources")]), + resources: [ + .process("../Resources") + ] + ) ] ) diff --git a/sdk/Sources/Utils/Extenstions/Bundle+Extenstions.swift b/sdk/Sources/Utils/Extenstions/Bundle+Extenstions.swift index cd1f868..3aa9b31 100644 --- a/sdk/Sources/Utils/Extenstions/Bundle+Extenstions.swift +++ b/sdk/Sources/Utils/Extenstions/Bundle+Extenstions.swift @@ -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 } } +