Update AppDelegate.swift
This commit is contained in:
Родитель
7251d4cf64
Коммит
e309fdfbae
|
@ -1,5 +1,8 @@
|
|||
|
||||
import UIKit
|
||||
import MobileCenter
|
||||
import MobileCenterAnalytics
|
||||
import MobileCenterCrashes
|
||||
|
||||
@UIApplicationMain
|
||||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
@ -8,7 +11,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
|||
|
||||
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
|
||||
// Override point for customization after application launch.
|
||||
|
||||
MSMobileCenter.start("YourAppSecret", withServices:[
|
||||
MSAnalytics.self,
|
||||
MSCrashes.self
|
||||
])
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче