Skip to content

Commit

Permalink
Merge pull request #102 from Microsoft/feature/forms_link_all
Browse files Browse the repository at this point in the history
Test "Link All" in release for our forms apps
  • Loading branch information
guperrot authored Dec 16, 2016
2 parents 34952f1 + ebd33c0 commit ac13a4a
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<WarningLevel>4</WarningLevel>
<AndroidManagedSymbols>true</AndroidManagedSymbols>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
<AndroidLinkMode>Full</AndroidLinkMode>
<AndroidSupportedAbis>armeabi-v7a;armeabi;x86;arm64-v8a;x86_64</AndroidSupportedAbis>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
<DependentUpon>PropertiesContentPage.xaml</DependentUpon>
</Compile>
<Compile Include="FakeService.cs" />
<Compile Include="PreserveAttribute.cs" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public Property(string propertyName, string propertyValue)
public string Value;
}

[Android.Runtime.Preserve(AllMembers = true)]
public partial class AnalyticsContentPage : ContentPage
{
List<Property> EventProperties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace Contoso.Forms.Demo
{
[Android.Runtime.Preserve(AllMembers = true)]
public partial class CrashesContentPage
{
public CrashesContentPage()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace Contoso.Forms.Demo
{
[Android.Runtime.Preserve(AllMembers = true)]
public partial class MobileCenterContentPage : ContentPage
{
public MobileCenterContentPage()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace Android.Runtime
{
public sealed class PreserveAttribute : System.Attribute
{
public bool AllMembers;
public bool Conditional;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<AndroidUseLatestPlatformSdk>true</AndroidUseLatestPlatformSdk>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -27,9 +26,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidLinkMode>None</AndroidLinkMode>
<EmbedAssembliesIntoApk>false</EmbedAssembliesIntoApk>
<AndroidSupportedAbis>arm64-v8a;armeabi;armeabi-v7a;x86;x86_64</AndroidSupportedAbis>
<AndroidUseSharedRuntime>true</AndroidUseSharedRuntime>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -39,8 +36,9 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidManagedSymbols>true</AndroidManagedSymbols>
<AndroidSupportedAbis>armeabi-v7a;armeabi;x86;arm64-v8a;x86_64</AndroidSupportedAbis>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
<AndroidSupportedAbis>armeabi-v7a;armeabi;x86;arm64-v8a;x86_64</AndroidSupportedAbis>
<AndroidLinkMode>Full</AndroidLinkMode>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<CodesignKey>iPhone Developer</CodesignKey>
<MtouchUseSGen>true</MtouchUseSGen>
<MtouchUseRefCounting>true</MtouchUseRefCounting>
<MtouchLink>None</MtouchLink>
<MtouchLink>Full</MtouchLink>
<MtouchArch>i386</MtouchArch>
<MtouchHttpClientHandler>HttpClientHandler</MtouchHttpClientHandler>
<MtouchTlsProvider>Default</MtouchTlsProvider>
Expand Down
5 changes: 2 additions & 3 deletions Apps/Contoso.Forms.Puppet/Contoso.Forms.Puppet/Constants.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;

namespace Contoso.Forms.Puppet
namespace Contoso.Forms.Puppet
{
[Android.Runtime.Preserve(AllMembers = true)]
public static class Constants
{
public const string Verbose = "Verbose";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
<DependentUpon>PropertiesContentPage.xaml</DependentUpon>
</Compile>
<Compile Include="FakeService.cs" />
<Compile Include="PreserveAttribute.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="ModulePages\" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public Property(string propertyName, string propertyValue)
public string Value;
}

[Android.Runtime.Preserve(AllMembers = true)]
public partial class AnalyticsContentPage : ContentPage
{
List<Property> EventProperties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

namespace Contoso.Forms.Puppet
{
[Android.Runtime.Preserve(AllMembers = true)]
public partial class CrashesContentPage
{
public CrashesContentPage()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

namespace Contoso.Forms.Puppet
{
[Android.Runtime.Preserve(AllMembers = true)]
public partial class MobileCenterContentPage : ContentPage
{
// E.g., calling LogFunctions["Verbose"](tag, msg) will be
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace Android.Runtime
{
public sealed class PreserveAttribute : System.Attribute
{
public bool AllMembers;
public bool Conditional;
}
}

0 comments on commit ac13a4a

Please sign in to comment.