Skip to content

Commit

Permalink
Merge branch 'hotfix/1.2.3' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
mouredev committed Dec 6, 2021
2 parents 38000c8 + ce51d0b commit c2f486c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Twitimer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@
"@executable_path/Frameworks",
);
MACH_O_TYPE = mh_execute;
MARKETING_VERSION = 1.2.2;
MARKETING_VERSION = 1.2.3;
PRODUCT_BUNDLE_IDENTIFIER = com.mouredev.Twitimer;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -1142,7 +1142,7 @@
"@executable_path/Frameworks",
);
MACH_O_TYPE = mh_execute;
MARKETING_VERSION = 1.2.2;
MARKETING_VERSION = 1.2.3;
PRODUCT_BUNDLE_IDENTIFIER = com.mouredev.Twitimer;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ final class AccountViewModel: ObservableObject {

func selected(url: URL) {

if url.host?.contains("localhost") ?? false {
if url.host?.contains(Constants.kTwitchRedirectHost) ?? false {

let components = URLComponents(url: url, resolvingAgainstBaseURL: true)
let authCodeItem = components?.queryItems?.first(where: { (item) -> Bool in
Expand Down
3 changes: 2 additions & 1 deletion Twitimer/Util/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ struct Constants {
static let kTwitchAuthUri = "https://id.twitch.tv/oauth2/"
static let kTwitchAPIUri = "https://api.twitch.tv/helix/"
static let kTwitchProfileUri = "https://www.twitch.tv/"
static let kTwitchRedirectUri = "http://localhost"
static let kTwitchRedirectUri = "https://twitimer.com"
static let kTwitchRedirectHost = "twitimer.com"

// Remote
static let kRemoteTwitchClientID = "TwitchClientID"
Expand Down

0 comments on commit c2f486c

Please sign in to comment.