diff --git a/BuildScripts/FirebaseCrashlytics.sh b/BuildScripts/FirebaseCrashlytics.sh index 6773ecb..2004d23 100644 --- a/BuildScripts/FirebaseCrashlytics.sh +++ b/BuildScripts/FirebaseCrashlytics.sh @@ -1 +1,3 @@ -${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run +if [ "${CONFIGURATION}" = "Release" ]; then + ${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run +fi diff --git a/GitTime/Sources/CompositionRoot.swift b/GitTime/Sources/CompositionRoot.swift index 940a4e0..3f223a8 100644 --- a/GitTime/Sources/CompositionRoot.swift +++ b/GitTime/Sources/CompositionRoot.swift @@ -128,22 +128,23 @@ final class CompositionRoot { // MARK: Configure SDKs static func configureSDKs() { - - // Firebase - FirebaseApp.configure() - - // Image Cache - let cache = ImageCache.default - cache.clearCache() - #if DEBUG // SwiftyBeaver let console = ConsoleDestination() console.minLevel = .verbose log.addDestination(console) - + + #else + + // Firebase + FirebaseApp.configure() + #endif + + // Image Cache + let cache = ImageCache.default + cache.clearCache() } // MARK: Configure Appearance diff --git a/project.yml b/project.yml index 939c570..f88be01 100644 --- a/project.yml +++ b/project.yml @@ -103,8 +103,6 @@ targets: - package: SnapKit - package: PanModal - package: KeychainAccess - - package: RealmSwift - product: Realm - package: RealmSwift product: RealmSwift - package: Kingfisher