|
@@ -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 --------------------------------------------------------------------------------------------
|