and android
This commit is contained in:
parent
e012110b00
commit
6254985c9b
@ -37,7 +37,8 @@
|
|||||||
<EnableLLVM>false</EnableLLVM>
|
<EnableLLVM>false</EnableLLVM>
|
||||||
<AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
|
<AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
|
||||||
<BundleAssemblies>false</BundleAssemblies>
|
<BundleAssemblies>false</BundleAssemblies>
|
||||||
<AndroidSupportedAbis>x86_64</AndroidSupportedAbis>
|
<AndroidSupportedAbis>x86_64;x86</AndroidSupportedAbis>
|
||||||
|
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
namespace Billing.UI;
|
namespace Billing.UI
|
||||||
|
|
||||||
public static partial class Definition
|
|
||||||
{
|
{
|
||||||
|
public static partial class Definition
|
||||||
|
{
|
||||||
public static partial string GetCascadiaRegularFontFamily() => "CascadiaCode-Regular.ttf#CascadiaCode-Regular";
|
public static partial string GetCascadiaRegularFontFamily() => "CascadiaCode-Regular.ttf#CascadiaCode-Regular";
|
||||||
public static partial string GetCascadiaBoldFontFamily() => "CascadiaCode-Bold.ttf#CascadiaCode-Bold";
|
public static partial string GetCascadiaBoldFontFamily() => "CascadiaCode-Bold.ttf#CascadiaCode-Bold";
|
||||||
public static partial string GetRobotoCondensedRegularFontFamily() => "RobotoCondensed-Regular.ttf#RobotoCondensed-Regular";
|
public static partial string GetRobotoCondensedRegularFontFamily() => "RobotoCondensed-Regular.ttf#RobotoCondensed-Regular";
|
||||||
public static partial string GetRobotoCondensedBoldFontFamily() => "RobotoCondensed-Bold.ttf#RobotoCondensed-Bold";
|
public static partial string GetRobotoCondensedBoldFontFamily() => "RobotoCondensed-Bold.ttf#RobotoCondensed-Bold";
|
||||||
|
}
|
||||||
}
|
}
|
@ -8,10 +8,10 @@ using Xamarin.Forms.Platform.Android;
|
|||||||
|
|
||||||
[assembly: ResolutionGroupName("Org.Tsanie")]
|
[assembly: ResolutionGroupName("Org.Tsanie")]
|
||||||
[assembly: ExportEffect(typeof(ShadowEffectPlatform), nameof(ShadowEffect))]
|
[assembly: ExportEffect(typeof(ShadowEffectPlatform), nameof(ShadowEffect))]
|
||||||
namespace Billing.Droid.Effects;
|
namespace Billing.Droid.Effects
|
||||||
|
|
||||||
public class ShadowEffectPlatform : PlatformEffect
|
|
||||||
{
|
{
|
||||||
|
public class ShadowEffectPlatform : PlatformEffect
|
||||||
|
{
|
||||||
protected override void OnAttached()
|
protected override void OnAttached()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -30,4 +30,5 @@ public class ShadowEffectPlatform : PlatformEffect
|
|||||||
protected override void OnDetached()
|
protected override void OnDetached()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
@ -3,17 +3,17 @@ using Android.Content.PM;
|
|||||||
using Android.Runtime;
|
using Android.Runtime;
|
||||||
using Android.OS;
|
using Android.OS;
|
||||||
|
|
||||||
namespace Billing.Droid;
|
namespace Billing.Droid
|
||||||
|
{
|
||||||
[Activity(
|
[Activity(
|
||||||
Label = "Billing",
|
Label = "Billing",
|
||||||
Icon = "@mipmap/icon",
|
Icon = "@mipmap/icon",
|
||||||
RoundIcon = "@mipmap/icon_round",
|
RoundIcon = "@mipmap/icon_round",
|
||||||
Theme = "@style/MainTheme",
|
Theme = "@style/MainTheme",
|
||||||
MainLauncher = true,
|
MainLauncher = true,
|
||||||
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize )]
|
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize)]
|
||||||
public class MainActivity : Xamarin.Forms.Platform.Android.FormsAppCompatActivity
|
public class MainActivity : Xamarin.Forms.Platform.Android.FormsAppCompatActivity
|
||||||
{
|
{
|
||||||
protected override void OnCreate(Bundle savedInstanceState)
|
protected override void OnCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
base.OnCreate(savedInstanceState);
|
base.OnCreate(savedInstanceState);
|
||||||
@ -28,4 +28,5 @@ public class MainActivity : Xamarin.Forms.Platform.Android.FormsAppCompatActivit
|
|||||||
|
|
||||||
base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
|
base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
@ -2,10 +2,10 @@
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
namespace Billing.Languages;
|
namespace Billing.Languages
|
||||||
|
|
||||||
public partial class PlatformCulture
|
|
||||||
{
|
{
|
||||||
|
public partial class PlatformCulture
|
||||||
|
{
|
||||||
public partial string GetNamespace()
|
public partial string GetNamespace()
|
||||||
{
|
{
|
||||||
return typeof(MainActivity).Namespace;
|
return typeof(MainActivity).Namespace;
|
||||||
@ -63,4 +63,5 @@ public partial class PlatformCulture
|
|||||||
Helper.Debug($"Android Language: {androidLanguage}, .NET Language/Locale: {netLanguage}");
|
Helper.Debug($"Android Language: {androidLanguage}, .NET Language/Locale: {netLanguage}");
|
||||||
return netLanguage;
|
return netLanguage;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
@ -5,10 +5,10 @@ using Xamarin.Forms;
|
|||||||
using Xamarin.Forms.Platform.Android;
|
using Xamarin.Forms.Platform.Android;
|
||||||
|
|
||||||
[assembly: ExportRenderer(typeof(LongPressButton), typeof(LongPressButtonRenderer))]
|
[assembly: ExportRenderer(typeof(LongPressButton), typeof(LongPressButtonRenderer))]
|
||||||
namespace Billing.Droid.Renderers;
|
namespace Billing.Droid.Renderers
|
||||||
|
|
||||||
public class LongPressButtonRenderer : ButtonRenderer
|
|
||||||
{
|
{
|
||||||
|
public class LongPressButtonRenderer : ButtonRenderer
|
||||||
|
{
|
||||||
public LongPressButtonRenderer(Context context) : base(context)
|
public LongPressButtonRenderer(Context context) : base(context)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -30,4 +30,5 @@ public class LongPressButtonRenderer : ButtonRenderer
|
|||||||
button.TriggerLongPress();
|
button.TriggerLongPress();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
@ -6,10 +6,10 @@ using Xamarin.Forms;
|
|||||||
using Xamarin.Forms.Platform.Android;
|
using Xamarin.Forms.Platform.Android;
|
||||||
|
|
||||||
[assembly: ExportRenderer(typeof(OptionEntry), typeof(OptionEntryRenderer))]
|
[assembly: ExportRenderer(typeof(OptionEntry), typeof(OptionEntryRenderer))]
|
||||||
namespace Billing.Droid.Renderers;
|
namespace Billing.Droid.Renderers
|
||||||
|
|
||||||
public class OptionEntryRenderer : EntryRenderer
|
|
||||||
{
|
{
|
||||||
|
public class OptionEntryRenderer : EntryRenderer
|
||||||
|
{
|
||||||
public OptionEntryRenderer(Context context) : base(context)
|
public OptionEntryRenderer(Context context) : base(context)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -24,4 +24,5 @@ public class OptionEntryRenderer : EntryRenderer
|
|||||||
Control.SetBackground(drawable);
|
Control.SetBackground(drawable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
@ -6,10 +6,10 @@ using Xamarin.Forms;
|
|||||||
using Xamarin.Forms.Platform.Android;
|
using Xamarin.Forms.Platform.Android;
|
||||||
|
|
||||||
[assembly: ExportRenderer(typeof(TintImage), typeof(TintImageRenderer))]
|
[assembly: ExportRenderer(typeof(TintImage), typeof(TintImageRenderer))]
|
||||||
namespace Billing.Droid.Renderers;
|
namespace Billing.Droid.Renderers
|
||||||
|
|
||||||
public class TintImageRenderer : ImageRenderer
|
|
||||||
{
|
{
|
||||||
|
public class TintImageRenderer : ImageRenderer
|
||||||
|
{
|
||||||
public TintImageRenderer(Context context) : base(context)
|
public TintImageRenderer(Context context) : base(context)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -33,4 +33,5 @@ public class TintImageRenderer : ImageRenderer
|
|||||||
Control.Drawable.SetTint(image.PrimaryColor?.ToAndroid() ?? 0);
|
Control.Drawable.SetTint(image.PrimaryColor?.ToAndroid() ?? 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
@ -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
|
public partial class Resource
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user