Skip to content

Commit a527e77

Browse files
authored
Merge pull request #103 from smartmobilefactory/feature/remove_crash
remove MSCrash
2 parents b242f88 + d475ab9 commit a527e77

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

AppCenter/AppCenterSDK+SMFLogger.swift

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import Foundation
1010
import AppCenter
11-
import AppCenterCrashes
1211
import AppCenterDistribute
1312

1413
fileprivate enum AppCenterConstants {
@@ -36,7 +35,7 @@ class AppCenterSDK: NSObject {
3635

3736
// MARK: - Methods
3837

39-
/// This will setup the AppCenterSDK with the common base configuration. Crashes will be detected if the app is build with the release build type.
38+
/// This will setup the AppCenterSDK with the common base configuration.
4039
/// Distribution can be enabled using the configuration
4140
///
4241
/// - Parameters:
@@ -46,7 +45,7 @@ class AppCenterSDK: NSObject {
4645
return
4746
}
4847

49-
let services = (configuration.isDistributionEnabled == true) ? [MSCrashes.self, MSDistribute.self] : [MSCrashes.self]
48+
let services = (configuration.isDistributionEnabled == true) ? [MSDistribute.self] : []
5049

5150
MSAppCenter.start(configuration.appSecret, withServices: services)
5251
}
@@ -69,12 +68,6 @@ class AppCenterSDK: NSObject {
6968
static func enableDistribution(enabled: Bool = true) {
7069
MSDistribute.setEnabled(enabled)
7170
}
72-
73-
/// This will create a `fatalError` to crash the app.
74-
static func performTestCrash() {
75-
76-
MSCrashes.generateTestCrash()
77-
}
7871
}
7972

8073
extension AppCenterSDK {

0 commit comments

Comments
 (0)