diff --git a/Classes/BITCrashManager.h b/Classes/BITCrashManager.h index 56fe817b22..4b2f16a2ef 100644 --- a/Classes/BITCrashManager.h +++ b/Classes/BITCrashManager.h @@ -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; diff --git a/Classes/BITCrashManager.m b/Classes/BITCrashManager.m index f9bc245c31..5e0753f9a7 100644 --- a/Classes/BITCrashManager.m +++ b/Classes/BITCrashManager.m @@ -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]; diff --git a/Resources/de.lproj/HockeySDK.strings b/Resources/de.lproj/HockeySDK.strings index db29a23743..859fb9a5a8 100755 --- a/Resources/de.lproj/HockeySDK.strings +++ b/Resources/de.lproj/HockeySDK.strings @@ -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"; diff --git a/Resources/en.lproj/HockeySDK.strings b/Resources/en.lproj/HockeySDK.strings index a70cc835e3..588fec4684 100755 --- a/Resources/en.lproj/HockeySDK.strings +++ b/Resources/en.lproj/HockeySDK.strings @@ -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"; diff --git a/Resources/es.lproj/HockeySDK.strings b/Resources/es.lproj/HockeySDK.strings index bcceab12aa..a81f6afc2d 100755 --- a/Resources/es.lproj/HockeySDK.strings +++ b/Resources/es.lproj/HockeySDK.strings @@ -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"; diff --git a/Resources/fr.lproj/HockeySDK.strings b/Resources/fr.lproj/HockeySDK.strings index 0bf3cfb9c7..128314b019 100755 --- a/Resources/fr.lproj/HockeySDK.strings +++ b/Resources/fr.lproj/HockeySDK.strings @@ -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" = "%@ s’est fermé de façon inattendue. Souhaitez-vous envoyer un rapport d’incident anonyme pour nous aider à corriger le problème ?"; +"CrashDataFoundAnonymousDescription" = "%@ s’est fermé de façon inattendue. Souhaitez-vous envoyer un rapport d’incident 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" = "%@ s’est fermé de façon inattendue. Souhaitez-vous envoyer un rapport d’incident pour nous aider à corriger le problème ?"; /* Alert box button if the users wants to send crash data always automatically */ "CrashSendReportAlways" = "Toujours"; diff --git a/Resources/it.lproj/HockeySDK.strings b/Resources/it.lproj/HockeySDK.strings index b21073b377..2c92b3c84c 100755 --- a/Resources/it.lproj/HockeySDK.strings +++ b/Resources/it.lproj/HockeySDK.strings @@ -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"; diff --git a/Resources/ja.lproj/HockeySDK.strings b/Resources/ja.lproj/HockeySDK.strings index 31b10e7bdf..1c83d89872 100755 --- a/Resources/ja.lproj/HockeySDK.strings +++ b/Resources/ja.lproj/HockeySDK.strings @@ -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" = "いつも"; diff --git a/Resources/nl.lproj/HockeySDK.strings b/Resources/nl.lproj/HockeySDK.strings index 2ef6cf2ed1..3ac464abfc 100755 --- a/Resources/nl.lproj/HockeySDK.strings +++ b/Resources/nl.lproj/HockeySDK.strings @@ -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"; diff --git a/Resources/pt-PT.lproj/HockeySDK.strings b/Resources/pt-PT.lproj/HockeySDK.strings index b03fc19389..3042aa08b3 100755 --- a/Resources/pt-PT.lproj/HockeySDK.strings +++ b/Resources/pt-PT.lproj/HockeySDK.strings @@ -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 */ diff --git a/Resources/pt.lproj/HockeySDK.strings b/Resources/pt.lproj/HockeySDK.strings index 3fb8c3eba8..17ff3f9b81 100755 --- a/Resources/pt.lproj/HockeySDK.strings +++ b/Resources/pt.lproj/HockeySDK.strings @@ -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 */ diff --git a/Resources/ru.lproj/HockeySDK.strings b/Resources/ru.lproj/HockeySDK.strings index c0db812990..e843ad95ed 100755 --- a/Resources/ru.lproj/HockeySDK.strings +++ b/Resources/ru.lproj/HockeySDK.strings @@ -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" = "Всегда"; diff --git a/Resources/sv.lproj/HockeySDK.strings b/Resources/sv.lproj/HockeySDK.strings index d529043cba..446a718134 100755 --- a/Resources/sv.lproj/HockeySDK.strings +++ b/Resources/sv.lproj/HockeySDK.strings @@ -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"; diff --git a/Resources/tr.lproj/HockeySDK.strings b/Resources/tr.lproj/HockeySDK.strings index 63397da030..907d3d0316 100644 --- a/Resources/tr.lproj/HockeySDK.strings +++ b/Resources/tr.lproj/HockeySDK.strings @@ -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!"; diff --git a/Resources/zh_CN.lproj/HockeySDK.strings b/Resources/zh_CN.lproj/HockeySDK.strings index ded16908e6..af76756cf8 100644 --- a/Resources/zh_CN.lproj/HockeySDK.strings +++ b/Resources/zh_CN.lproj/HockeySDK.strings @@ -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" = "总是"; diff --git a/Resources/zh_TW.lproj/HockeySDK.strings b/Resources/zh_TW.lproj/HockeySDK.strings index a19a806496..4b9dc6d3b7 100644 --- a/Resources/zh_TW.lproj/HockeySDK.strings +++ b/Resources/zh_TW.lproj/HockeySDK.strings @@ -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" = "總是";