Skip to content

Commit b73147e

Browse files
[android] bring back $(AndroidLinkResources) by default (#10153)
This reverts commit af8e7ce. Thanks to: dotnet/android@d521ac0 `int[]` fields now work in .NET 7, when you enable `$(AndroidLinkResources)`. Our thought is to try this by default in .NET 7 RC 2. Different in app size: > apkdiff -f .\before.apk .\after.apk Size difference in bytes ([*1] apk1 only, [*2] apk2 only): + 8 lib/arm64-v8a/libaot-Microsoft.Maui.Controls.Xaml.dll.so - 608 lib/arm64-v8a/libaot-Microsoft.Maui.Controls.Compatibility.dll.so - 3,448 lib/arm64-v8a/libaot-Microsoft.Maui.Controls.dll.so - 4,424 lib/arm64-v8a/libaot-Microsoft.Maui.dll.so - 5,656 lib/arm64-v8a/libaot-Microsoft.NetConf2021.Maui.dll.so - 129,617 assemblies/assemblies.blob Summary: - 129,617 Other entries -1.03% (of 12,605,899) + 0 Dalvik executables 0.00% (of 11,756,376) - 14,128 Shared libraries -0.10% (of 14,849,096) - 131,072 Package size difference -0.64% (of 20,380,049)
1 parent b6c9ef5 commit b73147e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.nuspec/Microsoft.Maui.Controls.targets

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<SkipMicrosoftUIXamlCheckTargetPlatformVersion Condition="'$(SkipMicrosoftUIXamlCheckTargetPlatformVersion)'==''">true</SkipMicrosoftUIXamlCheckTargetPlatformVersion>
1212
<SkipMicrosoftUIXamlCheckTargetPlatformVersion Condition="'$(SkipMicrosoftUIXamlCheckTargetPlatformVersion)'=='false'"></SkipMicrosoftUIXamlCheckTargetPlatformVersion>
1313
<AndroidUseDefaultAotProfile Condition="'$(AndroidEnableProfiledAot)' == 'true' and '$(AndroidUseDefaultAotProfile)' == ''">false</AndroidUseDefaultAotProfile>
14+
<AndroidLinkResources Condition=" '$(AndroidLinkResources)' == '' And '$(Configuration)' == 'Release' ">True</AndroidLinkResources>
1415
</PropertyGroup>
1516

1617
<ItemGroup>

0 commit comments

Comments
 (0)