mirror of
https://github.com/bitwarden/android.git
synced 2025-01-25 01:03:50 +03:00
31 lines
853 B
C#
31 lines
853 B
C#
using Bit.App.Abstractions;
|
|
using HockeyApp.iOS;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Bit.iOS.Core
|
|
{
|
|
public class HockeyAppCrashManagerDelegate : BITCrashManagerDelegate
|
|
{
|
|
private readonly IAppIdService _appIdService;
|
|
private readonly IAuthService _authService;
|
|
|
|
public HockeyAppCrashManagerDelegate(
|
|
IAppIdService appIdService,
|
|
IAuthService authService)
|
|
{
|
|
_appIdService = appIdService;
|
|
_authService = authService;
|
|
}
|
|
|
|
public override string ApplicationLogForCrashManager(BITCrashManager crashManager)
|
|
{
|
|
var log = new
|
|
{
|
|
AppId = _appIdService.AppId,
|
|
UserId = _authService.UserId
|
|
};
|
|
|
|
return JsonConvert.SerializeObject(log, Formatting.Indented);
|
|
}
|
|
}
|
|
}
|