瀏覽代碼

disable chrashlytics debug mode

Marino Faggiana 8 年之前
父節點
當前提交
b2f653d400
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      iOSClient/AppDelegate.m

+ 5 - 4
iOSClient/AppDelegate.m

@@ -263,7 +263,10 @@
     [application registerUserNotificationSettings:notificationSettings];
     
     // Fabric
+#ifndef DEBUG
     [Fabric with:@[[Crashlytics class]]];
+    [self logUserCrashlytics];
+#endif
     
     return YES;
 }
@@ -1574,16 +1577,14 @@
 
 - (void)logUserCrashlytics
 {
+#ifndef DEBUG
     TableAccount *tableAccount = [CCCoreData getActiveAccount];
     
     if (tableAccount) {
-        
-        if (tableAccount.account && tableAccount.account.length > 0)
-            [CrashlyticsKit setUserName:tableAccount.account];
-        
         if (tableAccount.email && tableAccount.email.length > 0)
             [CrashlyticsKit setUserEmail:tableAccount.email];
     }
+#endif
 }
 
 #pragma --------------------------------------------------------------------------------------------