Skip to content

Commit

Permalink
Merge branch 'release/0.9.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
nuomi1 committed Jan 27, 2021
2 parents 0f0f209 + 7774145 commit 9c1d7aa
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion NBus.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "NBus"
s.version = "0.9.0"
s.version = "0.9.1"
s.summary = "A short description of NBus."

s.homepage = "https://github.com/nuomi1/NBus"
Expand Down
19 changes: 19 additions & 0 deletions NBus/Classes/Handler/WeiboHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,25 @@ extension WeiboHandler {
}
}

extension WeiboHandler: OpenURLHandlerType {

public func openURL(_ url: URL) {
guard
let components = URLComponents(url: url, resolvingAgainstBaseURL: false)
else {
assertionFailure()
return
}

switch components.host {
case "response" where components.path == "":
handleGeneral()
default:
assertionFailure()
}
}
}

extension WeiboHandler: OpenUserActivityHandlerType {

public func openUserActivity(_ userActivity: NSUserActivity) {
Expand Down

0 comments on commit 9c1d7aa

Please sign in to comment.