Skip to content

Commit

Permalink
Merge pull request #2 from pkrll/fix/network-renaming
Browse files Browse the repository at this point in the history
Rename Network package
  • Loading branch information
pkrll authored Jul 23, 2021
2 parents ccf092c + a8879f2 commit d3aa7c7
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
xcuserdata/
DerivedData/
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Package.resolved
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ let package = Package(
name: "Deta",
products: [.library(name: "Deta", targets: ["Deta"])],
dependencies: [
.package(url: "https://github.com/pkrll/Network", from: "0.1.0")
.package(name: "NetworkStack", url: "https://github.com/pkrll/Network", from: "0.1.0")
],
targets: [
.target(name: "Deta", dependencies: ["Network"]),
.target(name: "Deta", dependencies: ["NetworkStack"]),
.testTarget(name: "DetaTests", dependencies: ["Deta"]),
]
)
2 changes: 1 addition & 1 deletion Sources/Deta/Core/Deta+Internal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

import Foundation
import Network
import NetworkStack

extension Deta {
func parse<T: Decodable>(_ response: Response, as type: T.Type) throws -> T {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Deta/Core/Deta.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation
import Network
import NetworkStack

public final class Deta {

Expand Down
2 changes: 1 addition & 1 deletion Sources/Deta/Extensions/Environment+Convenience.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

import Foundation
import Network
import NetworkStack

extension Environment {
init(projectKey: String, base: String) {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Deta/Models/Error.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

import Foundation
import Network
import NetworkStack

public struct Error: Swift.Error {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

import Foundation
import Network
import NetworkStack

extension InjectedValue {
var operationBuilder: OperationBuilder {
Expand Down
2 changes: 1 addition & 1 deletion Tests/DetaTests/DetaTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import XCTest
import Network
import NetworkStack
@testable import Deta

final class DetaTests: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/DetaTests/Mocks/Fetch.Response+Encodable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

import Foundation
import Network
import NetworkStack
@testable import Deta

extension Fetch.Response: Encodable, Equatable where Item: Equatable {
Expand Down
2 changes: 1 addition & 1 deletion Tests/DetaTests/Mocks/InjectedValue+HttpKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

import Foundation
import Network
import NetworkStack
@testable import Deta

extension InjectedValue {
Expand Down
2 changes: 1 addition & 1 deletion Tests/DetaTests/Mocks/MockItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

import Foundation
import Network
import NetworkStack
import Deta

struct MockItem: Fetchable, Equatable {
Expand Down
2 changes: 1 addition & 1 deletion Tests/DetaTests/Mocks/MockOperationBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

import Foundation
import Network
import NetworkStack

final class MockOperationBuilder: OperationBuilder {
override func append(_ operation: Operation) -> Self {
Expand Down
2 changes: 1 addition & 1 deletion Tests/DetaTests/Mocks/MockOperator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

import Foundation
import Network
import NetworkStack
@testable import Deta

final class MockOperator: Operator {
Expand Down

0 comments on commit d3aa7c7

Please sign in to comment.