Skip to content

Commit

Permalink
Add router
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed May 17, 2024
1 parent bad3524 commit 394e34a
Show file tree
Hide file tree
Showing 15 changed files with 150 additions and 319 deletions.
11 changes: 10 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ let productionDependencies: [PackageDescription.Package.Dependency] = [
.package(url: "https://github.com/oversizedev/OversizeResources.git", .upToNextMajor(from: "2.0.0")),
.package(url: "https://github.com/oversizedev/OversizeNetwork.git", .upToNextMajor(from: "0.4.0")),
.package(url: "https://github.com/oversizedev/OversizeModels.git", .upToNextMajor(from: "0.1.0")),
.package(url: "https://github.com/oversizedev/OversizeRouter.git", .upToNextMajor(from: "0.1.0")),
.package(url: "https://github.com/hmlongco/Factory.git", .upToNextMajor(from: "2.1.3")),
.package(url: "https://github.com/lorenzofiamingo/swiftui-cached-async-image.git", .upToNextMajor(from: "2.1.1")),
]
Expand All @@ -26,11 +27,18 @@ let developmentDependencies: [PackageDescription.Package.Dependency] = [
.package(name: "OversizeResources", path: "../OversizeResources"),
.package(name: "OversizeNetwork", path: "../OversizeNetwork"),
.package(name: "OversizeModels", path: "../OversizeModels"),
.package(name: "OversizeRouter", path: "../OversizeRouter"),
.package(url: "https://github.com/lorenzofiamingo/swiftui-cached-async-image.git", .upToNextMajor(from: "2.1.1")),
.package(url: "https://github.com/hmlongco/Factory.git", .upToNextMajor(from: "2.1.3")),
]

let isProductionDependencies = ProcessInfo.processInfo.environment["RELEASE_DEPENDENCIES"] == "TRUE"
var dependencies: [PackageDescription.Package.Dependency] = []

if ProcessInfo.processInfo.environment["RELEASE_DEPENDENCIES"].flatMap(Bool.init) ?? false {
dependencies = productionDependencies
} else {
dependencies = developmentDependencies
}

let package = Package(
name: "OversizeKit",
Expand Down Expand Up @@ -65,6 +73,7 @@ let package = Package(
.product(name: "OversizeNotificationService", package: "OversizeServices"),
.product(name: "OversizeModels", package: "OversizeModels"),
.product(name: "OversizeNetwork", package: "OversizeNetwork"),
.product(name: "OversizeRouter", package: "OversizeRouter"),
.product(name: "Factory", package: "Factory"),
.product(name: "CachedAsyncImage", package: "swiftui-cached-async-image"),
]
Expand Down
23 changes: 0 additions & 23 deletions Sources/OversizeKit/RouterKit/AlertRouter.swift

This file was deleted.

23 changes: 0 additions & 23 deletions Sources/OversizeKit/RouterKit/HUDRouter.swift

This file was deleted.

23 changes: 0 additions & 23 deletions Sources/OversizeKit/RouterKit/MenuRouter.swift

This file was deleted.

42 changes: 0 additions & 42 deletions Sources/OversizeKit/RouterKit/PresentationRouter.swift

This file was deleted.

22 changes: 0 additions & 22 deletions Sources/OversizeKit/RouterKit/Protocols/Alertable.swift

This file was deleted.

12 changes: 0 additions & 12 deletions Sources/OversizeKit/RouterKit/Protocols/Menuble.swift

This file was deleted.

22 changes: 0 additions & 22 deletions Sources/OversizeKit/RouterKit/Protocols/Routable.swift

This file was deleted.

14 changes: 0 additions & 14 deletions Sources/OversizeKit/RouterKit/Protocols/Tabable.swift

This file was deleted.

118 changes: 0 additions & 118 deletions Sources/OversizeKit/RouterKit/Router.swift

This file was deleted.

Loading

0 comments on commit 394e34a

Please sign in to comment.