Skip to content

Commit

Permalink
fix icon
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonHu committed Sep 10, 2024
1 parent d99836f commit ce8302e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions DDKitSwift_Netfox.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = 'DDKitSwift_Netfox'
s.swift_version = '5.0'
s.version = '3.0.3'
s.version = '3.0.4'
s.license= { :type => "MIT", :file => "LICENSE" }
s.summary = 'a quick look on all executed network requests performed by netfox'
s.homepage = 'https://github.com/DamonHu/DDKitSwift_Netfox'
Expand All @@ -10,10 +10,10 @@ s.source = { :git => "https://github.com/DamonHu/DDKitSwift_Netfox.git", :tag =>
s.requires_arc = true
s.ios.deployment_target = '12.0'
s.resource_bundles = {
'NetFoxZXKit' => ['pod/assets/**/*']
'DDKitSwift_Netfox' => ['pod/assets/**/*']
}
s.source_files = "pod/*.swift"
s.dependency 'netfox', '1.21.0'
s.dependency 'DDKitSwift/core', '~> 3.0.0'
s.dependency 'DDKitSwift/core', '~> 3'
s.documentation_url = 'https://github.com/DamonHu/DDKitSwift_Netfox'
end
Binary file not shown.
2 changes: 1 addition & 1 deletion example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ target 'DDKitSwift_Netfox' do

# Pods for DDKitSwift_Netfox
pod 'netfox', '~> 1.21.0'
pod 'DDKitSwift/core', '~> 3.0.0'
pod 'DDKitSwift/core', '~> 3'
end
4 changes: 2 additions & 2 deletions pod/DDKitSwift_Netfox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import netfox

func UIImageHDBoundle(named: String?) -> UIImage? {
guard let name = named else { return nil }
guard let bundlePath = Bundle(for: DDKitSwift_Netfox.self).path(forResource: "DDKitSwift_NetFox", ofType: "bundle") else { return UIImage(named: name) }
guard let bundlePath = Bundle(for: DDKitSwift_Netfox.self).path(forResource: "DDKitSwift_Netfox", ofType: "bundle") else { return UIImage(named: name) }
guard let bundle = Bundle(path: bundlePath) else { return UIImage(named: name) }
return UIImage(named: name, in: bundle, compatibleWith: nil)
}

extension String{
var ZXLocaleString: String {
guard let bundlePath = Bundle(for: DDKitSwift_Netfox.self).path(forResource: "DDKitSwift_NetFox", ofType: "bundle") else { return NSLocalizedString(self, comment: "") }
guard let bundlePath = Bundle(for: DDKitSwift_Netfox.self).path(forResource: "DDKitSwift_Netfox", ofType: "bundle") else { return NSLocalizedString(self, comment: "") }
guard let bundle = Bundle(path: bundlePath) else { return NSLocalizedString(self, comment: "") }
let msg = NSLocalizedString(self, tableName: nil, bundle: bundle, value: "", comment: "")
return msg
Expand Down

0 comments on commit ce8302e

Please sign in to comment.