From 9fea47beedba4365e812d18ff47c95bb0736079c Mon Sep 17 00:00:00 2001 From: anubhavsingh16 Date: Sat, 25 Jul 2020 04:13:22 +0530 Subject: [PATCH] Adding Crashlytics --- .../AmahiAnywhere.xcodeproj/project.pbxproj | 23 +++++- AmahiAnywhere/AmahiAnywhere/AppDelegate.swift | 3 + AmahiAnywhere/Podfile | 3 +- AmahiAnywhere/Podfile.lock | 76 ++++++++++++++++--- 4 files changed, 93 insertions(+), 12 deletions(-) diff --git a/AmahiAnywhere/AmahiAnywhere.xcodeproj/project.pbxproj b/AmahiAnywhere/AmahiAnywhere.xcodeproj/project.pbxproj index 0d66e59a84f..596135643f0 100644 --- a/AmahiAnywhere/AmahiAnywhere.xcodeproj/project.pbxproj +++ b/AmahiAnywhere/AmahiAnywhere.xcodeproj/project.pbxproj @@ -719,6 +719,7 @@ FB71BE92201CB2FC0005492C /* Resources */, F61A594FE5268D2316515601 /* [CP] Embed Pods Frameworks */, AB0902F10DF6D8E8ED1D608E /* [CP] Copy Pods Resources */, + E6D8642E24CB8D9700C96B67 /* ShellScript */, ); buildRules = ( ); @@ -825,6 +826,24 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; + E6D8642E24CB8D9700C96B67 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)", + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# Type a script or drag a script file from your workspace to insert its path.\n\"${PODS_ROOT}/FirebaseCrashlytics/run\"\n"; + }; F61A594FE5268D2316515601 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -1035,7 +1054,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -1097,7 +1116,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu11; diff --git a/AmahiAnywhere/AmahiAnywhere/AppDelegate.swift b/AmahiAnywhere/AmahiAnywhere/AppDelegate.swift index 6deb53fcf31..6096b48a804 100644 --- a/AmahiAnywhere/AmahiAnywhere/AppDelegate.swift +++ b/AmahiAnywhere/AmahiAnywhere/AppDelegate.swift @@ -11,6 +11,7 @@ import IQKeyboardManagerSwift import EVReflection import AVFoundation import GoogleCast +import Firebase let kPrefPreloadTime = "preload_time_sec" let kPrefEnableAnalyticsLogging = "enable_analytics_logging" @@ -64,6 +65,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + FirebaseApp.configure() + populateRegistrationDomain() useCastContainerViewController = false diff --git a/AmahiAnywhere/Podfile b/AmahiAnywhere/Podfile index f5f84ed6f3b..973d948da94 100644 --- a/AmahiAnywhere/Podfile +++ b/AmahiAnywhere/Podfile @@ -17,5 +17,6 @@ use_frameworks! pod 'SwipeCellKit' pod 'google-cast-sdk' pod 'Floaty' - + pod 'Firebase/Crashlytics' + end \ No newline at end of file diff --git a/AmahiAnywhere/Podfile.lock b/AmahiAnywhere/Podfile.lock index e9e4ab50aba..c8db15754ba 100644 --- a/AmahiAnywhere/Podfile.lock +++ b/AmahiAnywhere/Podfile.lock @@ -5,30 +5,70 @@ PODS: - Alamofire - EVReflection/Core - EVReflection/Core (5.10.1) + - Firebase/CoreOnly (6.28.1): + - FirebaseCore (= 6.9.1) + - Firebase/Crashlytics (6.28.1): + - Firebase/CoreOnly + - FirebaseCrashlytics (~> 4.3.0) + - FirebaseCore (6.9.1): + - FirebaseCoreDiagnostics (~> 1.3) + - GoogleUtilities/Environment (~> 6.7) + - GoogleUtilities/Logger (~> 6.7) + - FirebaseCoreDiagnostics (1.5.0): + - GoogleDataTransport (~> 7.0) + - GoogleUtilities/Environment (~> 6.7) + - GoogleUtilities/Logger (~> 6.7) + - nanopb (~> 1.30905.0) + - FirebaseCrashlytics (4.3.0): + - FirebaseCore (~> 6.8) + - FirebaseInstallations (~> 1.1) + - GoogleDataTransport (~> 7.0) + - nanopb (~> 1.30905.0) + - PromisesObjC (~> 1.2) + - FirebaseInstallations (1.5.0): + - FirebaseCore (~> 6.8) + - GoogleUtilities/Environment (~> 6.7) + - GoogleUtilities/UserDefaults (~> 6.7) + - PromisesObjC (~> 1.2) - Floaty (4.2.0) - google-cast-sdk (4.4.7): - google-cast-sdk/Core (= 4.4.7) - Protobuf (~> 3.0) - google-cast-sdk/Core (4.4.7): - Protobuf (~> 3.0) + - GoogleDataTransport (7.0.0): + - nanopb (~> 1.30905.0) + - GoogleUtilities/Environment (6.7.1): + - PromisesObjC (~> 1.2) + - GoogleUtilities/Logger (6.7.1): + - GoogleUtilities/Environment + - GoogleUtilities/UserDefaults (6.7.1): + - GoogleUtilities/Logger - Imaginary (4.3.1): - Cache (~> 5.3.0) - IQKeyboardManagerSwift (6.5.5) - - Lightbox (2.4.1): + - Lightbox (2.4.2): - Imaginary (~> 4.3.1) - MBProgressHUD (1.2.0) - - MobileVLCKit (3.3.2) + - MobileVLCKit (3.3.13) + - nanopb (1.30905.0): + - nanopb/decode (= 1.30905.0) + - nanopb/encode (= 1.30905.0) + - nanopb/decode (1.30905.0) + - nanopb/encode (1.30905.0) + - PromisesObjC (1.2.9) - Protobuf (3.12.0) - ReachabilitySwift (5.0.0) - - SDWebImage (5.8.2): - - SDWebImage/Core (= 5.8.2) - - SDWebImage/Core (5.8.2) + - SDWebImage (5.8.4): + - SDWebImage/Core (= 5.8.4) + - SDWebImage/Core (5.8.4) - SkyFloatingLabelTextField (3.8.0) - SwipeCellKit (2.7.1) DEPENDENCIES: - Alamofire (~> 4.7) - EVReflection/Alamofire + - Firebase/Crashlytics - Floaty - google-cast-sdk - IQKeyboardManagerSwift @@ -45,13 +85,22 @@ SPEC REPOS: - Alamofire - Cache - EVReflection + - Firebase + - FirebaseCore + - FirebaseCoreDiagnostics + - FirebaseCrashlytics + - FirebaseInstallations - Floaty - google-cast-sdk + - GoogleDataTransport + - GoogleUtilities - Imaginary - IQKeyboardManagerSwift - Lightbox - MBProgressHUD - MobileVLCKit + - nanopb + - PromisesObjC - Protobuf - ReachabilitySwift - SDWebImage @@ -62,19 +111,28 @@ SPEC CHECKSUMS: Alamofire: 85e8a02c69d6020a0d734f6054870d7ecb75cf18 Cache: 48762993ec44e1d93483c4d4a13edd18452326f4 EVReflection: 8124de482178d34ccd56473e16cd95990f9a1113 + Firebase: ed042590caa0029392257529a8003c25ee82bc18 + FirebaseCore: 687b8e6a0a4337b898a6326d68254c2f80c143af + FirebaseCoreDiagnostics: 7535fe695737f8c5b350584292a70b7f8ff0357b + FirebaseCrashlytics: f6ae039fdaf07980425f2ae9f49131fc94009c58 + FirebaseInstallations: 3c520c951305cbf9ca54eb891ff9e6d1fd384881 Floaty: e2bd5a0f6f7f70899e26ff2da31081c8bee8d1b0 google-cast-sdk: 5fb55ce696a3d37f213b64b4f508577ccabd1a36 + GoogleDataTransport: 8a40cb194ad242b6f6dfe72c14fe40fc67c4dcd7 + GoogleUtilities: e121a3867449ce16b0e35ddf1797ea7a389ffdf2 Imaginary: 18c5bba364229eef383b925199db442e71d175e1 IQKeyboardManagerSwift: 0fb93310284665245591f50f7a5e38de615960b7 - Lightbox: cede4a64f2d864da1f7e7959aa78a8659a311e7c + Lightbox: 8837c35c1150fa0410d94296e369b432d37f18c7 MBProgressHUD: 3ee5efcc380f6a79a7cc9b363dd669c5e1ae7406 - MobileVLCKit: d7b6146025626c795e29e7083170adbed2950062 + MobileVLCKit: 92e1ea43124259417f481c890821efb2399d25e3 + nanopb: c43f40fadfe79e8b8db116583945847910cbabc9 + PromisesObjC: b48e0338dbbac2207e611750777895f7a5811b75 Protobuf: 2793fcd0622a00b546c60e7cbbcc493e043e9bb9 ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825 - SDWebImage: f923a89d7344af399ba77b87a523ae747408207a + SDWebImage: cf6922231e95550934da2ada0f20f2becf2ceba9 SkyFloatingLabelTextField: 5a338412114808e961fe2d14ea2c5452c8b6e4aa SwipeCellKit: 3972254a826da74609926daf59b08d6c72e619ea -PODFILE CHECKSUM: 61f513bfe95231a9fec4a3a23bc3a645bf8f94a6 +PODFILE CHECKSUM: bec35306867a26485eb7525b28ae12cbd0d51550 COCOAPODS: 1.9.1