Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Commit 242c8da

Browse files
committed
Linker safe.
1 parent 8a8713d commit 242c8da

File tree

5 files changed

+28
-6
lines changed

5 files changed

+28
-6
lines changed

XAML/ResourceDictionaries/Droid/ResourceDictionaryDemo.Droid.csproj

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
<WarningLevel>4</WarningLevel>
3838
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
3939
<ConsolePause>false</ConsolePause>
40+
<AndroidSupportedAbis>armeabi-v7a;arm64-v8a;x86;x86_64</AndroidSupportedAbis>
41+
<AndroidLinkMode>Full</AndroidLinkMode>
4042
</PropertyGroup>
4143
<ItemGroup>
4244
<PackageReference Include="Xamarin.Forms" Version="4.8.0.1269" />
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
using Xamarin.Forms.Xaml;
1+
using ResourceDictionaryDemo;
2+
using Xamarin.Forms.Xaml;
23

3-
[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
4+
[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
5+
[assembly: Preserve(AllMembers = true)]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System;
2+
3+
namespace ResourceDictionaryDemo
4+
{
5+
[AttributeUsage(AttributeTargets.All)]
6+
public class PreserveAttribute : Attribute
7+
{
8+
public bool AllMembers;
9+
public bool Conditional;
10+
11+
public PreserveAttribute()
12+
{
13+
}
14+
15+
public PreserveAttribute(bool allMembers, bool conditional)
16+
{
17+
AllMembers = allMembers;
18+
Conditional = conditional;
19+
}
20+
}
21+
}

XAML/ResourceDictionaries/ResourceDictionaryDemo/ResourceDictionaryDemo.csproj

-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
<EmbeddedResource Update="ListDataPage.xaml">
2323
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
2424
</EmbeddedResource>
25-
<EmbeddedResource Update="MyResourceDictionary.xaml">
26-
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
27-
</EmbeddedResource>
2825
</ItemGroup>
2926

3027
</Project>

XAML/ResourceDictionaries/iOS/ResourceDictionaryDemo.iOS.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<WarningLevel>4</WarningLevel>
5050
<ConsolePause>false</ConsolePause>
5151
<MtouchArch>x86_64</MtouchArch>
52-
<MtouchLink>None</MtouchLink>
52+
<MtouchLink>Full</MtouchLink>
5353
<CodesignKey>iPhone Developer</CodesignKey>
5454
<MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
5555
</PropertyGroup>

0 commit comments

Comments
 (0)