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