From 1fac7ff50bde166d84c6096ef15408b3a5e8c663 Mon Sep 17 00:00:00 2001 From: Laurent Date: Fri, 17 Mar 2023 14:58:16 +0100 Subject: [PATCH] crashlytics integration --- LeCountdown.xcodeproj/project.pbxproj | 39 ++++++ .../xcshareddata/swiftpm/Package.resolved | 113 ++++++++++++++++++ LeCountdown/AppDelegate.swift | 3 + LeCountdown/GoogleService-Info.plist | 34 ++++++ LeCountdown/Views/ContentView.swift | 1 - 5 files changed, 189 insertions(+), 1 deletion(-) create mode 100644 LeCountdown.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved create mode 100644 LeCountdown/GoogleService-Info.plist diff --git a/LeCountdown.xcodeproj/project.pbxproj b/LeCountdown.xcodeproj/project.pbxproj index 14e8762..fa59767 100644 --- a/LeCountdown.xcodeproj/project.pbxproj +++ b/LeCountdown.xcodeproj/project.pbxproj @@ -106,6 +106,12 @@ C498E5A3298D720600E90DE0 /* TestView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C498E5A2298D720600E90DE0 /* TestView.swift */; }; C498E5A5299152B400E90DE0 /* GreenCheckmarkView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C498E5A4299152B400E90DE0 /* GreenCheckmarkView.swift */; }; C498E5A6299152C600E90DE0 /* GreenCheckmarkView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C498E5A4299152B400E90DE0 /* GreenCheckmarkView.swift */; }; + C4A16D8C29C4A5BA00143D5E /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = C4A16D8B29C4A5BA00143D5E /* GoogleService-Info.plist */; }; + C4A16D8D29C4A5BA00143D5E /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = C4A16D8B29C4A5BA00143D5E /* GoogleService-Info.plist */; }; + C4A16D8E29C4A5BA00143D5E /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = C4A16D8B29C4A5BA00143D5E /* GoogleService-Info.plist */; }; + C4A16D8F29C4A5BA00143D5E /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = C4A16D8B29C4A5BA00143D5E /* GoogleService-Info.plist */; }; + C4A16D9029C4A5BA00143D5E /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = C4A16D8B29C4A5BA00143D5E /* GoogleService-Info.plist */; }; + C4A16D9329C4A6DD00143D5E /* FirebaseCrashlytics in Frameworks */ = {isa = PBXBuildFile; productRef = C4A16D9229C4A6DD00143D5E /* FirebaseCrashlytics */; }; C4BA2AD62993F62700CB4FBA /* SoundSelectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4BA2AD52993F62700CB4FBA /* SoundSelectionView.swift */; }; C4BA2ADB299549BC00CB4FBA /* TimerModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4BA2ADA299549BC00CB4FBA /* TimerModel.swift */; }; C4BA2ADE2995ABA800CB4FBA /* MatriarchFxs_Loop2_Collider.wav in Resources */ = {isa = PBXBuildFile; fileRef = C4BA2ADD2995ABA800CB4FBA /* MatriarchFxs_Loop2_Collider.wav */; }; @@ -360,6 +366,7 @@ C498E5A0298D543900E90DE0 /* LiveTimer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LiveTimer.swift; sourceTree = ""; }; C498E5A2298D720600E90DE0 /* TestView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestView.swift; sourceTree = ""; }; C498E5A4299152B400E90DE0 /* GreenCheckmarkView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GreenCheckmarkView.swift; sourceTree = ""; }; + C4A16D8B29C4A5BA00143D5E /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; C4BA2AD52993F62700CB4FBA /* SoundSelectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SoundSelectionView.swift; sourceTree = ""; }; C4BA2AD72993F7D200CB4FBA /* LeCountdown.0.5.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = LeCountdown.0.5.xcdatamodel; sourceTree = ""; }; C4BA2ADA299549BC00CB4FBA /* TimerModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimerModel.swift; sourceTree = ""; }; @@ -451,6 +458,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + C4A16D9329C4A6DD00143D5E /* FirebaseCrashlytics in Frameworks */, C4636D9D29AF46D900994E31 /* WidgetKit.framework in Frameworks */, C4636D9C29AF46BD00994E31 /* ActivityKit.framework in Frameworks */, ); @@ -538,6 +546,7 @@ C415D3CA29BF6D360037B215 /* InfoPlist.strings */, C4E5D66F29B753D7008E7465 /* AppShortcuts.strings */, C4060DCD297AE73D003FAB80 /* Info.plist */, + C4A16D8B29C4A5BA00143D5E /* GoogleService-Info.plist */, C4060DC5297AE73D003FAB80 /* Preview Content */, ); path = LeCountdown; @@ -875,6 +884,9 @@ C438C7F829812BB200BF3EF9 /* PBXTargetDependency */, ); name = LeCountdown; + packageProductDependencies = ( + C4A16D9229C4A6DD00143D5E /* FirebaseCrashlytics */, + ); productName = LeCountdown; productReference = C4060DBC297AE73B003FAB80 /* LeCountdown.app */; productType = "com.apple.product-type.application"; @@ -988,6 +1000,9 @@ Base, ); mainGroup = C4060DB3297AE73B003FAB80; + packageReferences = ( + C4A16D9129C4A6DD00143D5E /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */, + ); productRefGroup = C4060DBD297AE73B003FAB80 /* Products */; projectDirPath = ""; projectRoot = ""; @@ -1014,6 +1029,7 @@ C415D3F729C378D10037B215 /* QP01 0037 Tropical forest morning.wav in Resources */, C415D3D529C0B1AB0037B215 /* EX_ATSM_160_Metal_Tonal_Percussion_Sansula_Loop_Call_Am.wav in Resources */, C4BA2AEA2995AD1C00CB4FBA /* SEM_Synths_Loop4_Nothing_Like_You.wav in Resources */, + C4A16D8C29C4A5BA00143D5E /* GoogleService-Info.plist in Resources */, C415D3CE29C0B1430037B215 /* EX_ATSM_20_Inch_Highwall_Bowl_Hit_Ring_Ab.wav in Resources */, C415D3ED29C3765B0037B215 /* QP01 0011 Rain soft.wav in Resources */, C415D3D229C0B1620037B215 /* EX_ATSM_140_Koshi_Chimes_Aria_Tuning_Loop_Wondering_Am.wav in Resources */, @@ -1045,6 +1061,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + C4A16D8D29C4A5BA00143D5E /* GoogleService-Info.plist in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1052,6 +1069,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + C4A16D8E29C4A5BA00143D5E /* GoogleService-Info.plist in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1061,6 +1079,7 @@ files = ( C445FA882984487F0054D761 /* Assets.xcassets in Resources */, C438C7DD2981216300BF3EF9 /* Assets.xcassets in Resources */, + C4A16D8F29C4A5BA00143D5E /* GoogleService-Info.plist in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1069,6 +1088,7 @@ buildActionMask = 2147483647; files = ( C473C33029ACADC80056B38A /* Localizable.strings in Resources */, + C4A16D9029C4A5BA00143D5E /* GoogleService-Info.plist in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1791,6 +1811,25 @@ }; /* End XCConfigurationList section */ +/* Begin XCRemoteSwiftPackageReference section */ + C4A16D9129C4A6DD00143D5E /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/firebase/firebase-ios-sdk"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 9.0.0; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + C4A16D9229C4A6DD00143D5E /* FirebaseCrashlytics */ = { + isa = XCSwiftPackageProductDependency; + package = C4A16D9129C4A6DD00143D5E /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */; + productName = FirebaseCrashlytics; + }; +/* End XCSwiftPackageProductDependency section */ + /* Begin XCVersionGroup section */ C4060DCA297AE73D003FAB80 /* LeCountdown.xcdatamodeld */ = { isa = XCVersionGroup; diff --git a/LeCountdown.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/LeCountdown.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 0000000..9bf85a2 --- /dev/null +++ b/LeCountdown.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,113 @@ +{ + "pins" : [ + { + "identity" : "abseil-cpp-swiftpm", + "kind" : "remoteSourceControl", + "location" : "https://github.com/firebase/abseil-cpp-SwiftPM.git", + "state" : { + "revision" : "583de9bd60f66b40e78d08599cc92036c2e7e4e1", + "version" : "0.20220203.2" + } + }, + { + "identity" : "boringssl-swiftpm", + "kind" : "remoteSourceControl", + "location" : "https://github.com/firebase/boringssl-SwiftPM.git", + "state" : { + "revision" : "dd3eda2b05a3f459fc3073695ad1b28659066eab", + "version" : "0.9.1" + } + }, + { + "identity" : "firebase-ios-sdk", + "kind" : "remoteSourceControl", + "location" : "https://github.com/firebase/firebase-ios-sdk", + "state" : { + "revision" : "7e80c25b51c2ffa238879b07fbfc5baa54bb3050", + "version" : "9.6.0" + } + }, + { + "identity" : "googleappmeasurement", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/GoogleAppMeasurement.git", + "state" : { + "revision" : "c1cfde8067668027b23a42c29d11c246152fe046", + "version" : "9.6.0" + } + }, + { + "identity" : "googledatatransport", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/GoogleDataTransport.git", + "state" : { + "revision" : "f6b558e3f801f2cac336b04f615ce111fa9ddaa0", + "version" : "9.2.1" + } + }, + { + "identity" : "googleutilities", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/GoogleUtilities.git", + "state" : { + "revision" : "0543562f85620b5b7c510c6bcbef75b562a5127b", + "version" : "7.11.0" + } + }, + { + "identity" : "grpc-ios", + "kind" : "remoteSourceControl", + "location" : "https://github.com/grpc/grpc-ios.git", + "state" : { + "revision" : "8440b914756e0d26d4f4d054a1c1581daedfc5b6", + "version" : "1.44.3-grpc" + } + }, + { + "identity" : "gtm-session-fetcher", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/gtm-session-fetcher.git", + "state" : { + "revision" : "5ccda3981422a84186387dbb763ba739178b529c", + "version" : "2.3.0" + } + }, + { + "identity" : "leveldb", + "kind" : "remoteSourceControl", + "location" : "https://github.com/firebase/leveldb.git", + "state" : { + "revision" : "0706abcc6b0bd9cedfbb015ba840e4a780b5159b", + "version" : "1.22.2" + } + }, + { + "identity" : "nanopb", + "kind" : "remoteSourceControl", + "location" : "https://github.com/firebase/nanopb.git", + "state" : { + "revision" : "819d0a2173aff699fb8c364b6fb906f7cdb1a692", + "version" : "2.30909.0" + } + }, + { + "identity" : "promises", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/promises.git", + "state" : { + "revision" : "ec957ccddbcc710ccc64c9dcbd4c7006fcf8b73a", + "version" : "2.2.0" + } + }, + { + "identity" : "swift-protobuf", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-protobuf.git", + "state" : { + "revision" : "0af9125c4eae12a4973fb66574c53a54962a9e1e", + "version" : "1.21.0" + } + } + ], + "version" : 2 +} diff --git a/LeCountdown/AppDelegate.swift b/LeCountdown/AppDelegate.swift index dd5a898..b066e62 100644 --- a/LeCountdown/AppDelegate.swift +++ b/LeCountdown/AppDelegate.swift @@ -8,6 +8,7 @@ import Foundation import UIKit import AVFoundation +import FirebaseCore class AppDelegate : NSObject, UIApplicationDelegate { @@ -20,6 +21,8 @@ class AppDelegate : NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { + FirebaseApp.configure() + UNUserNotificationCenter.current().delegate = self self._initSchemaIfNeeded() diff --git a/LeCountdown/GoogleService-Info.plist b/LeCountdown/GoogleService-Info.plist new file mode 100644 index 0000000..b0afc9d --- /dev/null +++ b/LeCountdown/GoogleService-Info.plist @@ -0,0 +1,34 @@ + + + + + CLIENT_ID + 510588659240-nmmokt44krq1de2i7q9ldtve27vd2pmb.apps.googleusercontent.com + REVERSED_CLIENT_ID + com.googleusercontent.apps.510588659240-nmmokt44krq1de2i7q9ldtve27vd2pmb + API_KEY + AIzaSyCDbEuPsEkVgfkzmR4yiueNb1woqfLayoY + GCM_SENDER_ID + 510588659240 + PLIST_VERSION + 1 + BUNDLE_ID + com.staxriver.LeCountdown + PROJECT_ID + enchant-c3492 + STORAGE_BUCKET + enchant-c3492.appspot.com + IS_ADS_ENABLED + + IS_ANALYTICS_ENABLED + + IS_APPINVITE_ENABLED + + IS_GCM_ENABLED + + IS_SIGNIN_ENABLED + + GOOGLE_APP_ID + 1:510588659240:ios:86bec8b9f46ddcceb4f71d + + \ No newline at end of file diff --git a/LeCountdown/Views/ContentView.swift b/LeCountdown/Views/ContentView.swift index d44996e..5c6a5fb 100644 --- a/LeCountdown/Views/ContentView.swift +++ b/LeCountdown/Views/ContentView.swift @@ -162,7 +162,6 @@ struct ContentView: View { } } - // MARK: - Business fileprivate func _hideTip(_ tip: Tip) {