From c5ed4b8577421f3aa5fcee66ba34285dd8841587 Mon Sep 17 00:00:00 2001 From: Yunosuke Sakai Date: Sat, 4 May 2024 14:29:03 +0900 Subject: [PATCH] rename `Features` to `AppFeature` --- AllTests.xctestplan | 14 +++++++------- App/NASAClientApp.swift | 2 +- Features/Package.swift | 10 +++++----- .../{Features => AppFeature}/AppReducer.swift | 0 .../Sources/{Features => AppFeature}/AppView.swift | 0 .../Tests/AppFeatureTests/AppFeatureTests.swift | 4 ++++ Features/Tests/FeaturesTests/FeaturesTests.swift | 4 ---- NASAClient.xcodeproj/project.pbxproj | 10 +++++----- 8 files changed, 22 insertions(+), 22 deletions(-) rename Features/Sources/{Features => AppFeature}/AppReducer.swift (100%) rename Features/Sources/{Features => AppFeature}/AppView.swift (100%) create mode 100644 Features/Tests/AppFeatureTests/AppFeatureTests.swift delete mode 100644 Features/Tests/FeaturesTests/FeaturesTests.swift diff --git a/AllTests.xctestplan b/AllTests.xctestplan index ec0c951..3e3d90d 100644 --- a/AllTests.xctestplan +++ b/AllTests.xctestplan @@ -19,13 +19,6 @@ "name" : "APIClientTests" } }, - { - "target" : { - "containerPath" : "container:Features", - "identifier" : "FeaturesTests", - "name" : "FeaturesTests" - } - }, { "target" : { "containerPath" : "container:Features", @@ -46,6 +39,13 @@ "identifier" : "ModelsTests", "name" : "ModelsTests" } + }, + { + "target" : { + "containerPath" : "container:Features", + "identifier" : "AppFeatureTests", + "name" : "AppFeatureTests" + } } ], "version" : 1 diff --git a/App/NASAClientApp.swift b/App/NASAClientApp.swift index de257e1..8bf6e2f 100644 --- a/App/NASAClientApp.swift +++ b/App/NASAClientApp.swift @@ -1,4 +1,4 @@ -import Features +import AppFeature import SwiftUI @main diff --git a/Features/Package.swift b/Features/Package.swift index e984cd4..94ae436 100644 --- a/Features/Package.swift +++ b/Features/Package.swift @@ -12,8 +12,8 @@ let package = Package( targets: ["APIClient"] ), .library( - name: "Features", - targets: ["Features"] + name: "AppFeature", + targets: ["AppFeature"] ), .library( name: "Models", @@ -45,15 +45,15 @@ let package = Package( dependencies: ["APIClient"] ), .target( - name: "Features", + name: "AppFeature", dependencies: [ "Settings", "Today", ] ), .testTarget( - name: "FeaturesTests", - dependencies: ["Features"] + name: "AppFeatureTests", + dependencies: ["AppFeature"] ), .target( name: "Models", diff --git a/Features/Sources/Features/AppReducer.swift b/Features/Sources/AppFeature/AppReducer.swift similarity index 100% rename from Features/Sources/Features/AppReducer.swift rename to Features/Sources/AppFeature/AppReducer.swift diff --git a/Features/Sources/Features/AppView.swift b/Features/Sources/AppFeature/AppView.swift similarity index 100% rename from Features/Sources/Features/AppView.swift rename to Features/Sources/AppFeature/AppView.swift diff --git a/Features/Tests/AppFeatureTests/AppFeatureTests.swift b/Features/Tests/AppFeatureTests/AppFeatureTests.swift new file mode 100644 index 0000000..4c5cfcf --- /dev/null +++ b/Features/Tests/AppFeatureTests/AppFeatureTests.swift @@ -0,0 +1,4 @@ +@testable import AppFeature +import XCTest + +final class AppFeatureTests: XCTestCase {} diff --git a/Features/Tests/FeaturesTests/FeaturesTests.swift b/Features/Tests/FeaturesTests/FeaturesTests.swift deleted file mode 100644 index ee1ae4f..0000000 --- a/Features/Tests/FeaturesTests/FeaturesTests.swift +++ /dev/null @@ -1,4 +0,0 @@ -import XCTest -@testable import Features - -final class FeaturesTests: XCTestCase {} diff --git a/NASAClient.xcodeproj/project.pbxproj b/NASAClient.xcodeproj/project.pbxproj index 2ae868e..2c31f07 100644 --- a/NASAClient.xcodeproj/project.pbxproj +++ b/NASAClient.xcodeproj/project.pbxproj @@ -10,7 +10,7 @@ 021A57BB269C141100A55AC1 /* NASAClientApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 021A57BA269C141100A55AC1 /* NASAClientApp.swift */; }; 021A57BF269C141200A55AC1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 021A57BE269C141200A55AC1 /* Assets.xcassets */; }; 021A57C2269C141200A55AC1 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 021A57C1269C141200A55AC1 /* Preview Assets.xcassets */; }; - 02BD2B382A28EDA000141B4F /* Features in Frameworks */ = {isa = PBXBuildFile; productRef = 02BD2B372A28EDA000141B4F /* Features */; }; + 02B730152BE5FE3500DFEB10 /* AppFeature in Frameworks */ = {isa = PBXBuildFile; productRef = 02B730142BE5FE3500DFEB10 /* AppFeature */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -28,7 +28,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 02BD2B382A28EDA000141B4F /* Features in Frameworks */, + 02B730152BE5FE3500DFEB10 /* AppFeature in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -97,7 +97,7 @@ ); name = NASAClient; packageProductDependencies = ( - 02BD2B372A28EDA000141B4F /* Features */, + 02B730142BE5FE3500DFEB10 /* AppFeature */, ); productName = NASAClient; productReference = 021A57B7269C141100A55AC1 /* NASAClient.app */; @@ -362,9 +362,9 @@ /* End XCConfigurationList section */ /* Begin XCSwiftPackageProductDependency section */ - 02BD2B372A28EDA000141B4F /* Features */ = { + 02B730142BE5FE3500DFEB10 /* AppFeature */ = { isa = XCSwiftPackageProductDependency; - productName = Features; + productName = AppFeature; }; /* End XCSwiftPackageProductDependency section */ };