2016-07-24 06:50:08 +03:00
|
|
|
|
using Bit.App.Abstractions;
|
2016-08-27 21:36:32 +03:00
|
|
|
|
using AndroidApp = Android.App.Application;
|
2016-07-24 06:50:08 +03:00
|
|
|
|
|
|
|
|
|
namespace Bit.Android.Services
|
|
|
|
|
{
|
|
|
|
|
public class AppInfoService : IAppInfoService
|
|
|
|
|
{
|
2016-08-27 21:36:32 +03:00
|
|
|
|
public string Version => AndroidApp.Context.ApplicationContext.PackageManager
|
|
|
|
|
.GetPackageInfo(AndroidApp.Context.PackageName, 0).VersionName;
|
2016-07-24 06:50:08 +03:00
|
|
|
|
|
2016-08-27 21:36:32 +03:00
|
|
|
|
public string Build => AndroidApp.Context.ApplicationContext.PackageManager
|
|
|
|
|
.GetPackageInfo(AndroidApp.Context.PackageName, 0).VersionCode.ToString();
|
2017-02-01 08:38:35 +03:00
|
|
|
|
|
|
|
|
|
public bool AutofillServiceEnabled => AutofillService.Enabled;
|
2016-07-24 06:50:08 +03:00
|
|
|
|
}
|
|
|
|
|
}
|