mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
hockeyapp crash
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
using HockeyApp.Android;
|
using HockeyApp.Android;
|
||||||
using Bit.App.Abstractions;
|
using Bit.App.Abstractions;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using Android.Runtime;
|
||||||
|
|
||||||
namespace Bit.Android
|
namespace Bit.Android
|
||||||
{
|
{
|
||||||
@@ -9,6 +10,13 @@ namespace Bit.Android
|
|||||||
private readonly IAppIdService _appIdService;
|
private readonly IAppIdService _appIdService;
|
||||||
private readonly IAuthService _authService;
|
private readonly IAuthService _authService;
|
||||||
|
|
||||||
|
public HockeyAppCrashManagerListener()
|
||||||
|
{ }
|
||||||
|
|
||||||
|
public HockeyAppCrashManagerListener(System.IntPtr javaRef, JniHandleOwnership transfer)
|
||||||
|
: base(javaRef, transfer)
|
||||||
|
{ }
|
||||||
|
|
||||||
public HockeyAppCrashManagerListener(
|
public HockeyAppCrashManagerListener(
|
||||||
IAppIdService appIdService,
|
IAppIdService appIdService,
|
||||||
IAuthService authService)
|
IAuthService authService)
|
||||||
@@ -21,13 +29,20 @@ namespace Bit.Android
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
var log = new
|
if(_appIdService != null && _authService != null)
|
||||||
{
|
{
|
||||||
AppId = _appIdService.AppId,
|
var log = new
|
||||||
UserId = _authService.UserId
|
{
|
||||||
};
|
AppId = _appIdService.AppId,
|
||||||
|
UserId = _authService.UserId
|
||||||
|
};
|
||||||
|
|
||||||
return JsonConvert.SerializeObject(log, Formatting.Indented);
|
return JsonConvert.SerializeObject(log, Formatting.Indented);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user