Javier Cicchelli 4210df9eb6 [Libraries] Persistence (#5)
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
2023-04-10 22:59:58 +00:00

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"
]
),
]
)