mirror of
https://github.com/bitwarden/android.git
synced 2024-12-20 08:12:26 +03:00
hockeyapp crash
This commit is contained in:
parent
5c6ff45cc9
commit
379404077a
1 changed files with 20 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
using HockeyApp.Android;
|
||||
using Bit.App.Abstractions;
|
||||
using Newtonsoft.Json;
|
||||
using Android.Runtime;
|
||||
|
||||
namespace Bit.Android
|
||||
{
|
||||
|
@ -9,6 +10,13 @@ namespace Bit.Android
|
|||
private readonly IAppIdService _appIdService;
|
||||
private readonly IAuthService _authService;
|
||||
|
||||
public HockeyAppCrashManagerListener()
|
||||
{ }
|
||||
|
||||
public HockeyAppCrashManagerListener(System.IntPtr javaRef, JniHandleOwnership transfer)
|
||||
: base(javaRef, transfer)
|
||||
{ }
|
||||
|
||||
public HockeyAppCrashManagerListener(
|
||||
IAppIdService appIdService,
|
||||
IAuthService authService)
|
||||
|
@ -20,6 +28,8 @@ namespace Bit.Android
|
|||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
if(_appIdService != null && _authService != null)
|
||||
{
|
||||
var log = new
|
||||
{
|
||||
|
@ -29,6 +39,11 @@ namespace Bit.Android
|
|||
|
||||
return JsonConvert.SerializeObject(log, Formatting.Indented);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool ShouldAutoUploadCrashes()
|
||||
|
|
Loading…
Reference in a new issue