File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = 'netfox-zxkit'
3
3
s . swift_version = '5.0'
4
- s . version = '0.0.3 '
4
+ s . version = '0.0.4 '
5
5
s . license = { :type => "Apache-2.0" , :file => "LICENSE" }
6
6
s . summary = 'a quick look on all executed network requests performed by netfox'
7
7
s . homepage = 'https://github.com/ZXKitCode/netfox-zxkit'
Original file line number Diff line number Diff line change @@ -32,7 +32,13 @@ open class NetFoxZXKit: ZXKitPluginProtocol {
32
32
}
33
33
34
34
public func start( ) {
35
- NFX . sharedInstance ( ) . show ( )
35
+ ZXKit . hide ( )
36
+ DispatchQueue . main. asyncAfter ( deadline: . now( ) + 0.1 ) {
37
+ if !self . isRunning {
38
+ NFX . sharedInstance ( ) . start ( )
39
+ }
40
+ NFX . sharedInstance ( ) . show ( )
41
+ }
36
42
}
37
43
38
44
public var pluginIdentifier : String {
@@ -52,11 +58,17 @@ open class NetFoxZXKit: ZXKitPluginProtocol {
52
58
}
53
59
54
60
public var isRunning : Bool {
55
- return true
61
+ return NFX . sharedInstance ( ) . isStarted ( )
56
62
}
57
63
58
64
public func stop( ) {
59
- NFX . sharedInstance ( ) . hide ( )
65
+ ZXKit . hide ( )
66
+ DispatchQueue . main. asyncAfter ( deadline: . now( ) + 0.1 ) {
67
+ if !self . isRunning {
68
+ NFX . sharedInstance ( ) . start ( )
69
+ }
70
+ NFX . sharedInstance ( ) . show ( )
71
+ }
60
72
}
61
73
62
74
You can’t perform that action at this time.
0 commit comments