mirror of
https://github.com/bitwarden/mobile
synced 2025-12-28 14:13:25 +00:00
About and credit page implementation. Adjusted block screen and launch screen logo margins up some. Added decryption message to extension loading.
This commit is contained in:
@@ -271,6 +271,7 @@
|
||||
<Compile Include="Controls\ExtendedEntryRenderer.cs" />
|
||||
<Compile Include="MainApplication.cs" />
|
||||
<Compile Include="Resources\Resource.Designer.cs" />
|
||||
<Compile Include="Services\AppInfoService.cs" />
|
||||
<Compile Include="Services\ClipboardService.cs" />
|
||||
<Compile Include="Services\KeyStoreStorageService.cs" />
|
||||
<Compile Include="MainActivity.cs" />
|
||||
|
||||
@@ -124,6 +124,7 @@ namespace Bit.Android
|
||||
.RegisterType<IPasswordGenerationService, PasswordGenerationService>(new ContainerControlledLifetimeManager())
|
||||
.RegisterType<IReflectionService, ReflectionService>(new ContainerControlledLifetimeManager())
|
||||
.RegisterType<ILockService, LockService>(new ContainerControlledLifetimeManager())
|
||||
.RegisterType<IAppInfoService, AppInfoService>(new ContainerControlledLifetimeManager())
|
||||
// Repositories
|
||||
.RegisterType<IFolderRepository, FolderRepository>(new ContainerControlledLifetimeManager())
|
||||
.RegisterType<IFolderApiRepository, FolderApiRepository>(new ContainerControlledLifetimeManager())
|
||||
|
||||
14
src/Android/Services/AppInfoService.cs
Normal file
14
src/Android/Services/AppInfoService.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user