Skip to content

Commit

Permalink
update pod
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonHu committed May 29, 2024
1 parent 835de7f commit d99836f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions DDKitSwift_Netfox.podspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Pod::Spec.new do |s|
s.name = 'DDKitSwift_Netfox'
s.swift_version = '5.0'
s.version = '3.0.2'
s.version = '3.0.3'
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'
s.authors = { 'ZXKitCode' => 'dong765@qq.com' }
s.authors = { 'DamonHu' => 'dong765@qq.com' }
s.source = { :git => "https://github.com/DamonHu/DDKitSwift_Netfox.git", :tag => s.version}
s.requires_arc = true
s.ios.deployment_target = '12.0'
Expand Down
8 changes: 4 additions & 4 deletions example/DDKitSwift_Netfox.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
E4ADD4D526A29C38000BD07F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E4ADD4D326A29C38000BD07F /* Main.storyboard */; };
E4ADD4D726A29C3B000BD07F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E4ADD4D626A29C3B000BD07F /* Assets.xcassets */; };
E4ADD4DA26A29C3B000BD07F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E4ADD4D826A29C3B000BD07F /* LaunchScreen.storyboard */; };
E4ADD4E426A29E75000BD07F /* NetFox+DDKitSwift.swift in Sources */ = {isa = PBXBuildFile; fileRef = E4ADD4E326A29E75000BD07F /* NetFox+DDKitSwift.swift */; };
E4ADD4E426A29E75000BD07F /* DDKitSwift_Netfox.swift in Sources */ = {isa = PBXBuildFile; fileRef = E4ADD4E326A29E75000BD07F /* DDKitSwift_Netfox.swift */; };
E4ADD4E726A2A077000BD07F /* netfox_logo.png in Resources */ = {isa = PBXBuildFile; fileRef = E4ADD4E626A2A077000BD07F /* netfox_logo.png */; };
E4ADD4EC26A2A1CA000BD07F /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = E4ADD4E926A2A1C9000BD07F /* Localizable.strings */; };
/* End PBXBuildFile section */
Expand All @@ -34,7 +34,7 @@
E4ADD4D626A29C3B000BD07F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
E4ADD4D926A29C3B000BD07F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
E4ADD4DB26A29C3B000BD07F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
E4ADD4E326A29E75000BD07F /* NetFox+DDKitSwift.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NetFox+DDKitSwift.swift"; sourceTree = "<group>"; };
E4ADD4E326A29E75000BD07F /* DDKitSwift_Netfox.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DDKitSwift_Netfox.swift; sourceTree = "<group>"; };
E4ADD4E626A2A077000BD07F /* netfox_logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = netfox_logo.png; sourceTree = "<group>"; };
E4ADD4EA26A2A1C9000BD07F /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
E4ADD4EB26A2A1CA000BD07F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
Expand Down Expand Up @@ -110,7 +110,7 @@
E4ADD4E126A29E3F000BD07F /* pod */ = {
isa = PBXGroup;
children = (
E4ADD4E326A29E75000BD07F /* NetFox+DDKitSwift.swift */,
E4ADD4E326A29E75000BD07F /* DDKitSwift_Netfox.swift */,
E4ADD4E526A29E81000BD07F /* assets */,
);
name = pod;
Expand Down Expand Up @@ -253,7 +253,7 @@
files = (
E4ADD4D226A29C38000BD07F /* ViewController.swift in Sources */,
E4ADD4CE26A29C38000BD07F /* AppDelegate.swift in Sources */,
E4ADD4E426A29E75000BD07F /* NetFox+DDKitSwift.swift in Sources */,
E4ADD4E426A29E75000BD07F /* DDKitSwift_Netfox.swift in Sources */,
E4ADD4D026A29C38000BD07F /* SceneDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion example/DDKitSwift_Netfox/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import DDKitSwift
import DDUtils

class ViewController: UIViewController {
let fox = NetFoxZXKit()
let fox = DDKitSwift_Netfox()
override func viewDidLoad() {
super.viewDidLoad()
DDKitSwift.regist(plugin: fox)
Expand Down
8 changes: 4 additions & 4 deletions pod/NetFox+DDKitSwift.swift → pod/DDKitSwift_Netfox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ import netfox

func UIImageHDBoundle(named: String?) -> UIImage? {
guard let name = named else { return nil }
guard let bundlePath = Bundle(for: NetFoxZXKit.self).path(forResource: "NetFoxZXKit", 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: NetFoxZXKit.self).path(forResource: "NetFoxZXKit", 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
}
}

open class NetFoxZXKit: DDKitSwiftPluginProtocol {
open class DDKitSwift_Netfox: DDKitSwiftPluginProtocol {
public init() {
NFX.sharedInstance().setGesture(.custom)
NFX.sharedInstance().start()
Expand All @@ -42,7 +42,7 @@ open class NetFoxZXKit: DDKitSwiftPluginProtocol {
}

public var pluginIdentifier: String {
return "com.zxkit.netfox"
return "com.ddkit.netfox"
}

public var pluginIcon: UIImage? {
Expand Down

0 comments on commit d99836f

Please sign in to comment.