Skip to content

Commit

Permalink
refactor: Remove unnecessary packages (#2143)
Browse files Browse the repository at this point in the history
  • Loading branch information
priyonto authored Sep 2, 2024
1 parent c365052 commit 2075c51
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 42 deletions.
13 changes: 0 additions & 13 deletions Packages/RuuviContext/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,22 @@ let package = Package(
name: "RuuviContext",
targets: ["RuuviContext"]
),
.library(
name: "RuuviContextRealm",
targets: ["RuuviContextRealm"]
),
.library(
name: "RuuviContextSQLite",
targets: ["RuuviContextSQLite"]
),
],
dependencies: [
.package(name: "Realm", url: "https://github.com/realm/realm-cocoa", .upToNextMajor(from: "10.8.0")),
.package(path: "../RuuviOntology"),
.package(name: "GRDB", url: "https://github.com/groue/GRDB.swift", .upToNextMajor(from: "4.14.0")),
],
targets: [
.target(
name: "RuuviContext",
dependencies: [
.product(name: "RealmSwift", package: "Realm"),
.product(name: "GRDB", package: "GRDB"),
]
),
.target(
name: "RuuviContextRealm",
dependencies: [
.product(name: "RealmSwift", package: "Realm"),
"RuuviContext",
]
),
.target(
name: "RuuviContextSQLite",
dependencies: [
Expand Down
12 changes: 0 additions & 12 deletions Packages/RuuviOntology/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ let package = Package(
name: "RuuviOntology",
targets: ["RuuviOntology"]
),
.library(
name: "RuuviOntologyRealm",
targets: ["RuuviOntologyRealm"]
),
.library(
name: "RuuviOntologySQLite",
targets: ["RuuviOntologySQLite"]
Expand All @@ -23,7 +19,6 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/rinat-enikeev/Humidity", from: "0.1.5"),
.package(url: "https://github.com/ruuvi/BTKit", .upToNextMinor(from: "0.4.3")),
.package(name: "Realm", url: "https://github.com/realm/realm-cocoa", .upToNextMajor(from: "10.8.0")),
.package(name: "GRDB", url: "https://github.com/groue/GRDB.swift", .upToNextMajor(from: "4.14.0")),
],
targets: [
Expand All @@ -34,13 +29,6 @@ let package = Package(
"BTKit",
]
),
.target(
name: "RuuviOntologyRealm",
dependencies: [
"RuuviOntology",
.product(name: "RealmSwift", package: "Realm"),
]
),
.target(
name: "RuuviOntologySQLite",
dependencies: [
Expand Down
17 changes: 0 additions & 17 deletions Packages/RuuviPersistence/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,13 @@ let package = Package(
name: "RuuviPersistence",
targets: ["RuuviPersistence"]
),
.library(
name: "RuuviPersistenceRealm",
targets: ["RuuviPersistenceRealm"]
),
.library(
name: "RuuviPersistenceSQLite",
targets: ["RuuviPersistenceSQLite"]
),
],
dependencies: [
.package(url: "https://github.com/kean/Future", .exact("1.3.0")),
.package(name: "Realm", url: "https://github.com/realm/realm-cocoa", .upToNextMajor(from: "10.8.0")),
.package(name: "GRDB", url: "https://github.com/groue/GRDB.swift", .upToNextMajor(from: "4.14.0")),
.package(path: "../RuuviOntology"),
.package(path: "../RuuviContext"),
Expand All @@ -36,18 +31,6 @@ let package = Package(
"Future",
]
),
.target(
name: "RuuviPersistenceRealm",
dependencies: [
.product(name: "RuuviContextRealm", package: "RuuviContext"),
.product(name: "RuuviOntologyRealm", package: "RuuviOntology"),
.product(name: "RealmSwift", package: "Realm"),
"RuuviPersistence",
"RuuviOntology",
"RuuviContext",
"Future",
]
),
.target(
name: "RuuviPersistenceSQLite",
dependencies: [
Expand Down

0 comments on commit 2075c51

Please sign in to comment.