This PR contains the work that implements the Persistence service, which is used to store and serve the data of the application. To give further details on what was done: - [x] created the `Persistence`library into the **Libraries** package; - [x] defined the `Location` model into the **Model** core data model; - [x] implemented the `PersistenceService` service; - [x] removed the core data stack boilerplate code from the `AppDelegate` and `SceneDelegate` delegates in the *Locations* target. Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Reviewed-on: rock-n-code/deep-linking-assignment#5
55 lines
1.1 KiB
Swift
55 lines
1.1 KiB
Swift
// swift-tools-version: 5.8
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "Libraries",
|
|
platforms: [
|
|
.iOS(.v16)
|
|
],
|
|
products: [
|
|
.library(
|
|
name: "Libraries",
|
|
targets: [
|
|
"Locations"
|
|
]
|
|
),
|
|
],
|
|
dependencies: [],
|
|
targets: [
|
|
.target(
|
|
name: "APICore",
|
|
dependencies: []
|
|
),
|
|
.target(
|
|
name: "Locations",
|
|
dependencies: [
|
|
"APICore"
|
|
]
|
|
),
|
|
.target(
|
|
name: "Persistence",
|
|
dependencies: []
|
|
),
|
|
.testTarget(
|
|
name: "APICoreTests",
|
|
dependencies: [
|
|
"APICore"
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "LocationsTests",
|
|
dependencies: [
|
|
"APICore",
|
|
"Locations"
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "PersistenceTests",
|
|
dependencies: [
|
|
"Persistence"
|
|
]
|
|
),
|
|
]
|
|
)
|