Browse Source

disable chrashlytics debug mode

Marino Faggiana 8 years ago
parent
commit
b2f653d400
1 changed files with 5 additions and 4 deletions
  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 --------------------------------------------------------------------------------------------