Skip to content

Commit

Permalink
added build number when starting up
Browse files Browse the repository at this point in the history
  • Loading branch information
twocanoes committed Jul 22, 2022
1 parent de5dd6a commit 2d4b70a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
7 changes: 7 additions & 0 deletions XCreds/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(_ aNotification: Notification) {


let infoPlist = Bundle.main.infoDictionary

if let infoPlist = infoPlist, let build = infoPlist["CFBundleVersion"] {
TCSLogWithMark("Build \(build)")

}

// ManagedPreferences.shared.preference(forKey: .clientID)
mainController = MainController.init()
mainController?.run()
Expand Down
2 changes: 1 addition & 1 deletion XCreds/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func TCSLogWithMark(_ message: String = "",

let comp = file.components(separatedBy: "/")
if let lastPart = comp.last{
TCSLog("\(date) FILE:\(lastPart) LINE:\(line) FUNCTION:\(function) message:\(message)")
TCSLog("\(date) FILE:\(lastPart) LINE:\(line) FUNCTION:\(function) \(message)")

}

Expand Down
2 changes: 1 addition & 1 deletion XCredsLoginPlugIn/LoginWindow/LoginWebViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class LoginWebViewController: WebViewController {

}
catch {
TCSLogWithMark("error decoding idtoken:")
TCSLogWithMark("error decoding idtoken::")
TCSLogWithMark("Token:\(body)")
delegate.denyLogin()
return
Expand Down
12 changes: 6 additions & 6 deletions xCreds.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3009;
CURRENT_PROJECT_VERSION = 3010;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = UXP6YEHSPW;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -886,7 +886,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3009;
CURRENT_PROJECT_VERSION = 3010;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = UXP6YEHSPW;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -944,7 +944,7 @@
CODE_SIGN_ENTITLEMENTS = "XCreds Login Overlay/XCreds_Login_Overlay.entitlements";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3009;
CURRENT_PROJECT_VERSION = 3010;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -974,7 +974,7 @@
CODE_SIGN_ENTITLEMENTS = "XCreds Login Overlay/XCreds_Login_Overlay.entitlements";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3009;
CURRENT_PROJECT_VERSION = 3010;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -1117,7 +1117,7 @@
CODE_SIGN_ENTITLEMENTS = XCreds/xCreds.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3009;
CURRENT_PROJECT_VERSION = 3010;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -1146,7 +1146,7 @@
CODE_SIGN_ENTITLEMENTS = XCreds/xCreds.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3009;
CURRENT_PROJECT_VERSION = 3010;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down
Binary file not shown.

0 comments on commit 2d4b70a

Please sign in to comment.