Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Commit bcb7061

Browse files
committed
Merge branch 'development' into feature/push-notifications-service
2 parents d1f2a7c + edcc7cc commit bcb7061

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

Campus-iOS/App.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ struct CampusApp: App {
2121
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
2222

2323
init() {
24+
#if !DEBUG
2425
FirebaseApp.configure()
25-
26+
#endif
2627
UITabBar.appearance().isOpaque = true
2728

2829
if #available(iOS 15.0, *) {

Campus-iOS/Base/Entity/EntityImporter.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,21 @@ final class Importer<EntityType: Entity, EntityContainer: Decodable, DecoderType
5555
let storage = try decoder.decode(EntityContainer.self, from: data)
5656
handler?(.success(storage))
5757
} catch let apiError as APIError {
58+
#if !DEBUG
5859
Crashlytics.crashlytics().record(error: apiError)
60+
#endif
5961
handler?(.failure(apiError))
6062
return
6163
} catch let decodingError as DecodingError {
64+
#if !DEBUG
6265
Crashlytics.crashlytics().record(error: decodingError)
66+
#endif
6367
handler?(.failure(decodingError))
6468
return
6569
} catch let error {
70+
#if !DEBUG
6671
Crashlytics.crashlytics().record(error: error)
72+
#endif
6773
handler?(.failure(error))
6874
}
6975
}

Campus-iOS/Base/Networking/APIResponse.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ struct TUMOnlineAPIResponse<T: Decodable>: Decodable {
3636
return try $0.result.get()
3737
}
3838
catch {
39-
Crashlytics.crashlytics().record(error: error)
40-
return nil
39+
#if !DEBUG
40+
Crashlytics.crashlytics().record(error: error)
41+
#endif
42+
return nil
4143
}
4244
}
4345
}

Campus-iOS/LoginComponent/Service/AuthenticationHandler.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ final class AuthenticationHandler: RequestAdapter, RequestRetrier {
9090
let encodedRequest = try URLEncoding.default.encode(urlRequest, with: ["pToken": pToken])
9191
return completion(.success(encodedRequest))
9292
} catch let error {
93+
#if !DEBUG
9394
Crashlytics.crashlytics().record(error: error)
95+
#endif
9496
return completion(.failure(error))
9597
}
9698
case urlString where TUMCabeAPI.requiresAuth.contains { urlString.contains($0)}:

0 commit comments

Comments
 (0)