Manos Chorianopoulos

add resourceBundle

...@@ -29,7 +29,7 @@ Pod::Spec.new do |spec| ...@@ -29,7 +29,7 @@ Pod::Spec.new do |spec|
29 # spec.vendored_frameworks = "SwiftWarplyFramework.framework" 29 # spec.vendored_frameworks = "SwiftWarplyFramework.framework"
30 spec.exclude_files = "Classes/Exclude" 30 spec.exclude_files = "Classes/Exclude"
31 31
32 - spec.dependency 'RSBarcodes_Swift', '~> 5.1.1' 32 + # spec.dependency 'RSBarcodes_Swift', '~> 5.1.1'
33 spec.dependency 'SwiftEventBus' 33 spec.dependency 'SwiftEventBus'
34 # spec.resource_bundles = { 'SwiftWarplyFramework' => ['SwiftWarplyFramework/**/*.{lproj,storyboard}'] } 34 # spec.resource_bundles = { 'SwiftWarplyFramework' => ['SwiftWarplyFramework/**/*.{lproj,storyboard}'] }
35 # spec.resource_bundles = { 'SwiftWarplyFramework' => ['SwiftWarplyFramework/SwiftWarplyFramework/*.{png,jpeg,jpg,storyboard,xib,xcassets,json,ttf}'] } 35 # spec.resource_bundles = { 'SwiftWarplyFramework' => ['SwiftWarplyFramework/SwiftWarplyFramework/*.{png,jpeg,jpg,storyboard,xib,xcassets,json,ttf}'] }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
6 // 6 //
7 7
8 import UIKit 8 import UIKit
9 -import RSBarcodes_Swift 9 +// import RSBarcodes_Swift
10 import AVFoundation 10 import AVFoundation
11 // import SwiftEventBus 11 // import SwiftEventBus
12 12
......
...@@ -9,4 +9,10 @@ import Foundation ...@@ -9,4 +9,10 @@ import Foundation
9 9
10 public class MyEmptyClass { 10 public class MyEmptyClass {
11 11
12 + static func resourceBundle() -> Bundle? {
13 + let frameworkBundle = Bundle(for: MyEmptyClass.self)
14 + let bundleURL = frameworkBundle.resourceURL?.appendingPathComponent("ResourcesBundle.bundle")
15 + let resourceBundle = Bundle(url: bundleURL!)
16 + return resourceBundle
17 + }
12 } 18 }
......