-
-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #1605 add crash logger and fix minor build settings
Signed-off-by: Joseph Mattello <[email protected]>
- Loading branch information
Showing
10 changed files
with
128 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// | ||
// PVAppDelegate+AppCenter.swift | ||
// Provenance | ||
// | ||
// Created by Joseph Mattiello on 10/2/21. | ||
// Copyright © 2021 Provenance Emu. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
#if canImport(AppCenter) | ||
import AppCenter | ||
import AppCenterAnalytics | ||
import AppCenterCrashes | ||
import PVSupport | ||
|
||
extension PVAppDelegate { | ||
public func _initAppCenter() { | ||
guard let secretKey = Bundle.main.object(forInfoDictionaryKey: "appcenter") as? String else { | ||
ELOG("No value for Info.plist key 'appcenter'") | ||
return | ||
} | ||
AppCenter.configure(withAppSecret: secretKey) | ||
if AppCenter.isConfigured { | ||
AppCenter.startService(Analytics.self) | ||
AppCenter.startService(Crashes.self) | ||
ILOG("AppCenter initilized.") | ||
} else { | ||
ELOG("AppCenter not configured.") | ||
} | ||
} | ||
} | ||
#else | ||
extension PVAppDelegate { | ||
public func _initAppCenter() { | ||
DLOG("App center not supported on this platform") | ||
} | ||
} | ||
|
||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.