File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99import Foundation
1010import AppCenter
11- import AppCenterCrashes
1211import AppCenterDistribute
1312
1413fileprivate 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
8073extension AppCenterSDK {
You can’t perform that action at this time.
0 commit comments