From 5f60d0f42129cc9561f0924854b77babc99301b4 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sun, 9 Mar 2025 22:53:45 +0100 Subject: [PATCH] Updated the names of the targets in Package file. --- App/Sources/App.swift | 2 +- App/Sources/Options/AppOptions.swift | 2 +- Package.swift | 16 ++++++++-------- .../Internal/Enumerations/AssetPrefixTests.swift | 2 +- .../Internal/Enumerations/IndexPrefixTests.swift | 2 +- .../Internal/Enumerations/StaticFileTests.swift | 2 +- .../Middlewares/DoccMiddlewareTests.swift | 2 +- .../Internal/Providers/PathProviderTests.swift | 2 +- .../Cases/Public/Builders/AppBuilderTests.swift | 2 +- Test/Sources/Helpers/TestArguments.swift | 2 +- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/App/Sources/App.swift b/App/Sources/App.swift index cc558b8..844ff53 100644 --- a/App/Sources/App.swift +++ b/App/Sources/App.swift @@ -1,4 +1,4 @@ -import AppLibrary +import DoxyLibrary import ArgumentParser @main diff --git a/App/Sources/Options/AppOptions.swift b/App/Sources/Options/AppOptions.swift index d76acb6..4208ca8 100644 --- a/App/Sources/Options/AppOptions.swift +++ b/App/Sources/Options/AppOptions.swift @@ -1,5 +1,5 @@ -import AppLibrary import ArgumentParser +import DoxyLibrary import Logging extension App { diff --git a/Package.swift b/Package.swift index 71f9e66..27d6c44 100644 --- a/Package.swift +++ b/Package.swift @@ -3,13 +3,13 @@ import PackageDescription let package = Package( - name: "DocCRepo", + name: "Doxy", platforms: [ + .iOS(.v17), .macOS(.v14) ], products: [ - .executable(name: "App", targets: ["App"]), - .library(name: "AppLibrary", targets: ["AppLibrary"]) + .executable(name: "App", targets: ["DoxyApp"]) ], dependencies: [ .package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0"), @@ -17,16 +17,16 @@ let package = Package( ], targets: [ .executableTarget( - name: "App", + name: "DoxyApp", dependencies: [ .product(name: "ArgumentParser", package: "swift-argument-parser"), .product(name: "Hummingbird", package: "hummingbird"), - .target(name: "AppLibrary") + .target(name: "DoxyLibrary") ], path: "App" ), .target( - name: "AppLibrary", + name: "DoxyLibrary", dependencies: [ .product(name: "ArgumentParser", package: "swift-argument-parser"), .product(name: "Hummingbird", package: "hummingbird") @@ -34,10 +34,10 @@ let package = Package( path: "Library" ), .testTarget( - name: "AppTests", + name: "DoxyTests", dependencies: [ .product(name: "HummingbirdTesting", package: "hummingbird"), - .target(name: "AppLibrary") + .target(name: "DoxyLibrary") ], path: "Test" ) diff --git a/Test/Sources/Cases/Internal/Enumerations/AssetPrefixTests.swift b/Test/Sources/Cases/Internal/Enumerations/AssetPrefixTests.swift index c1db3fa..746a4eb 100644 --- a/Test/Sources/Cases/Internal/Enumerations/AssetPrefixTests.swift +++ b/Test/Sources/Cases/Internal/Enumerations/AssetPrefixTests.swift @@ -1,6 +1,6 @@ import Testing -@testable import AppLibrary +@testable import DoxyLibrary @Suite("AssetPrefix", .tags(.enumeration)) struct AssetPrefixTests { diff --git a/Test/Sources/Cases/Internal/Enumerations/IndexPrefixTests.swift b/Test/Sources/Cases/Internal/Enumerations/IndexPrefixTests.swift index 435f497..b802e3c 100644 --- a/Test/Sources/Cases/Internal/Enumerations/IndexPrefixTests.swift +++ b/Test/Sources/Cases/Internal/Enumerations/IndexPrefixTests.swift @@ -1,6 +1,6 @@ import Testing -@testable import AppLibrary +@testable import DoxyLibrary @Suite("IndexPrefix", .tags(.enumeration)) struct IndexPrefixTests { diff --git a/Test/Sources/Cases/Internal/Enumerations/StaticFileTests.swift b/Test/Sources/Cases/Internal/Enumerations/StaticFileTests.swift index a0a2cb8..641b66a 100644 --- a/Test/Sources/Cases/Internal/Enumerations/StaticFileTests.swift +++ b/Test/Sources/Cases/Internal/Enumerations/StaticFileTests.swift @@ -1,6 +1,6 @@ import Testing -@testable import AppLibrary +@testable import DoxyLibrary @Suite("StaticFile", .tags(.enumeration)) struct StaticFileTests { diff --git a/Test/Sources/Cases/Internal/Middlewares/DoccMiddlewareTests.swift b/Test/Sources/Cases/Internal/Middlewares/DoccMiddlewareTests.swift index d5cedfe..2371d96 100644 --- a/Test/Sources/Cases/Internal/Middlewares/DoccMiddlewareTests.swift +++ b/Test/Sources/Cases/Internal/Middlewares/DoccMiddlewareTests.swift @@ -2,7 +2,7 @@ import Hummingbird import HummingbirdTesting import Testing -@testable import AppLibrary +@testable import DoxyLibrary @Suite("DocCMiddleware", .tags(.middleware)) struct DoccMiddlewareTests { diff --git a/Test/Sources/Cases/Internal/Providers/PathProviderTests.swift b/Test/Sources/Cases/Internal/Providers/PathProviderTests.swift index 5a51d1e..022094a 100644 --- a/Test/Sources/Cases/Internal/Providers/PathProviderTests.swift +++ b/Test/Sources/Cases/Internal/Providers/PathProviderTests.swift @@ -1,6 +1,6 @@ import Testing -@testable import AppLibrary +@testable import DoxyLibrary @Suite("PathProvider", .tags(.provider)) struct PathProviderTests { diff --git a/Test/Sources/Cases/Public/Builders/AppBuilderTests.swift b/Test/Sources/Cases/Public/Builders/AppBuilderTests.swift index 641b77b..133dbfc 100644 --- a/Test/Sources/Cases/Public/Builders/AppBuilderTests.swift +++ b/Test/Sources/Cases/Public/Builders/AppBuilderTests.swift @@ -1,4 +1,4 @@ -import AppLibrary +import DoxyLibrary import Hummingbird import HummingbirdTesting import Testing diff --git a/Test/Sources/Helpers/TestArguments.swift b/Test/Sources/Helpers/TestArguments.swift index 83cbfd5..6d77355 100644 --- a/Test/Sources/Helpers/TestArguments.swift +++ b/Test/Sources/Helpers/TestArguments.swift @@ -1,4 +1,4 @@ -import AppLibrary +import DoxyLibrary import Logging struct TestArguments: AppArguments {