Skip to content

Commit 707c866

Browse files
committed
replace assert with fatalError
1 parent 51fcd24 commit 707c866

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

AppCenter/AppCenterSDK+SMFLogger.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ extension AppCenterSDK {
8686

8787
struct Configuration {
8888

89-
fileprivate var enableDebug : Bool = false
90-
fileprivate var appSecret : String = ""
91-
fileprivate var isDistributionEnabled : Bool = false
89+
fileprivate var enableDebug : Bool
90+
fileprivate var appSecret : String
91+
fileprivate var isDistributionEnabled : Bool
9292

9393
/// Initializes a AppCenterSDK Configuration
9494
///
@@ -101,8 +101,7 @@ extension AppCenterSDK {
101101
let appSecretFromBundle = Bundle.main.object(forInfoDictionaryKey: AppCenterConstants.appSecretKey) as? String
102102

103103
guard let _appSecret = (appSecret ?? appSecretFromBundle) else {
104-
assertionFailure("Error: You have to set the `\(AppCenterConstants.appSecretKey)` key in the info plist or specify your own when initializing the SDK.")
105-
return
104+
fatalError("You have to set the `\(AppCenterConstants.appSecretKey)` key in the info plist or specify your own when initializing the SDK.")
106105
}
107106

108107
self.enableDebug = enableDebug

0 commit comments

Comments
 (0)