If userName or userEmail are set, don't show alerts with the text "anonymous"

This commit is contained in:
Andreas Linde 2012-07-22 13:57:02 +02:00
parent 7d8fc80693
commit c014bce9ea
16 changed files with 83 additions and 28 deletions

View File

@ -110,11 +110,17 @@ typedef enum BITCrashStatus {
///-----------------------------------------------------------------------------
/** Define the users name or userid that should be send along each crash report
@warning When setting this property, crash reports are not anonymous any more
and the alerts will not show the "anonymous" word!
*/
@property (nonatomic, copy) NSString *userName;
/** Define the users email address that should be send along each crash report
@warning When setting this property, crash reports are not anonymous any more
and the alerts will not show the "anonymous" word!
*/
@property (nonatomic, copy) NSString *userEmail;

View File

@ -78,6 +78,12 @@
_appIdentifier = appIdentifier;
_delegate = nil;
_userName = nil;
_userEmail = nil;
_feedbackActivated = NO;
_showAlwaysButton = NO;
_autoSubmitCrashReport = NO;
_serverResult = BITCrashStatusUnknown;
_crashIdenticalCurrentVersion = YES;
_crashData = nil;
@ -88,11 +94,6 @@
_timeintervalCrashInLastSessionOccured = -1;
_fileManager = [[NSFileManager alloc] init];
self.delegate = nil;
self.feedbackActivated = NO;
self.showAlwaysButton = NO;
self.autoSubmitCrashReport = NO;
NSString *testValue = [[NSUserDefaults standardUserDefaults] stringForKey:kBITCrashAnalyzerStarted];
if (testValue) {
_analyzerStarted = [[NSUserDefaults standardUserDefaults] integerForKey:kBITCrashAnalyzerStarted];
@ -198,9 +199,15 @@
}
NSString *appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"];
NSString *alertDescription = [NSString stringWithFormat:BITHockeyLocalizedString(@"CrashDataFoundAnonymousDescription"), appName];
// the crash report is not anynomous any more
if (_userName || _userEmail) {
alertDescription = [NSString stringWithFormat:BITHockeyLocalizedString(@"CrashDataFoundDescription"), appName];
}
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:BITHockeyLocalizedString(@"CrashDataFoundTitle"), appName]
message:[NSString stringWithFormat:BITHockeyLocalizedString(@"CrashDataFoundDescription"), appName]
message:alertDescription
delegate:self
cancelButtonTitle:BITHockeyLocalizedString(@"CrashDontSendReport")
otherButtonTitles:BITHockeyLocalizedString(@"CrashSendReport"), nil];

View File

@ -18,8 +18,11 @@
/* Title showing in the alert box when crash report data has been found */
"CrashDataFoundTitle" = "%@ unerwartet beendet";
/* Description explaining that crash data has been found and ask the user if the data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "Möchten Sie einen anonymen Absturzbericht senden, damit wir das Problem beheben können?";
/* Description explaining that crash data has been found and ask the user if the anonymous data might be uplaoded to the developers server */
"CrashDataFoundAnonymousDescription" = "Möchten Sie einen anonymen Absturzbericht senden, damit wir das Problem beheben können?";
/* Description explaining that crash data has been found and ask the user if the non anonymous data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "Möchten Sie einen Absturzbericht senden, damit wir das Problem beheben können?";
/* Alert box button if the users wants to send crash data always automatically */
"CrashSendReportAlways" = "Immer senden";

View File

@ -19,7 +19,10 @@
"CrashDataFoundTitle" = "%@ Unexpectedly Quit";
/* Description explaining that crash data has been found and ask the user if the data might be uploaded to the developers server */
"CrashDataFoundDescription" = "Would you like to send an anonymous report so we can fix the problem?";
"CrashDataFoundAnonymousDescription" = "Would you like to send an anonymous report so we can fix the problem?";
/* Description explaining that crash data has been found and ask the user if the non anonymous data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "Would you like to send a report so we can fix the problem?";
/* Alert box button if the users wants to send crash data always automatically */
"CrashSendReportAlways" = "Always Send";

View File

@ -19,7 +19,10 @@
"CrashDataFoundTitle" = "Conflicto de datos detectado";
/* Description explaining that crash data has been found and ask the user if the data might be uploaded to the developers server */
"CrashDataFoundDescription" = "La aplicación fallo previamente. ¿Le gustaría proporcionar de manera anonima información relacionado con el fallo al programador para que este pueda solucionar el problema?";
"CrashDataFoundAnonymousDescription" = "La aplicación fallo previamente. ¿Le gustaría proporcionar de manera anonima información relacionado con el fallo al programador para que este pueda solucionar el problema?";
/* Description explaining that crash data has been found and ask the user if the non anonymous data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "La aplicación fallo previamente. ¿Le gustaría proporcionar de manera información relacionado con el fallo al programador para que este pueda solucionar el problema?";
/* Alert box button if the users wants to send crash data always automatically */
"CrashSendReportAlways" = "Siempre";

