|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk.Razor"> |
2 | 2 |
|
3 | 3 | <PropertyGroup> |
4 | | - <!-- Enable Central Package Management to leverage conditional versioning --> |
5 | | - <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> |
| 4 | + <!-- Enable Central Package Management to leverage conditional versioning --> |
| 5 | + <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> |
6 | 6 |
|
7 | 7 | <TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst;net10.0-android;net10.0-ios;net10.0-maccatalyst</TargetFrameworks> |
8 | 8 | <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0;net10.0-windows10.0.19041.0</TargetFrameworks> |
|
14 | 14 | When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular <RuntimeIdentifier>. |
15 | 15 | The Mac App Store will NOT accept apps with ONLY maccatalyst-arm64 indicated; |
16 | 16 | either BOTH runtimes must be indicated or ONLY macatalyst-x64. --> |
17 | | - <!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> --> |
| 17 | + <!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> --> |
18 | 18 |
|
19 | | - <OutputType>Exe</OutputType> |
| 19 | + <OutputType>Exe</OutputType> |
20 | 20 | <RootNamespace>Blazing.Mvvm.Sample.HybridMaui</RootNamespace> |
21 | 21 | <UseMaui>true</UseMaui> |
22 | 22 | <SingleProject>true</SingleProject> |
|
43 | 43 | <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion> |
44 | 44 | </PropertyGroup> |
45 | 45 |
|
| 46 | + <!-- Android-specific properties to fix assembly compression issue --> |
| 47 | + <PropertyGroup Condition="$(TargetFramework.Contains('-android'))"> |
| 48 | + <!-- Disable Fast Deployment to avoid assembly compression issues --> |
| 49 | + <EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk> |
| 50 | + <!-- Ensure assemblies are stored, not compressed --> |
| 51 | + <AndroidUseAssemblyStore>false</AndroidUseAssemblyStore> |
| 52 | + <!-- Enable AOT for better Android performance and prevent ANR --> |
| 53 | + <RunAOTCompilation Condition="'$(Configuration)' == 'Release'">true</RunAOTCompilation> |
| 54 | + <!-- Increase timeout for app startup --> |
| 55 | + <AndroidEnableProfiledAot>false</AndroidEnableProfiledAot> |
| 56 | + <!-- Prevent directory cleanup errors during multi-targeted builds --> |
| 57 | + <AndroidCreatePackagePerAbi>false</AndroidCreatePackagePerAbi> |
| 58 | + </PropertyGroup> |
| 59 | + |
46 | 60 | <ItemGroup> |
47 | 61 | <!-- App Icon --> |
48 | 62 | <MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" /> |
|
66 | 80 | <PackageReference Include="Microsoft.Maui.Controls" /> |
67 | 81 | <PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" /> |
68 | 82 | <PackageReference Include="Microsoft.Extensions.Logging.Debug" /> |
| 83 | + <PackageReference Include="CommunityToolkit.Mvvm" /> |
69 | 84 | </ItemGroup> |
70 | 85 |
|
71 | 86 | <ItemGroup> |
| 87 | + <ProjectReference Include="..\..\Blazing.Mvvm.Base\Blazing.Mvvm.Base.csproj" /> |
72 | 88 | <ProjectReference Include="..\..\Blazing.Mvvm\Blazing.Mvvm.csproj" /> |
73 | 89 | </ItemGroup> |
74 | 90 |
|
|
0 commit comments