Skip to content

Commit

Permalink
fix: crashlytics
Browse files Browse the repository at this point in the history
  • Loading branch information
tomokisun committed Aug 26, 2024
1 parent 85c93ea commit bc6c9d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Packages/MatchCore/Sources/AppLogic/ConfigGlobalLogic.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import Build
import ComposableArchitecture
import ConfigGlobalClient
import FirebaseCrashlyticsClient

@Reducer
public struct ConfigGlobalLogic {
@Dependency(\.crashlytics) var crashlytics
@Dependency(\.configGlobal) var configGlobal
@Dependency(\.build.bundleShortVersion) var bundleShortVersion

Expand Down Expand Up @@ -42,7 +44,9 @@ public struct ConfigGlobalLogic {
}
return .send(.configFetched)

case .configResponse(.failure):
case let .configResponse(.failure(error)):
crashlytics.record(error: error)

state.account.isForceUpdate = .success(false)
state.account.isMaintenance = .success(false)
state.child = .networkError()
Expand Down

0 comments on commit bc6c9d6

Please sign in to comment.