Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1605] Add Crash Logger #1606

Merged
merged 2 commits into from
Oct 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Cores/ProSystem/PVProSystem.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 11.0;
TVOS_DEPLOYMENT_TARGET = 12.1;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand Down Expand Up @@ -1014,7 +1014,7 @@
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 11.0;
TVOS_DEPLOYMENT_TARGET = 12.1;
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand Down Expand Up @@ -1061,7 +1061,7 @@
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 11.0;
TVOS_DEPLOYMENT_TARGET = 12.1;
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand Down Expand Up @@ -1194,6 +1194,7 @@
SDKROOT = appletvos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 12.1;
};
name = Debug;
};
Expand Down Expand Up @@ -1224,6 +1225,7 @@
SDKROOT = appletvos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 12.1;
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand Down Expand Up @@ -1255,6 +1257,7 @@
SDKROOT = appletvos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 12.1;
VALIDATE_PRODUCT = YES;
};
name = Archive;
Expand Down
57 changes: 51 additions & 6 deletions Provenance.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@
B354E7C7219A7D9D0041F971 /* SystemOverviewViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = B354E7C5219A7D9D0041F971 /* SystemOverviewViewModel.swift */; };
B354E7D2219A9C230041F971 /* CoreOptionsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B354E7D1219A9C230041F971 /* CoreOptionsViewController.swift */; };
B354E7D3219A9C230041F971 /* CoreOptionsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B354E7D1219A9C230041F971 /* CoreOptionsViewController.swift */; };
B357A43827092254002C7C0F /* AppCenterAnalytics in Frameworks */ = {isa = PBXBuildFile; productRef = B357A43727092254002C7C0F /* AppCenterAnalytics */; };
B357A43A27092254002C7C0F /* AppCenterCrashes in Frameworks */ = {isa = PBXBuildFile; productRef = B357A43927092254002C7C0F /* AppCenterCrashes */; };
B357A43C2709228E002C7C0F /* PVAppDelegate+AppCenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = B357A43B2709228E002C7C0F /* PVAppDelegate+AppCenter.swift */; };
B3589E32219E8C5B001C5E12 /* LogViewable.swift in Sources */ = {isa = PBXBuildFile; fileRef = B383F3BE219BBD8700DB6926 /* LogViewable.swift */; };
B3592CE52070B9DE00533593 /* PVSaveStateCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = B3592CE42070B9DE00533593 /* PVSaveStateCollectionViewCell.xib */; };
B35D26FA20337D1C00F17D58 /* GameLaunchingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B35D26F920337D1C00F17D58 /* GameLaunchingViewController.swift */; };
Expand Down Expand Up @@ -248,7 +251,6 @@
B36D9DF8203562E000D583C4 /* PVControllerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B36D9DF7203562E000D583C4 /* PVControllerViewController.swift */; };
B36D9DFD203605BC00D583C4 /* PVCoreFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = B36D9DFC203605BB00D583C4 /* PVCoreFactory.swift */; };
B37263A126EA04E700E95488 /* ProSystem.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B37263A026EA04E700E95488 /* ProSystem.framework */; };
B37263A226EA04E700E95488 /* ProSystem.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = B37263A026EA04E700E95488 /* ProSystem.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
B37263A926EA159400E95488 /* PVMupen64Plus.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B37263A426EA159400E95488 /* PVMupen64Plus.framework */; };
B37263AA26EA159400E95488 /* PVMupen64Plus.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = B37263A426EA159400E95488 /* PVMupen64Plus.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
B37263AB26EA159400E95488 /* PVMupen64PlusRspHLE.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B37263A526EA159400E95488 /* PVMupen64PlusRspHLE.framework */; };
Expand Down Expand Up @@ -481,6 +483,9 @@
B3F64ED9205CD22000C273C7 /* PVControllerSelectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B3F64ED7205CD21F00C273C7 /* PVControllerSelectionViewController.swift */; };
B3F7BE79204A289B000D0B4D /* PVConflictViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B3F7BE78204A289B000D0B4D /* PVConflictViewController.swift */; };
B3F7BE7A204A289B000D0B4D /* PVConflictViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B3F7BE78204A289B000D0B4D /* PVConflictViewController.swift */; };
B3F94A4C27093794002A71EF /* PVAppDelegate+AppCenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = B357A43B2709228E002C7C0F /* PVAppDelegate+AppCenter.swift */; };
B3F94A4E27093ABC002A71EF /* AppCenterAnalytics in Frameworks */ = {isa = PBXBuildFile; productRef = B3F94A4D27093ABC002A71EF /* AppCenterAnalytics */; };
B3F94A5027093ABC002A71EF /* AppCenterCrashes in Frameworks */ = {isa = PBXBuildFile; productRef = B3F94A4F27093ABC002A71EF /* AppCenterCrashes */; };
BE9FDCBD1C210B9F0046DF0E /* ServiceProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE9FDCBC1C210B9F0046DF0E /* ServiceProvider.swift */; };
BE9FDCC91C210C470046DF0E /* PVRecentGame+TopShelf.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE9FDCC81C210C470046DF0E /* PVRecentGame+TopShelf.swift */; };
C13CC82923CABE2800463EDD /* Photos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C13CC82823CABE2800463EDD /* Photos.framework */; };
Expand Down Expand Up @@ -573,6 +578,8 @@
dstPath = "";
dstSubfolderSpec = 10;
files = (
B3AF701D21916E38000FA7F9 /* PVSupport.framework in Embed Frameworks */,
B324C650219216DD009F4EDC /* PVLibrary.framework in Embed Frameworks */,
B3CB85C31E9BFB16009155A6 /* PVPokeMini.framework in Embed Frameworks */,
B37263AE26EA159400E95488 /* PVMupen64PlusVideoGlideN64.framework in Embed Frameworks */,
B316B4D32192652000693472 /* PVReicast.framework in Embed Frameworks */,
Expand All @@ -586,15 +593,12 @@
B324C31F219197D7009F4EDC /* PicoDrive.framework in Embed Frameworks */,
B316B4DD219265B700693472 /* PVVirtualJaguar.framework in Embed Frameworks */,
B3C9D5E51DEA8AED0068D057 /* PVStella.framework in Embed Frameworks */,
B324C650219216DD009F4EDC /* PVLibrary.framework in Embed Frameworks */,
B3C9D5611DEA85D10068D057 /* PVSNES.framework in Embed Frameworks */,
B37263B226EA159500E95488 /* PVRSPCXD4.framework in Embed Frameworks */,
B324C61221920037009F4EDC /* ProSystem.framework in Embed Frameworks */,
B324C60C2191FFBB009F4EDC /* PVGBA.framework in Embed Frameworks */,
B37263AA26EA159400E95488 /* PVMupen64Plus.framework in Embed Frameworks */,
B324C6092191FF9A009F4EDC /* PVAtari800.framework in Embed Frameworks */,
B37263A226EA04E700E95488 /* ProSystem.framework in Embed Frameworks */,
B3AF701D21916E38000FA7F9 /* PVSupport.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -790,6 +794,7 @@
B354E7C5219A7D9D0041F971 /* SystemOverviewViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SystemOverviewViewModel.swift; sourceTree = "<group>"; };
B354E7D1219A9C230041F971 /* CoreOptionsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoreOptionsViewController.swift; sourceTree = "<group>"; };
B3579D0221069B4E00DDEBD6 /* Spotlight.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Spotlight.entitlements; sourceTree = "<group>"; };
B357A43B2709228E002C7C0F /* PVAppDelegate+AppCenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "PVAppDelegate+AppCenter.swift"; sourceTree = "<group>"; };
B3592CE42070B9DE00533593 /* PVSaveStateCollectionViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PVSaveStateCollectionViewCell.xib; sourceTree = "<group>"; };
B35B31CA206CA04A00AEAF88 /* Version.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Version.h; sourceTree = "<group>"; };
B35D26F920337D1C00F17D58 /* GameLaunchingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameLaunchingViewController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -981,6 +986,7 @@
buildActionMask = 2147483647;
files = (
B316B4E421926D7400693472 /* PVReicast.framework in Frameworks */,
B357A43A27092254002C7C0F /* AppCenterCrashes in Frameworks */,
55546DF1257D6CA800616332 /* PVTGBDual.framework in Frameworks */,
B316B4D9219265AB00693472 /* PVVirtualJaguar.framework in Frameworks */,
C13CC82923CABE2800463EDD /* Photos.framework in Frameworks */,
Expand All @@ -1000,6 +1006,7 @@
B3F31D2326B4A4CD003A5E09 /* AltKit in Frameworks */,
B354693C1DECDA710018B6F3 /* PVAtari800.framework in Frameworks */,
1AD4BC6F1BFD38D6007D6C7C /* AVFoundation.framework in Frameworks */,
B357A43827092254002C7C0F /* AppCenterAnalytics in Frameworks */,
B3CB85BF1E9BFB07009155A6 /* PVPokeMini.framework in Frameworks */,
1A4869DD17C8D60C0019F6D2 /* CFNetwork.framework in Frameworks */,
B3D30FBF26F0B4CD0064603F /* SteamController in Frameworks */,
Expand Down Expand Up @@ -1038,6 +1045,10 @@
B324C312219195CE009F4EDC /* CFNetwork.framework in Frameworks */,
B324C30C219195BB009F4EDC /* SystemConfiguration.framework in Frameworks */,
B324C30A219195AE009F4EDC /* AudioToolbox.framework in Frameworks */,
B324C64F219216DD009F4EDC /* PVLibrary.framework in Frameworks */,
B3AF701C21916E38000FA7F9 /* PVSupport.framework in Frameworks */,
B3F94A5027093ABC002A71EF /* AppCenterCrashes in Frameworks */,
B3F94A4E27093ABC002A71EF /* AppCenterAnalytics in Frameworks */,
B324C308219195A8009F4EDC /* GLKit.framework in Frameworks */,
B324C306219195A0009F4EDC /* OpenGLES.framework in Frameworks */,
B324C30321919596009F4EDC /* UIKit.framework in Frameworks */,
Expand All @@ -1055,14 +1066,12 @@
14C4C1A121EBB0040055C6DC /* PVTGBDual.framework in Frameworks */,
B3995E4F2058229F001D4985 /* PVFCEU.framework in Frameworks */,
B3CB85C21E9BFB16009155A6 /* PVPokeMini.framework in Frameworks */,
B3AF701C21916E38000FA7F9 /* PVSupport.framework in Frameworks */,
B316B4DC219265B700693472 /* PVVirtualJaguar.framework in Frameworks */,
B324C31E219197D7009F4EDC /* PicoDrive.framework in Frameworks */,
1180B31C2492A96700636C8A /* CoreServices.framework in Frameworks */,
B3DDF57526E9BE8D00CE47F0 /* AltKit in Frameworks */,
B324C60B2191FFBB009F4EDC /* PVGBA.framework in Frameworks */,
B37263AD26EA159400E95488 /* PVMupen64PlusVideoGlideN64.framework in Frameworks */,
B324C64F219216DD009F4EDC /* PVLibrary.framework in Frameworks */,
B3C9D5E11DEA8A290068D057 /* PVGenesis.framework in Frameworks */,
B3C9D5601DEA85D10068D057 /* PVSNES.framework in Frameworks */,
B3C9D5E41DEA8AED0068D057 /* PVStella.framework in Frameworks */,
Expand Down Expand Up @@ -1204,6 +1213,7 @@
isa = PBXGroup;
children = (
1A3D40A717B2DCE4004DFFFC /* PVAppDelegate.swift */,
B357A43B2709228E002C7C0F /* PVAppDelegate+AppCenter.swift */,
1AADCDB117BD997500F53CFE /* Categories */,
1A47C94A17BC310700C27644 /* Controller */,
1A1237F417CA27B700CEC788 /* Emulator */,
Expand Down Expand Up @@ -1850,6 +1860,8 @@
B336B91826B3A21800960A81 /* QuickTableViewController */,
B3F31D2226B4A4CD003A5E09 /* AltKit */,
B3D30FBE26F0B4CD0064603F /* SteamController */,
B357A43727092254002C7C0F /* AppCenterAnalytics */,
B357A43927092254002C7C0F /* AppCenterCrashes */,
);
productName = Provenance;
productReference = 1A3D409417B2DCE4004DFFFC /* Provenance.app */;
Expand All @@ -1876,6 +1888,8 @@
B336B91A26B3A26400960A81 /* QuickTableViewController */,
B3DDF57426E9BE8D00CE47F0 /* AltKit */,
B3D30FC026F0BCE60064603F /* SteamController */,
B3F94A4D27093ABC002A71EF /* AppCenterAnalytics */,
B3F94A4F27093ABC002A71EF /* AppCenterCrashes */,
);
productName = ProvenanceTV;
productReference = 1AD481B41BA350A400FDA50A /* Provenance.app */;
Expand Down Expand Up @@ -2037,6 +2051,7 @@
B336B91726B3A21800960A81 /* XCRemoteSwiftPackageReference "QuickTableViewController" */,
B3F31D2126B4A4CD003A5E09 /* XCRemoteSwiftPackageReference "AltKit" */,
B3D30FBD26F0B4CD0064603F /* XCRemoteSwiftPackageReference "SteamController" */,
B357A43627092253002C7C0F /* XCRemoteSwiftPackageReference "appcenter-sdk-apple" */,
);
productRefGroup = 1A3D409517B2DCE4004DFFFC /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -2287,6 +2302,7 @@
B3AB373C2187F569009D9244 /* PVLynxControllerViewController.swift in Sources */,
B31117B3218EB3AE00C495A2 /* PVButtonGroupOverlayView.swift in Sources */,
B3DFEDD32686D653005C6CF2 /* Array+Extensions.swift in Sources */,
B357A43C2709228E002C7C0F /* PVAppDelegate+AppCenter.swift in Sources */,
B3AB37402187F569009D9244 /* PVSaturnControllerViewController.swift in Sources */,
B3D5E2B2218EC1AE0015C690 /* RxTableViewRealmDataSource.swift in Sources */,
B3DFEDFD2686D654005C6CF2 /* Diff.swift in Sources */,
Expand Down Expand Up @@ -2461,6 +2477,7 @@
B31117B0218EB3A900C495A2 /* PVEmulatorViewController.swift in Sources */,
1AD481E51BA3546600FDA50A /* PVGLViewController.m in Sources */,
B369B0DD21A3BF7C0064EDCA /* PVSettingsViewController.swift in Sources */,
B3F94A4C27093794002A71EF /* PVAppDelegate+AppCenter.swift in Sources */,
11A8A9E72496A3E500C1C6B4 /* PVGameLibraryUpdatesController.swift in Sources */,
B354E7C3219A7D630041F971 /* SystemSettingsHeaderCell.swift in Sources */,
B3B104D0218F2EF400210C39 /* PVPSXControllerViewController.swift in Sources */,
Expand Down Expand Up @@ -3717,6 +3734,14 @@
minimumVersion = 1.3.0;
};
};
B357A43627092253002C7C0F /* XCRemoteSwiftPackageReference "appcenter-sdk-apple" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/microsoft/appcenter-sdk-apple.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 4.0.0;
};
};
B3D30FBD26F0B4CD0064603F /* XCRemoteSwiftPackageReference "SteamController" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/Provenance-Emu/SteamController.git";
Expand Down Expand Up @@ -3746,6 +3771,16 @@
package = B336B91726B3A21800960A81 /* XCRemoteSwiftPackageReference "QuickTableViewController" */;
productName = QuickTableViewController;
};
B357A43727092254002C7C0F /* AppCenterAnalytics */ = {
isa = XCSwiftPackageProductDependency;
package = B357A43627092253002C7C0F /* XCRemoteSwiftPackageReference "appcenter-sdk-apple" */;
productName = AppCenterAnalytics;
};
B357A43927092254002C7C0F /* AppCenterCrashes */ = {
isa = XCSwiftPackageProductDependency;
package = B357A43627092253002C7C0F /* XCRemoteSwiftPackageReference "appcenter-sdk-apple" */;
productName = AppCenterCrashes;
};
B3D30FBE26F0B4CD0064603F /* SteamController */ = {
isa = XCSwiftPackageProductDependency;
package = B3D30FBD26F0B4CD0064603F /* XCRemoteSwiftPackageReference "SteamController" */;
Expand All @@ -3766,6 +3801,16 @@
package = B3F31D2126B4A4CD003A5E09 /* XCRemoteSwiftPackageReference "AltKit" */;
productName = AltKit;
};
B3F94A4D27093ABC002A71EF /* AppCenterAnalytics */ = {
isa = XCSwiftPackageProductDependency;
package = B357A43627092253002C7C0F /* XCRemoteSwiftPackageReference "appcenter-sdk-apple" */;
productName = AppCenterAnalytics;
};
B3F94A4F27093ABC002A71EF /* AppCenterCrashes */ = {
isa = XCSwiftPackageProductDependency;
package = B357A43627092253002C7C0F /* XCRemoteSwiftPackageReference "appcenter-sdk-apple" */;
productName = AppCenterCrashes;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 1A3D408C17B2DCE4004DFFFC /* Project object */;
Expand Down
24 changes: 21 additions & 3 deletions Provenance.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
"version": "0.0.1"
}
},
{
"package": "AppCenter",
"repositoryURL": "https://github.com/microsoft/appcenter-sdk-apple.git",
"state": {
"branch": null,
"revision": "25f64229373de97ff3920941cd52203193e5d8be",
"version": "4.3.0"
}
},
{
"package": "CocoaLumberjack",
"repositoryURL": "https://github.com/CocoaLumberjack/CocoaLumberjack.git",
Expand All @@ -19,6 +28,15 @@
"version": "3.7.2"
}
},
{
"package": "PLCrashReporter",
"repositoryURL": "https://github.com/microsoft/PLCrashReporter.git",
"state": {
"branch": null,
"revision": "59513acde6194d93617afcf7b2c81c88638a6af2",
"version": "1.10.0"
}
},
{
"package": "QuickTableViewController",
"repositoryURL": "https://github.com/bcylin/QuickTableViewController.git",
Expand All @@ -29,7 +47,7 @@
}
},
{
"package": "Reachability.swift",
"package": "Reachability",
"repositoryURL": "https://github.com/ashleymills/Reachability.swift.git",
"state": {
"branch": null,
Expand All @@ -38,7 +56,7 @@
}
},
{
"package": "realm-cocoa",
"package": "Realm",
"repositoryURL": "https://github.com/realm/realm-cocoa.git",
"state": {
"branch": null,
Expand All @@ -47,7 +65,7 @@
}
},
{
"package": "realm-core",
"package": "RealmDatabase",
"repositoryURL": "https://github.com/realm/realm-core",
"state": {
"branch": null,
Expand Down
41 changes: 41 additions & 0 deletions Provenance/PVAppDelegate+AppCenter.swift
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

1 change: 1 addition & 0 deletions Provenance/PVAppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ final class PVAppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
application.isIdleTimerDisabled = PVSettingsModel.shared.disableAutoLock
_initLogging()
_initAppCenter()
setDefaultsFromSettingsBundle()

DispatchQueue.global(qos: .background).async {
Expand Down
2 changes: 2 additions & 0 deletions Provenance/Provenance-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>appcenter</key>
<string>862ca352-4607-4f8e-8c77-1248fa68ca3a</string>
<key>ALTDeviceID</key>
<string></string>
<key>CFBundleDevelopmentRegion</key>
Expand Down
2 changes: 2 additions & 0 deletions ProvenanceTV/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<dict>
<key>ALTDeviceID</key>
<string></string>
<key>appcenter</key>
<string>7d623115-99d6-439e-8e3a-9f2d0b1fbc02</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
Expand Down