View File

@ -19,7 +19,10 @@
"CrashDataFoundTitle" = "Rapport de plantage";
/* Description explaining that crash data has been found and ask the user if the data might be uploaded to the developers server */
"CrashDataFoundDescription" = "%@ sest fermé de façon inattendue. Souhaitez-vous envoyer un rapport dincident anonyme pour nous aider à corriger le problème ?";
"CrashDataFoundAnonymousDescription" = "%@ sest fermé de façon inattendue. Souhaitez-vous envoyer un rapport dincident anonyme pour nous aider à corriger le problème ?";
/* Description explaining that crash data has been found and ask the user if the non anonymous data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "%@ sest fermé de façon inattendue. Souhaitez-vous envoyer un rapport dincident pour nous aider à corriger le problème ?";
/* Alert box button if the users wants to send crash data always automatically */
"CrashSendReportAlways" = "Toujours";

View File

@ -18,8 +18,11 @@
/* Title showing in the alert box when crash report data has been found */
"CrashDataFoundTitle" = "Dati del crash trovati";
/* Description explaining that crash data has been found and ask the user if the data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "L'applicazione precedentemente ha avuto un crash. Vuoi inviare allo sviluppatore i dati anonimi del crash in modo che possa provare a sistemare il problema?";
/* Description explaining that crash data has been found and ask the user if the data might be uploaded to the developers server */
"CrashDataFoundAnonymousDescription" = "L'applicazione precedentemente ha avuto un crash. Vuoi inviare allo sviluppatore i dati anonimi del crash in modo che possa provare a sistemare il problema?";
/* Description explaining that crash data has been found and ask the user if the non anonymous data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "L'applicazione precedentemente ha avuto un crash. Vuoi inviare allo sviluppatore i dati del crash in modo che possa provare a sistemare il problema?";
/* Alert box button if the users wants to send crash data always automatically */
"CrashSendReportAlways" = "Sempre";

View File

@ -18,8 +18,11 @@
/* Title showing in the alert box when crash report data has been found */
"CrashDataFoundTitle" = "クラッシュ時のデータを検知";
/* Description explaining that crash data has been found and ask the user if the data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "%@ は不正に終了しました。問題の修正のため、匿名でクラッシュレポートを送信しますか?";
/* Description explaining that crash data has been found and ask the user if the data might be uploaded to the developers server */
"CrashDataFoundAnonymousDescription" = "%@ は不正に終了しました。問題の修正のため、匿名でクラッシュレポートを送信しますか?";
/* Description explaining that crash data has been found and ask the user if the non anonymous data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "%@ は不正に終了しました。問題の修正のため、クラッシュレポートを送信しますか?";
/* Alert box button if the users wants to send crash data always automatically */
"CrashSendReportAlways" = "いつも";

View File

@ -18,8 +18,11 @@
/* Title showing in the alert box when crash report data has been found */
"CrashDataFoundTitle" = "Crashdata gevonden";
/* Description explaining that crash data has been found and ask the user if the data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "De applicatie is gecrasht. Wilt u de ontwikkelaars anonieme data sturen zodat zij kunnen proberen de problemen op te lossen?";
/* Description explaining that crash data has been found and ask the user if the data might be uploaded to the developers server */
"CrashDataFoundAnonymousDescription" = "De applicatie is gecrasht. Wilt u de ontwikkelaars anonieme data sturen zodat zij kunnen proberen de problemen op te lossen?";
/* Description explaining that crash data has been found and ask the user if the non anonymous data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "De applicatie is gecrasht. Wilt u de ontwikkelaars data sturen zodat zij kunnen proberen de problemen op te lossen?";
/* Alert box button if the users wants to send crash data always automatically */
"CrashSendReportAlways" = "Altijd";

View File

@ -18,7 +18,10 @@
/* Title showing in the alert box when crash report data has been found */
"CrashDataFoundTitle" = "Informação de falha encontrada";
/* Description explaining that crash data has been found and ask the user if the data might be uplaoded to the developers server */
/* Description explaining that crash data has been found and ask the user if the data might be uploaded to the developers server */
"CrashDataFoundAnonymousDescription" = "A aplicação falhou anteriormente. Gostaria de enviar informação ao programador acerca da falha de forma a poderem resolver o problema?";
/* Description explaining that crash data has been found and ask the user if the non anonymous data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "A aplicação falhou anteriormente. Gostaria de enviar informação anónima ao programador acerca da falha de forma a poderem resolver o problema?";
/* Alert box button if the users wants to send crash data always automatically */

View File

