Skip to content

Commit 0622b7b

Browse files
committed
adding a way to use Mock networking publicly exposed
1 parent 1a4b1d6 commit 0622b7b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Classes/Core/Networking.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ public extension Networking {
1919
static func newNetworking() -> Networking {
2020
return Networking(provider: newProvider(plugins))
2121
}
22+
23+
/// use with caution, this stubs your networking layer and returns the sampleData declared in your Moya API
24+
static func newSuccessMockNetworking() -> Networking {
25+
return Networking.newSuccessfulResponseStubbedNetworking()
26+
}
2227

2328
}
2429

GKNetworkingKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'GKNetworkingKit'
4-
s.version = '1.3.0'
4+
s.version = '1.4.0'
55
s.summary = 'GKNetworkingKit framework.'
66
s.description = <<-DESC
77
* GKNetworkingKit framework

0 commit comments

Comments
 (0)