Skip to content

Commit

Permalink
Update Dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Oct 17, 2023
1 parent 60ad62b commit cc60613
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 62 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/build-swiftpm.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/bump.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ jobs:

build-swiftpm:
name: Build SwiftPM
uses: ./.github/workflows/build-swiftpm.yml
uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm.yml@main
with:
package: "OversizeNetwork"
secrets: inherit

bump:
name: Bump version
needs: build-swiftpm
uses: ./.github/workflows/bump.yml
uses: oversizedev/GithubWorkflows/.github/workflows/bump.yml@main
secrets: inherit

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ DerivedData/
.swiftpm
.netrc
Package.resolved
Package.resolved
13 changes: 7 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ private extension PackageDescription.Target.Dependency {
static let openAPIRuntime: Self = .product(name: "OpenAPIRuntime", package: "swift-openapi-runtime")
static let openAPIURLSession: Self = .product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession")
static let factory: Self = .product(name: "Factory", package: "Factory")
static let oversizeServices: Self = .product(name: "OversizeServices", package: "OversizeServices")
static let oversizeModels: Self = .product(name: "OversizeModels", package: "OversizeModels")
}

private extension PackageDescription.Target.PluginUsage {
Expand All @@ -26,11 +26,12 @@ let package = Package(
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-openapi-generator", .upToNextMinor(from: "0.2.0")),
.package(url: "https://github.com/apple/swift-openapi-runtime", .upToNextMinor(from: "0.2.0")),
.package(url: "https://github.com/apple/swift-openapi-urlsession", .upToNextMinor(from: "0.2.0")),
.package(url: "https://github.com/apple/swift-openapi-generator", .upToNextMinor(from: "0.3.0")),
.package(url: "https://github.com/apple/swift-openapi-runtime", .upToNextMinor(from: "0.3.0")),
.package(url: "https://github.com/apple/swift-openapi-urlsession", .upToNextMinor(from: "0.3.0")),
.package(url: "https://github.com/hmlongco/Factory.git", .upToNextMajor(from: "2.1.3")),
.package(url: "https://github.com/oversizedev/OversizeServices.git", .upToNextMajor(from: "1.4.0")),
.package(url: "https://github.com/oversizedev/OversizeModels.git", .upToNextMajor(from: "0.1.0")),
//.package(name: "OversizeModels", path: "../OversizeModels"),
],
targets: [
.target(
Expand All @@ -39,7 +40,7 @@ let package = Package(
.openAPIRuntime,
.openAPIURLSession,
.factory,
.oversizeServices,
.oversizeModels,
],
path: "./Sources/OversizeNetwork/Repositories",
plugins: [
Expand Down
4 changes: 2 additions & 2 deletions Sources/OversizeNetwork/Repositories/NetworkService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// NetworkService.swift, created on 30.06.2023
//
import OpenAPIURLSession
import OversizeServices
import OversizeModels

public struct NetworkService {
let client = Client(
Expand Down Expand Up @@ -46,7 +46,7 @@ public struct NetworkService {
case .notFound:
return .failure(.network(type: .invalidURL))
}
} catch(let error) {
} catch {
print(error)
return .failure(.network(type: .unknown))
}
Expand Down

0 comments on commit cc60613

Please sign in to comment.