mirror of
https://github.com/bitwarden/mobile
synced 2025-12-17 16:53:26 +00:00
Added custom device info service for determining model and version (ios = major version, android = API level).
This commit is contained in:
11
src/Android/Services/DeviceInfoService.cs
Normal file
11
src/Android/Services/DeviceInfoService.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Android.OS;
|
||||
using Bit.App.Abstractions;
|
||||
|
||||
namespace Bit.Android.Services
|
||||
{
|
||||
public class DeviceInfoService : IDeviceInfoService
|
||||
{
|
||||
public string Model => Build.Model;
|
||||
public int Version => (int)Build.VERSION.SdkInt;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user