From e071b4d913b9c5b5e5fe621e4856a705ced81bce Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 19 Jun 2022 21:46:30 -0700 Subject: [PATCH] [Crashlytics] Remove AppCheck from debug builds Remove the AppCheck code from the debug builds, as it's not even enabled on the project in Firebase anyway. Signed-off-by: Christopher Snowhill --- Application/AppController.m | 11 +---------- Cog.xcodeproj/project.pbxproj | 8 -------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/Application/AppController.m b/Application/AppController.m index 44e602565..4b25d51d9 100644 --- a/Application/AppController.m +++ b/Application/AppController.m @@ -30,9 +30,6 @@ #import @import Firebase; -#ifdef DEBUG -@import FirebaseAppCheck; -#endif void *kAppControllerContext = &kAppControllerContext; @@ -149,13 +146,7 @@ BOOL kAppControllerShuttingDown = NO; - (void)awakeFromNib { [[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions": @(YES) }]; - -#ifdef DEBUG - FIRAppCheckDebugProviderFactory *providerFactory = - [[FIRAppCheckDebugProviderFactory alloc] init]; - [FIRAppCheck setAppCheckProviderFactory:providerFactory]; -#endif - + [FIRApp configure]; /* Evil startup synchronous crash log submitter, because apparently, there diff --git a/Cog.xcodeproj/project.pbxproj b/Cog.xcodeproj/project.pbxproj index 0064e8446..9bbc98bb3 100644 --- a/Cog.xcodeproj/project.pbxproj +++ b/Cog.xcodeproj/project.pbxproj @@ -147,7 +147,6 @@ 836FB5A718206F2500B3AD2D /* Hively.bundle in CopyFiles */ = {isa = PBXBuildFile; fileRef = 836FB5471820538800B3AD2D /* Hively.bundle */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; 8370D73D277419F700245CE0 /* SQLiteStore.m in Sources */ = {isa = PBXBuildFile; fileRef = 8370D73C277419F700245CE0 /* SQLiteStore.m */; }; 8370D73F2775AE1300245CE0 /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 8370D73E2775AE1300245CE0 /* libsqlite3.tbd */; }; - 83717825285D685800DE781D /* FirebaseAppCheck in Frameworks */ = {isa = PBXBuildFile; productRef = 83717824285D685800DE781D /* FirebaseAppCheck */; }; 8372C93D27C7895300E250C9 /* MAD.bundle in CopyFiles */ = {isa = PBXBuildFile; fileRef = 8372C93027C785BE00E250C9 /* MAD.bundle */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 8377C66327B8CF6300E8BC0F /* SpectrumViewSK.m in Sources */ = {isa = PBXBuildFile; fileRef = 8377C66127B8CF6300E8BC0F /* SpectrumViewSK.m */; }; 8377C6B927B900F000E8BC0F /* SpectrumItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 8377C6B827B900F000E8BC0F /* SpectrumItem.m */; }; @@ -1094,7 +1093,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 83717825285D685800DE781D /* FirebaseAppCheck in Frameworks */, 8370D73F2775AE1300245CE0 /* libsqlite3.tbd in Frameworks */, ED69CBC725BE32C00090B90D /* MASShortcut.framework in Frameworks */, 8355D6B8180613FB00D05687 /* Security.framework in Frameworks */, @@ -2057,7 +2055,6 @@ packageProductDependencies = ( 83978E15285C58190076ED21 /* FirebaseCrashlytics */, 83978E25285C596F0076ED21 /* FirebaseAnalytics */, - 83717824285D685800DE781D /* FirebaseAppCheck */, ); productInstallPath = "$(HOME)/Applications"; productName = Cog; @@ -3173,11 +3170,6 @@ /* End XCRemoteSwiftPackageReference section */ /* Begin XCSwiftPackageProductDependency section */ - 83717824285D685800DE781D /* FirebaseAppCheck */ = { - isa = XCSwiftPackageProductDependency; - package = 83978E14285C58190076ED21 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */; - productName = FirebaseAppCheck; - }; 83978E15285C58190076ED21 /* FirebaseCrashlytics */ = { isa = XCSwiftPackageProductDependency; package = 83978E14285C58190076ED21 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;