@ -18,7 +18,10 @@
/* Title showing in the alert box when crash report data has been found */
"CrashDataFoundTitle" = "Dados de falha encontrados";
/* Description explaining that crash data has been found and ask the user if the data might be uplaoded to the developers server */
/* Description explaining that crash data has been found and ask the user if the data might be uploaded to the developers server */
"CrashDataFoundAnonymousDescription" = "O aplicativo falhou anteriormente. Você gostaria de enviar ao desenvolvedor os dados sobre a falha do sistema, para que ele resolva o problema?";
/* Description explaining that crash data has been found and ask the user if the non anonymous data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "O aplicativo falhou anteriormente. Você gostaria de enviar ao desenvolvedor os dados sobre a falha do sistema, para que ele resolva o problema?";
/* Alert box button if the users wants to send crash data always automatically */

View File

@ -18,8 +18,11 @@
/* Title showing in the alert box when crash report data has been found */
"CrashDataFoundTitle" = "Обнаружена проблема";
/* Description explaining that crash data has been found and ask the user if the data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "%@ программа неожиданно завершена. Хотите ли Вы отправить нам анонимное сообщение о неполадках, чтобы мы могли устранить проблему?";
/* Description explaining that crash data has been found and ask the user if the data might be uploaded to the developers server */
"CrashDataFoundAnonymousDescription" = "%@ программа неожиданно завершена. Хотите ли Вы отправить нам анонимное сообщение о неполадках, чтобы мы могли устранить проблему?";
/* Description explaining that crash data has been found and ask the user if the non anonymous data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "%@ программа неожиданно завершена. Хотите ли Вы отправить нам сообщение о неполадках, чтобы мы могли устранить проблему?";
/* Alert box button if the users wants to send crash data always automatically */
"Always" = "Всегда";

View File

@ -19,7 +19,10 @@
"CrashDataFoundTitle" = "%@ kraschade";
/* Description explaining that crash data has been found and ask the user if the data might be uploaded to the developers server */
"CrashDataFoundDescription" = "Vill du skicka en anonym kraschrapport så att vi kan lösa felet?";
"CrashDataFoundAnonymousDescription" = "Vill du skicka en anonym kraschrapport så att vi kan lösa felet?";
/* Description explaining that crash data has been found and ask the user if the non anonymous data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "Vill du skicka en kraschrapport så att vi kan lösa felet?";
/* Alert box button if the users wants to send crash data always automatically */
"CrashSendReportAlways" = "Skicka alltid";

View File

@ -18,8 +18,11 @@
/* Title showing in the alert box when crash report data has been found */
"CrashDataFoundTitle" = "Hata raporu bulundu";
/* Description explaining that crash data has been found and ask the user if the data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "%@ beklenmeyen bir şekilde kapanmış. Bu hatayı gidermemizi kolaylaştırmak için anonim bir hata raporu göndermek ister misiniz?";
/* Description explaining that crash data has been found and ask the user if the data might be uploaded to the developers server */
"CrashDataFoundAnonymousDescription" = "%@ beklenmeyen bir şekilde kapanmış. Bu hatayı gidermemizi kolaylaştırmak için anonim bir hata raporu göndermek ister misiniz?";
/* Description explaining that crash data has been found and ask the user if the non anonymous data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "%@ beklenmeyen bir şekilde kapanmış. Bu hatayı gidermemizi kolaylaştırmak için bir hata raporu göndermek ister misiniz?";
/* Alert box button if the users wants to send crash data always automatically */
"CrashSendReportAlways" = "Her seferinde gönder!";

View File

@ -18,8 +18,11 @@
/* Title showing in the alert box when crash report data has been found */
"CrashDataFoundTitle" = "发现崩溃数据";
/* Description explaining that crash data has been found and ask the user if the data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "%@ 不正常退出。您能否匿名提供崩溃记录以帮助我们解决问题?";
/* Description explaining that crash data has been found and ask the user if the data might be uploaded to the developers server */
"CrashDataFoundAnonymousDescription" = "%@ 不正常退出。您能否匿名提供崩溃记录以帮助我们解决问题?";
/* Description explaining that crash data has been found and ask the user if the non anonymous data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "%@ 不正常退出。您能否提供崩溃记录以帮助我们解决问题?";
/* Alert box button if the users wants to send crash data always automatically */
"CrashSendReportAlways" = "总是";

View File

@ -18,8 +18,11 @@
/* Title showing in the alert box when crash report data has been found */
"CrashDataFoundTitle" = "發現崩潰數據";
/* Description explaining that crash data has been found and ask the user if the data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "%@ 不正常退出。你能否匿名提供崩潰記錄以幫助我們解決問題?";
/* Description explaining that crash data has been found and ask the user if the data might be uploaded to the developers server */
"CrashDataFoundAnonymousDescription" = "%@ 不正常退出。你能否匿名提供崩潰記錄以幫助我們解決問題?";
/* Description explaining that crash data has been found and ask the user if the non anonymous data might be uplaoded to the developers server */
"CrashDataFoundDescription" = "%@ 不正常退出。你能否名提供崩潰記錄以幫助我們解決問題?";
/* Alert box button if the users wants to send crash data always automatically */
"CrashSendReportAlways" = "總是";