mirror of
https://github.com/bitwarden/mobile
synced 2026-01-02 00:23:15 +00:00
re-work hockeyapp init
This commit is contained in:
@@ -5,11 +5,14 @@ using Newtonsoft.Json;
|
||||
using Android.Runtime;
|
||||
using Bit.Core.Abstractions;
|
||||
using System.Threading.Tasks;
|
||||
using Android.Content;
|
||||
|
||||
namespace Bit.Droid.Utilities
|
||||
{
|
||||
public class HockeyAppCrashManagerListener : CrashManagerListener
|
||||
{
|
||||
private const string HockeyAppId = "d3834185b4a643479047b86c65293d42";
|
||||
|
||||
private readonly IAppIdService _appIdService;
|
||||
private readonly IUserService _userService;
|
||||
|
||||
@@ -31,10 +34,11 @@ namespace Bit.Droid.Utilities
|
||||
_userService = userService;
|
||||
}
|
||||
|
||||
public async Task InitAsync()
|
||||
public async Task InitAsync(Context context)
|
||||
{
|
||||
_userId = await _userService.GetUserIdAsync();
|
||||
_appId = await _appIdService.GetAppIdAsync();
|
||||
CrashManager.Register(context, HockeyAppId, this);
|
||||
}
|
||||
|
||||
public override string Description
|
||||
|
||||
Reference in New Issue
Block a user