Skip to content

Commit b376452

Browse files
committed
Publishing 0.1.0-pre1
1 parent 4d12234 commit b376452

25 files changed

+53
-13
lines changed

CSharpMath.Forms.Example/CSharpMath.Forms.Example.Android/CSharpMath.Forms.Example.Android.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,19 @@
3434
<BundleAssemblies>false</BundleAssemblies>
3535
</PropertyGroup>
3636
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
37-
<DebugSymbols>true</DebugSymbols>
37+
<DebugSymbols>false</DebugSymbols>
3838
<DebugType>pdbonly</DebugType>
3939
<Optimize>true</Optimize>
4040
<OutputPath>bin\Release</OutputPath>
4141
<ErrorReport>prompt</ErrorReport>
4242
<WarningLevel>4</WarningLevel>
4343
<AndroidManagedSymbols>true</AndroidManagedSymbols>
4444
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
45+
<AotAssemblies>false</AotAssemblies>
46+
<EnableLLVM>false</EnableLLVM>
47+
<BundleAssemblies>false</BundleAssemblies>
48+
<AndroidLinkMode>Full</AndroidLinkMode>
49+
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
4550
</PropertyGroup>
4651
<ItemGroup>
4752
<Reference Include="Mono.Android" />

CSharpMath.Forms.Example/CSharpMath.Forms.Example.UWP/CSharpMath.Forms.Example.UWP.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
<ErrorReport>prompt</ErrorReport>
8989
<Prefer32Bit>true</Prefer32Bit>
9090
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
91+
<EnableGatekeeperAnalysis>true</EnableGatekeeperAnalysis>
9192
</PropertyGroup>
9293
<ItemGroup>
9394
<Compile Include="App.xaml.cs">

CSharpMath.Forms.Example/CSharpMath.Forms.Example.iOS/CSharpMath.Forms.Example.iOS.csproj

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
<MtouchDebug>true</MtouchDebug>
5353
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
5454
<CodesignProvision />
55+
<MtouchLink>None</MtouchLink>
56+
<MtouchFloat32>true</MtouchFloat32>
5557
</PropertyGroup>
5658
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
5759
<DebugType>none</DebugType>
@@ -63,6 +65,9 @@
6365
<ConsolePause>false</ConsolePause>
6466
<CodesignKey>iPhone Developer</CodesignKey>
6567
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
68+
<CodesignProvision />
69+
<MtouchLink>Full</MtouchLink>
70+
<MtouchFloat32>true</MtouchFloat32>
6671
</PropertyGroup>
6772
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
6873
<DebugType>none</DebugType>
@@ -73,9 +78,12 @@
7378
<ConsolePause>False</ConsolePause>
7479
<MtouchArch>ARM64</MtouchArch>
7580
<BuildIpa>True</BuildIpa>
76-
<CodesignProvision>Automatic:AdHoc</CodesignProvision>
77-
<CodesignKey>iPhone Distribution</CodesignKey>
81+
<CodesignProvision>
82+
</CodesignProvision>
83+
<CodesignKey>iPhone Developer</CodesignKey>
7884
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
85+
<MtouchLink>Full</MtouchLink>
86+
<MtouchFloat32>true</MtouchFloat32>
7987
</PropertyGroup>
8088
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' ">
8189
<DebugType>none</DebugType>
@@ -85,16 +93,24 @@
8593
<WarningLevel>4</WarningLevel>
8694
<ConsolePause>False</ConsolePause>
8795
<MtouchArch>ARM64</MtouchArch>
88-
<CodesignProvision>Automatic:AppStore</CodesignProvision>
89-
<CodesignKey>iPhone Distribution</CodesignKey>
96+
<CodesignProvision>
97+
</CodesignProvision>
98+
<CodesignKey>iPhone Developer</CodesignKey>
9099
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
100+
<MtouchLink>Full</MtouchLink>
101+
<MtouchFloat32>true</MtouchFloat32>
102+
</PropertyGroup>
103+
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Default' ">
104+
<AppExtensionDebugBundleId />
91105
</PropertyGroup>
92106
<ItemGroup>
93107
<Compile Include="Main.cs" />
94108
<Compile Include="AppDelegate.cs" />
95109
<None Include="Entitlements.plist" />
96110
<None Include="Info.plist" />
97111
<Compile Include="Properties\AssemblyInfo.cs" />
112+
<ITunesArtwork Include="iTunesArtwork" />
113+
<ITunesArtwork Include="iTunesArtwork%402x" />
98114
</ItemGroup>
99115
<ItemGroup>
100116
<ImageAsset Include="Assets.xcassets\LaunchImages.launchimage\Contents.json">

