Skip to content

Commit

Permalink
refactor: move source file
Browse files Browse the repository at this point in the history
  • Loading branch information
nuomi1 committed Mar 28, 2022
1 parent c2a895e commit c64990f
Show file tree
Hide file tree
Showing 18 changed files with 11 additions and 18 deletions.
Empty file removed NBus/Assets/.gitkeep
Empty file.
19 changes: 5 additions & 14 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,23 @@ let package = Package(
],
targets: [
.target(
name: "NBusCore",
path: "NBus/Classes/Core"
name: "NBusCore"
),
.target(
name: "NBusQQHandler",
dependencies: ["NBusCore"],
path: "NBus/Classes/Handler",
sources: ["QQHandler.swift"]
dependencies: ["NBusCore"]
),
.target(
name: "NBusWechatHandler",
dependencies: ["NBusCore"],
path: "NBus/Classes/Handler",
sources: ["WechatHandler.swift"]
dependencies: ["NBusCore"]
),
.target(
name: "NBusWeiboHandler",
dependencies: ["NBusCore"],
path: "NBus/Classes/Handler",
sources: ["WeiboHandler.swift"]
dependencies: ["NBusCore"]
),
.target(
name: "NBusSystemHandler",
dependencies: ["NBusCore"],
path: "NBus/Classes/Handler",
sources: ["SystemHandler.swift"]
dependencies: ["NBusCore"]
),
.testTarget(
name: "NBusTests",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions NBus/Classes/Core/Bus.swift → Sources/NBusCore/Bus.swift
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ extension Bus {
guard
let handler = handlers.first(where: { $0.canOpenURL(url) })
else {
assertionFailure()
return false
}

Expand All @@ -184,6 +185,7 @@ extension Bus {
guard
let handler = handlers.first(where: { $0.canOpenUserActivity(userActivity) })
else {
assertionFailure()
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation
import UIKit

#if canImport(NBusCore)
#if SWIFT_PACKAGE
import NBusCore
#endif

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import AuthenticationServices
import Foundation
import UIKit

#if canImport(NBusCore)
#if SWIFT_PACKAGE
import NBusCore
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation
import UIKit

#if canImport(NBusCore)
#if SWIFT_PACKAGE
import NBusCore
#endif

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation
import UIKit

#if canImport(NBusCore)
#if SWIFT_PACKAGE
import NBusCore
#endif

Expand Down
File renamed without changes.

0 comments on commit c64990f

Please sign in to comment.