and android

This commit is contained in:
Tsanie Lily 2022-02-25 13:53:52 +08:00
parent e012110b00
commit 6254985c9b
9 changed files with 160 additions and 152 deletions

View File

@ -37,7 +37,8 @@
<EnableLLVM>false</EnableLLVM>
<AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
<BundleAssemblies>false</BundleAssemblies>
<AndroidSupportedAbis>x86_64</AndroidSupportedAbis>
<AndroidSupportedAbis>x86_64;x86</AndroidSupportedAbis>
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>

View File

@ -1,5 +1,5 @@
namespace Billing.UI;
namespace Billing.UI
{
public static partial class Definition
{
public static partial string GetCascadiaRegularFontFamily() => "CascadiaCode-Regular.ttf#CascadiaCode-Regular";
@ -7,3 +7,4 @@ public static partial class Definition
public static partial string GetRobotoCondensedRegularFontFamily() => "RobotoCondensed-Regular.ttf#RobotoCondensed-Regular";
public static partial string GetRobotoCondensedBoldFontFamily() => "RobotoCondensed-Bold.ttf#RobotoCondensed-Bold";
}
}

View File

@ -8,8 +8,8 @@ using Xamarin.Forms.Platform.Android;
[assembly: ResolutionGroupName("Org.Tsanie")]
[assembly: ExportEffect(typeof(ShadowEffectPlatform), nameof(ShadowEffect))]
namespace Billing.Droid.Effects;
namespace Billing.Droid.Effects
{
public class ShadowEffectPlatform : PlatformEffect
{
protected override void OnAttached()
@ -31,3 +31,4 @@ public class ShadowEffectPlatform : PlatformEffect
{
}
}
}

View File

@ -3,8 +3,8 @@ using Android.Content.PM;
using Android.Runtime;
using Android.OS;
namespace Billing.Droid;
namespace Billing.Droid
{
[Activity(
Label = "Billing",
Icon = "@mipmap/icon",
@ -29,3 +29,4 @@ public class MainActivity : Xamarin.Forms.Platform.Android.FormsAppCompatActivit
base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
}
}
}

View File

@ -2,8 +2,8 @@
using System.Globalization;
using System.Threading;
namespace Billing.Languages;
namespace Billing.Languages
{
public partial class PlatformCulture
{
public partial string GetNamespace()
@ -64,3 +64,4 @@ public partial class PlatformCulture
return netLanguage;
}
}
}

View File

@ -5,8 +5,8 @@ using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(LongPressButton), typeof(LongPressButtonRenderer))]
namespace Billing.Droid.Renderers;
namespace Billing.Droid.Renderers
{
public class LongPressButtonRenderer : ButtonRenderer
{
public LongPressButtonRenderer(Context context) : base(context)
@ -31,3 +31,4 @@ public class LongPressButtonRenderer : ButtonRenderer
}
}
}
}

View File

@ -6,8 +6,8 @@ using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(OptionEntry), typeof(OptionEntryRenderer))]
namespace Billing.Droid.Renderers;
namespace Billing.Droid.Renderers
{
public class OptionEntryRenderer : EntryRenderer
{
public OptionEntryRenderer(Context context) : base(context)
@ -25,3 +25,4 @@ public class OptionEntryRenderer : EntryRenderer
}
}
}
}

View File

@ -6,8 +6,8 @@ using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(TintImage), typeof(TintImageRenderer))]
namespace Billing.Droid.Renderers;
namespace Billing.Droid.Renderers
{
public class TintImageRenderer : ImageRenderer
{
public TintImageRenderer(Context context) : base(context)
@ -34,3 +34,4 @@ public class TintImageRenderer : ImageRenderer
}
}
}
}

View File

@ -14,7 +14,7 @@ namespace Billing.Droid
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "12.2.0.155")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")]
public partial class Resource
{