CSharpMath.Forms.Example/CSharpMath.Forms.Example.iOS/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
<key>MinimumOSVersion</key>
2424
<string>8.0</string>
2525
<key>CFBundleDisplayName</key>
26-
<string>CSharpMath.Forms.Example</string>
26+
<string>CSharpMath.Forms.Example.iOS</string>
2727
<key>CFBundleIdentifier</key>
28-
<string>com.companyname.CSharpMath.Forms.Example</string>
28+
<string>CSharpMath.Forms.Example</string>
2929
<key>CFBundleVersion</key>
3030
<string>1.0</string>
3131
<key>UILaunchStoryboardName</key>
Binary file not shown.
Loading
Loading
Binary file not shown.

CSharpMath.Forms.Example/CSharpMath.Forms.Example/CustomExamplePage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
xmlns:local="clr-namespace:CSharpMath.Forms;assembly=CSharpMath.Forms"
55
x:Class="CSharpMath.Forms.Example.CustomExamplePage"
6-
Title="Enter your own example">
6+
Title="Try">
77
<StackLayout>
88
<StackLayout Orientation="Horizontal" BackgroundColor="LightGray">
99
<Entry x:Name="Entry" HorizontalOptions="FillAndExpand"/>

CSharpMath.Forms.Example/CSharpMath.Forms.Example/CustomExamplePage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace CSharpMath.Forms.Example
1212
{
13-
[XamlCompilation(XamlCompilationOptions.Compile)]
13+
[XamlCompilation(XamlCompilationOptions.Compile), Android.Runtime.Preserve(AllMembers = true), Foundation.Preserve(AllMembers = true)]
1414
public partial class CustomExamplePage : ContentPage
1515
{
1616
Dictionary<string, string> dict = ExamplesPage.AllConstants.ToDictionary(info => info.Name, info => (string)info.GetRawConstantValue());

CSharpMath.Forms.Example/CSharpMath.Forms.Example/ExamplePage.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
xmlns:local="clr-namespace:CSharpMath.Forms;assembly=CSharpMath.Forms"
55
x:Class="CSharpMath.Forms.Example.ExamplePage"
6-
Title="Select an example">
6+
Title="Select">
77
<StackLayout>
88
<StackLayout Orientation="Horizontal" BackgroundColor="LightGray">
99
<Picker x:Name="Picker" HorizontalOptions="FillAndExpand"/>
1010
<Picker x:Name="Size" HorizontalOptions="FillAndExpand"/>
1111
</StackLayout>
1212
<Label x:Name="Label"/>
13-
<local:FormsMathView x:Name="View" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"/>
13+
<local:FormsMathView x:Name="View" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" EnableTouchEvents="True"/>
1414
</StackLayout>
1515
</ContentPage>

CSharpMath.Forms.Example/CSharpMath.Forms.Example/ExamplesPage.xaml.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,26 @@
55
using System.Text;
66
using System.Threading.Tasks;
77
using Xamarin.Forms;
8+
using Xamarin.Forms.Xaml;
9+
10+
//For the Android linker
11+
namespace Android.Runtime {
12+
public sealed class PreserveAttribute : Attribute {
13+
public bool AllMembers;
14+
public bool Conditional;
15+
}
16+
}
17+
18+
//For the iOS linker
19+
namespace Foundation {
20+
public sealed class PreserveAttribute : Attribute {
21+
public bool AllMembers;
22+
public bool Conditional;
23+
}
24+
}
825

926
namespace CSharpMath.Forms.Example {
27+
[XamlCompilation(XamlCompilationOptions.Compile), Android.Runtime.Preserve(AllMembers = true), Foundation.Preserve(AllMembers = true)]
1028
public partial class ExamplesPage : ContentPage {
1129
public const string Numbers = @"0123456789";
1230
public const string Alphabets = @"abcdefghijklmnopqrstuvwxyz";

CSharpMath.Forms.Example/CSharpMath.Forms.Example/MoreExamplesPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
x:Class="CSharpMath.Forms.Example.MoreExamplesPage"
5-
Title="More examples">
5+
Title="Even more">
66
<ScrollView>
77
<StackLayout x:Name="Stack"/>
88
</ScrollView>

0 commit comments

Comments
 (0)