[Library] Filter library (#7)
This PR contains the work done to create the `Filter` library into the **Libraries** package, and moved the `FilterWordsUseCase` use case to it from the `Foundation` library. Reviewed-on: #7 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
This commit is contained in:
parent
ef6478dcc6
commit
72a8e77fc7
@ -27,13 +27,8 @@
|
|||||||
buildConfiguration = "Debug"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
<TestPlans>
|
shouldAutocreateTestPlan = "YES">
|
||||||
<TestPlanReference
|
|
||||||
reference = "container:../Libraries.xctestplan"
|
|
||||||
default = "YES">
|
|
||||||
</TestPlanReference>
|
|
||||||
</TestPlans>
|
|
||||||
</TestAction>
|
</TestAction>
|
||||||
<LaunchAction
|
<LaunchAction
|
||||||
buildConfiguration = "Debug"
|
buildConfiguration = "Debug"
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
//
|
//
|
||||||
// FilterWordsUseCaseTests.swift
|
// FilterWordsUseCaseTests.swift
|
||||||
// ReviewsFoundationTest
|
// ReviewsFilterTest
|
||||||
//
|
//
|
||||||
// Created by Javier Cicchelli on 18/03/2024.
|
// Created by Javier Cicchelli on 18/03/2024.
|
||||||
// Copyright © 2024 Röck+Cöde VoF. All rights reserved.
|
// Copyright © 2024 Röck+Cöde VoF. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
import ReviewsFilterKit
|
||||||
import ReviewsFoundationKit
|
import ReviewsFoundationKit
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
@ -12,6 +12,7 @@ let package = Package(
|
|||||||
name: .Product.name.kit,
|
name: .Product.name.kit,
|
||||||
targets: [
|
targets: [
|
||||||
.Target.feed.kit,
|
.Target.feed.kit,
|
||||||
|
.Target.filter.kit,
|
||||||
.Target.foundation.kit,
|
.Target.foundation.kit,
|
||||||
.Target.iTunes.kit,
|
.Target.iTunes.kit,
|
||||||
]
|
]
|
||||||
@ -25,6 +26,13 @@ let package = Package(
|
|||||||
],
|
],
|
||||||
path: "Feed/Kit"
|
path: "Feed/Kit"
|
||||||
),
|
),
|
||||||
|
.target(
|
||||||
|
name: .Target.filter.kit,
|
||||||
|
dependencies: [
|
||||||
|
.byName(name: .Target.foundation.kit),
|
||||||
|
],
|
||||||
|
path: "Filter/Kit"
|
||||||
|
),
|
||||||
.target(
|
.target(
|
||||||
name: .Target.foundation.kit,
|
name: .Target.foundation.kit,
|
||||||
path: "Foundation/Kit"
|
path: "Foundation/Kit"
|
||||||
@ -44,6 +52,13 @@ let package = Package(
|
|||||||
],
|
],
|
||||||
path: "Feed/Test"
|
path: "Feed/Test"
|
||||||
),
|
),
|
||||||
|
.testTarget(
|
||||||
|
name: .Target.filter.test,
|
||||||
|
dependencies: [
|
||||||
|
.byName(name: .Target.filter.kit),
|
||||||
|
],
|
||||||
|
path: "Filter/Test"
|
||||||
|
),
|
||||||
.testTarget(
|
.testTarget(
|
||||||
name: .Target.foundation.test,
|
name: .Target.foundation.test,
|
||||||
dependencies: [
|
dependencies: [
|
||||||
@ -73,6 +88,7 @@ private extension String {
|
|||||||
|
|
||||||
enum Target {
|
enum Target {
|
||||||
static let feed = "\(String.Product.name)Feed"
|
static let feed = "\(String.Product.name)Feed"
|
||||||
|
static let filter = "\(String.Product.name)Filter"
|
||||||
static let foundation = "\(String.Product.name)Foundation"
|
static let foundation = "\(String.Product.name)Foundation"
|
||||||
static let iTunes = "\(String.Product.name)iTunes"
|
static let iTunes = "\(String.Product.name)iTunes"
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,6 @@
|
|||||||
/* End PBXCopyFilesBuildPhase section */
|
/* End PBXCopyFilesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
02900C4B2BA5347A008D2E8D /* Libraries.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = Libraries.xctestplan; sourceTree = "<group>"; };
|
|
||||||
02DC7F8F2BA51793000EEEBE /* ReviewsFeed.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ReviewsFeed.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
02DC7F8F2BA51793000EEEBE /* ReviewsFeed.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ReviewsFeed.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
02DC7F912BA51793000EEEBE /* ReviewsFeed.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ReviewsFeed.h; sourceTree = "<group>"; };
|
02DC7F912BA51793000EEEBE /* ReviewsFeed.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ReviewsFeed.h; sourceTree = "<group>"; };
|
||||||
02DC7FB12BA52084000EEEBE /* Libraries */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Libraries; sourceTree = "<group>"; };
|
02DC7FB12BA52084000EEEBE /* Libraries */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Libraries; sourceTree = "<group>"; };
|
||||||
@ -82,14 +81,6 @@
|
|||||||
/* End PBXFrameworksBuildPhase section */
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXGroup section */
|
/* Begin PBXGroup section */
|
||||||
02900C4C2BA5347A008D2E8D /* Test Plans */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
02900C4B2BA5347A008D2E8D /* Libraries.xctestplan */,
|
|
||||||
);
|
|
||||||
path = "Test Plans";
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
02A6DA2F2BA591C000B943E2 /* Bundle */ = {
|
02A6DA2F2BA591C000B943E2 /* Bundle */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
@ -182,7 +173,6 @@
|
|||||||
02DC7FB12BA52084000EEEBE /* Libraries */,
|
02DC7FB12BA52084000EEEBE /* Libraries */,
|
||||||
02DC7FAB2BA51848000EEEBE /* Frameworks */,
|
02DC7FAB2BA51848000EEEBE /* Frameworks */,
|
||||||
345AD11A24C6EDD9004E2EE1 /* App */,
|
345AD11A24C6EDD9004E2EE1 /* App */,
|
||||||
02900C4C2BA5347A008D2E8D /* Test Plans */,
|
|
||||||
345AD11924C6EDD9004E2EE1 /* Products */,
|
345AD11924C6EDD9004E2EE1 /* Products */,
|
||||||
);
|
);
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations" : [
|
|
||||||
{
|
|
||||||
"id" : "BF43DE96-4FFB-475F-B056-3EE94ACD1F54",
|
|
||||||
"name" : "Test Scheme Action",
|
|
||||||
"options" : {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"defaultOptions" : {
|
|
||||||
"codeCoverage" : false
|
|
||||||
},
|
|
||||||
"testTargets" : [
|
|
||||||
{
|
|
||||||
"target" : {
|
|
||||||
"containerPath" : "container:Libraries",
|
|
||||||
"identifier" : "ReviewsFoundationTest",
|
|
||||||
"name" : "ReviewsFoundationTest"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"version" : 1
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user