Skip to content

Commit

Permalink
move suggestions to its own package
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Mar 7, 2024
1 parent 2ab056e commit 958138e
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 8 deletions.
18 changes: 18 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ let package = Package(
.library(name: "SecureStorage", targets: ["SecureStorage"]),
.library(name: "Subscription", targets: ["Subscription"]),
.library(name: "History", targets: ["History"]),
.library(name: "Suggestions", targets: ["Suggestions"]),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/duckduckgo-autofill.git", exact: "10.1.0"),
Expand Down Expand Up @@ -112,6 +113,16 @@ let package = Package(
],
plugins: [swiftlintPlugin]
),
.target(
name: "Suggestions",
dependencies: [
"Common"
],
swiftSettings: [
.define("DEBUG", .when(configuration: .debug))
],
plugins: [swiftlintPlugin]
),
.executableTarget(
name: "BookmarksTestDBBuilder",
dependencies: [
Expand Down Expand Up @@ -340,6 +351,13 @@ let package = Package(
],
plugins: [swiftlintPlugin]
),
.testTarget(
name: "SuggestionsTests",
dependencies: [
"Suggestions",
],
plugins: [swiftlintPlugin]
),
.testTarget(
name: "BookmarksTests",
dependencies: [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//

import XCTest
@testable import BrowserServicesKit
@testable import Suggestions

final class APIResultTests: XCTestCase {

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

import Foundation
@testable import BrowserServicesKit
@testable import Suggestions

struct BookmarkMock: Bookmark {

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

import Foundation

@testable import BrowserServicesKit
@testable import Suggestions

struct HistoryEntryMock: HistorySuggestion {

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

import XCTest
@testable import BrowserServicesKit
@testable import Suggestions

final class ScoreTests: XCTestCase {

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

import XCTest
@testable import BrowserServicesKit
@testable import Suggestions

final class SuggestionLoadingTests: XCTestCase {

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

import XCTest
@testable import BrowserServicesKit
@testable import Suggestions

final class SuggestionProcessingTests: XCTestCase {

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

import XCTest
@testable import BrowserServicesKit
@testable import Suggestions

final class SuggestionResultTests: XCTestCase {

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

import XCTest
@testable import BrowserServicesKit
@testable import Suggestions

final class SuggestionTests: XCTestCase {

Expand Down

0 comments on commit 958138e

Please sign in to comment.