Skip to content

Commit

Permalink
adding a way to use Mock networking publicly exposed
Browse files Browse the repository at this point in the history
  • Loading branch information
gligorkot committed Mar 11, 2020
1 parent 1a4b1d6 commit 0622b7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Classes/Core/Networking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ public extension Networking {
static func newNetworking() -> Networking {
return Networking(provider: newProvider(plugins))
}

/// use with caution, this stubs your networking layer and returns the sampleData declared in your Moya API
static func newSuccessMockNetworking() -> Networking {
return Networking.newSuccessfulResponseStubbedNetworking()
}

}

Expand Down
2 changes: 1 addition & 1 deletion GKNetworkingKit.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'GKNetworkingKit'
s.version = '1.3.0'
s.version = '1.4.0'
s.summary = 'GKNetworkingKit framework.'
s.description = <<-DESC
* GKNetworkingKit framework
Expand Down

0 comments on commit 0622b7b

Please sign in to comment.