mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 23:54:06 +03:00
14 lines
502 B
C#
14 lines
502 B
C#
using Bit.App.Abstractions;
|
|
using AndrodApp = Android.App.Application;
|
|
|
|
namespace Bit.Android.Services
|
|
{
|
|
public class AppInfoService : IAppInfoService
|
|
{
|
|
public string Version => AndrodApp.Context.ApplicationContext.PackageManager
|
|
.GetPackageInfo(AndrodApp.Context.PackageName, 0).VersionName;
|
|
|
|
public string Build => AndrodApp.Context.ApplicationContext.PackageManager
|
|
.GetPackageInfo(AndrodApp.Context.PackageName, 0).VersionCode.ToString();
|
|
}
|
|
}
|