Skip to content

Commit

Permalink
Update Package.swift dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mioke committed Jan 19, 2024
1 parent 2f2f7df commit c349d1e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
23 changes: 21 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,39 @@ import PackageDescription

let package = Package(
name: "SwiftyAppArch",
platforms: [.iOS(.v13)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "SwiftyAppArch",
targets: ["SwiftyAppArch"]),
],
dependencies: [
.package(url: "https://github.com/realm/realm-swift.git", from: "10.45.2"),
.package(url: "https://github.com/Alamofire/Alamofire.git", from: "5.8.0"),
.package(url: "https://github.com/tristanhimmelman/ObjectMapper.git", from: "4.2.0"),
.package(url: "https://github.com/ReactiveX/RxSwift.git", from: "6.6.0"),
// .package(url: "https://github.com/Swinject/Swinject.git", from: "2.8.4"),
.package(url: "https://github.com/Mioke/RxRealm.git", branch: "main"),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "SwiftyAppArch",
path: "SwiftyArchitecture/Base"),
dependencies: [
.product(name: "RealmSwift", package: "realm-swift"),
.product(name: "Alamofire", package: "Alamofire"),
.product(name: "ObjectMapper", package: "ObjectMapper"),
.product(name: "RxSwift", package: "RxSwift"),
.product(name: "RxCocoa", package: "RxSwift"),
.product(name: "RxRealm", package: "RxRealm"),
],
path: "./SwiftyArchitecture/Base",
exclude: ["Persistance", "Tests"]),
// .testTarget(
// name: "SwiftyAppArchTests",
// dependencies: ["SwiftyAppArch"]),
]
],
swiftLanguageVersions: [.v5]
)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import Foundation

import UIKit

extension URL {
var getHost: String? {
Expand Down Expand Up @@ -77,7 +77,8 @@ class NavigationUtils {
}

static func applicationWindow() -> UIWindow? {
if let windowScene = UIApplication.shared.connectedScenes.first(where: { $0 as? UIWindowScene != nil }) as? UIWindowScene,
if #available(iOS 15.0, *),
let windowScene = UIApplication.shared.connectedScenes.first(where: { $0 as? UIWindowScene != nil }) as? UIWindowScene,
let key = windowScene.keyWindow {
return key
}
Expand Down

0 comments on commit c349d1e

Please sign in to comment.