Showing
4 changed files
with
8 additions
and
2 deletions
... | @@ -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}'] } | ... | ... |
No preview for this file type
... | @@ -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 | } | ... | ... |
-
Please register or login to post a comment