Skip to content

Commit

Permalink
Updated to preview14
Browse files Browse the repository at this point in the history
  • Loading branch information
shugaoye committed Mar 20, 2022
1 parent 367aeed commit 4c0cd6b
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 54 deletions.
7 changes: 3 additions & 4 deletions PassXYZ.Vault/App.xaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
<?xml version = "1.0" encoding = "UTF-8" ?>
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:windows="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific;assembly=Microsoft.Maui.Controls"
xmlns:local="clr-namespace:PassXYZ.Vault"
x:Class="PassXYZ.Vault.App"
windows:Application.ImageDirectory="Assets">
x:Class="PassXYZ.Vault.App">
<Application.Resources>
<ResourceDictionary>

Expand Down
1 change: 1 addition & 0 deletions PassXYZ.Vault/MainPage.xaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PassXYZ.Vault.MainPage"
Expand Down
12 changes: 9 additions & 3 deletions PassXYZ.Vault/PassXYZ.Vault.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>

<!-- Display name -->
<ApplicationTitle>PassXYZ.Vault</ApplicationTitle>

<!-- App Identifier -->
<ApplicationId>com.companyname.passxyz.vault</ApplicationId>
<ApplicationId>com.passxyz.vault2</ApplicationId>
<ApplicationId Condition="$(TargetFramework.Contains('-windows'))">692C67EC-C074-4A7A-8E1D-2E614FBBC7B0</ApplicationId>

<!-- Versions -->
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>

<!-- Required for C# Hot Reload -->
Expand All @@ -34,13 +36,17 @@
<MauiIcon Include="Resources\appicon.svg" ForegroundFile="Resources\appiconfg.svg" Color="#512BD4" />

<!-- Splash Screen -->
<MauiSplashScreen Include="Resources\appiconfg.svg" Color="#512BD4" />
<MauiSplashScreen Include="Resources\appiconfg.svg" Color="#512BD4" BaseSize="128,128" />

<!-- Images -->
<MauiImage Include="Resources\Images\*" />
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />

<!-- Custom Fonts -->
<MauiFont Include="Resources\Fonts\*" />

<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>

<ItemGroup Condition="$(TargetFramework.Contains('-windows'))">
Expand Down
12 changes: 0 additions & 12 deletions PassXYZ.Vault/Platforms/Android/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,4 @@ namespace PassXYZ.Vault;
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize)]
public class MainActivity : MauiAppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
Platform.Init(this, savedInstanceState);
}

public override void OnRequestPermissionsResult(int requestCode, string[] permissions, Permission[] grantResults)
{
Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);

base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
}
}
7 changes: 0 additions & 7 deletions PassXYZ.Vault/Platforms/Windows/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,5 @@ public App()
}

protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();

protected override void OnLaunched(LaunchActivatedEventArgs args)
{
base.OnLaunched(args);

Platform.OnLaunched(args);
}
}

33 changes: 5 additions & 28 deletions PassXYZ.Vault/Platforms/Windows/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap rescap">

<Identity
Name="8606B3B5-C03C-41D7-825F-B33718CF791C"
Publisher="CN=User Name"
Version="1.0.0.0" />
<Identity Publisher="CN=PassXYZ" />

<Properties>
<DisplayName>PassXYZ.Vault</DisplayName>
<PublisherDisplayName>Microsoft</PublisherDisplayName>
<Logo>Assets\appiconStoreLogo.png</Logo>
<PublisherDisplayName>PassXYZ</PublisherDisplayName>
</Properties>

<Dependencies>
Expand All @@ -23,30 +18,12 @@
</Dependencies>

<Resources>
<Resource Language="x-generate"/>
<Resource Language="x-generate" />
</Resources>

<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="$targetentrypoint$">
<uap:VisualElements
DisplayName="PassXYZ.Vault"
Description="PassXYZ.Vault"
BackgroundColor="transparent"
Square150x150Logo="Assets\appiconMediumTile.png"
Square44x44Logo="Assets\appiconLogo.png">
<uap:DefaultTile
Wide310x150Logo="Assets\appiconWideTile.png"
Square71x71Logo="Assets\appiconSmallTile.png"
Square310x310Logo="Assets\appiconLargeTile.png"
ShortName="PassXYZ.Vault">
<uap:ShowNameOnTiles>
<uap:ShowOn Tile="square150x150Logo"/>
<uap:ShowOn Tile="wide310x150Logo"/>
</uap:ShowNameOnTiles>
</uap:DefaultTile >
</uap:VisualElements>
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="$targetentrypoint$">
<uap:VisualElements />
</Application>
</Applications>

Expand Down
Binary file modified PassXYZ.Vault/Resources/Fonts/OpenSans-Regular.ttf
Binary file not shown.

0 comments on commit 4c0cd6b

Please sign in to comment.