Defined the APICore library in the Libraries package for the Locations target.
This commit is contained in:
parent
e925048aa8
commit
30b84f735b
@ -15,9 +15,21 @@ let package = Package(
|
||||
dependencies: [],
|
||||
targets: [
|
||||
.target(
|
||||
name: "Locations",
|
||||
name: "APICore",
|
||||
dependencies: []
|
||||
),
|
||||
.target(
|
||||
name: "Locations",
|
||||
dependencies: [
|
||||
"APICore"
|
||||
]
|
||||
),
|
||||
.testTarget(
|
||||
name: "APICoreTests",
|
||||
dependencies: [
|
||||
"APICore"
|
||||
]
|
||||
),
|
||||
.testTarget(
|
||||
name: "LocationsTests",
|
||||
dependencies: [
|
||||
|
6
Apps/Locations/Libraries/Sources/APICore/Libraries.swift
Normal file
6
Apps/Locations/Libraries/Sources/APICore/Libraries.swift
Normal file
@ -0,0 +1,6 @@
|
||||
public struct Libraries {
|
||||
public private(set) var text = "Hello, World!"
|
||||
|
||||
public init() {
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
import XCTest
|
||||
@testable import Libraries
|
||||
|
||||
final class LibrariesTests: XCTestCase {
|
||||
func testExample() throws {
|
||||
// This is an example of a functional test case.
|
||||
// Use XCTAssert and related functions to verify your tests produce the correct
|
||||
// results.
|
||||
XCTAssertEqual(Libraries().text, "Hello, World!")
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user