Skip to content

Commit

Permalink
Remove ObjectFactory dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ns-vasilev committed Dec 29, 2023
1 parent bc561e4 commit fccedf9
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 20 deletions.
4 changes: 0 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/space-code/concurrency.git", .upToNextMajor(from: "0.0.1")),
.package(url: "https://github.com/space-code/objects-factory.git", .upToNextMajor(from: "1.0.0")),
],
targets: [
.target(
Expand All @@ -36,9 +35,6 @@ let package = Package(
"Flare",
.product(name: "ObjectsFactory", package: "objects-factory"),
.product(name: "TestConcurrency", package: "concurrency"),
],
resources: [
.process("Flare.storekit"),
]
),
]
Expand Down
4 changes: 0 additions & 4 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/space-code/concurrency.git", .upToNextMajor(from: "0.0.1")),
.package(url: "https://github.com/space-code/objects-factory.git", .upToNextMajor(from: "1.0.0")),
],
targets: [
.target(
Expand All @@ -33,9 +32,6 @@ let package = Package(
.product(name: "ObjectsFactory", package: "objects-factory"),
.product(name: "TestConcurrency", package: "concurrency"),
],
resources: [
.process("Flare.storekit"),
]
),
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,11 @@
//

#if os(iOS) || VISION_OS
import ObjectsFactory
import UIKit

final class WindowSceneFactory {
static func makeWindowScene() -> UIWindowScene {
do {
let session = try ObjectsFactory.create(UISceneSession.self)
let scene = try ObjectsFactory.create(UIWindowScene.self, properties: ["session": session])
return scene
} catch {
fatalError(error.localizedDescription)
}
UIApplication.shared.connectedScenes.first as! UIWindowScene
}
}
#endif
4 changes: 0 additions & 4 deletions project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ packages:
Concurrency:
url: https://github.com/space-code/concurrency.git
from: 0.0.1
ObjectsFactory:
url: https://github.com/space-code/objects-factory.git
from: 1.0.0
targets:
UnitTestHostApp:
type: application
Expand Down Expand Up @@ -47,7 +44,6 @@ targets:
dependencies:
- package: Concurrency
product: TestConcurrency
- package: ObjectsFactory
- target: Flare
settings:
base:
Expand Down

0 comments on commit fccedf9

Please sign in to comment.