diff --git a/SteUp.Maui/Core/CoreModule.cs b/SteUp.Maui/Core/CoreModule.cs index 6b69bdb..0aa1b71 100644 --- a/SteUp.Maui/Core/CoreModule.cs +++ b/SteUp.Maui/Core/CoreModule.cs @@ -1,8 +1,10 @@ using Microsoft.AspNetCore.Components.Authorization; using SteUp.Maui.Core.Services; +using SteUp.Maui.Core.System; using SteUp.Maui.Core.System.Network; using SteUp.Shared.Core.Interface; using SteUp.Shared.Core.Interface.IntegryApi; +using SteUp.Shared.Core.Interface.System; using SteUp.Shared.Core.Interface.System.Network; using SteUp.Shared.Core.Services; @@ -13,6 +15,7 @@ public static class CoreModule public static void RegisterAppServices(this MauiAppBuilder builder) { builder.Services.AddSingleton(); + builder.Services.AddSingleton(); } public static void RegisterIntegryServices(this MauiAppBuilder builder) diff --git a/SteUp.Maui/Core/System/GenericSystemService.cs b/SteUp.Maui/Core/System/GenericSystemService.cs new file mode 100644 index 0000000..700b873 --- /dev/null +++ b/SteUp.Maui/Core/System/GenericSystemService.cs @@ -0,0 +1,8 @@ +using SteUp.Shared.Core.Interface.System; + +namespace SteUp.Maui.Core.System; + +public class GenericSystemService : IGenericSystemService +{ + public string GetCurrentAppVersion() => AppInfo.VersionString; +} \ No newline at end of file diff --git a/SteUp.Maui/Platforms/Android/AndroidManifest.xml b/SteUp.Maui/Platforms/Android/AndroidManifest.xml index def1282..191be83 100644 --- a/SteUp.Maui/Platforms/Android/AndroidManifest.xml +++ b/SteUp.Maui/Platforms/Android/AndroidManifest.xml @@ -1,6 +1,13 @@  - + + + + diff --git a/SteUp.Maui/Platforms/Android/MainActivity.cs b/SteUp.Maui/Platforms/Android/MainActivity.cs index f83e978..9e73182 100644 --- a/SteUp.Maui/Platforms/Android/MainActivity.cs +++ b/SteUp.Maui/Platforms/Android/MainActivity.cs @@ -1,10 +1,13 @@ using Android.App; using Android.Content.PM; -using Android.OS; namespace SteUp.Maui { - [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] + [Activity( + Theme = "@style/Maui.SplashTheme", + MainLauncher = true, + ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | + ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] public class MainActivity : MauiAppCompatActivity { } diff --git a/SteUp.Maui/Resources/AppIcon/appicon.svg b/SteUp.Maui/Resources/AppIcon/appicon.svg index 4f6f00f..f6af1ab 100644 --- a/SteUp.Maui/Resources/AppIcon/appicon.svg +++ b/SteUp.Maui/Resources/AppIcon/appicon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/SteUp.Maui/Resources/AppIcon/appiconfg.svg b/SteUp.Maui/Resources/AppIcon/appiconfg.svg index e185188..710c9d7 100644 --- a/SteUp.Maui/Resources/AppIcon/appiconfg.svg +++ b/SteUp.Maui/Resources/AppIcon/appiconfg.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/SteUp.Maui/SteUp.Maui.csproj b/SteUp.Maui/SteUp.Maui.csproj index ee60661..6068b48 100644 --- a/SteUp.Maui/SteUp.Maui.csproj +++ b/SteUp.Maui/SteUp.Maui.csproj @@ -95,10 +95,10 @@ - + - + diff --git a/SteUp.Shared/Components/Layout/NavMenu.razor b/SteUp.Shared/Components/Layout/NavMenu.razor index 5ecebcf..174c966 100644 --- a/SteUp.Shared/Components/Layout/NavMenu.razor +++ b/SteUp.Shared/Components/Layout/NavMenu.razor @@ -11,7 +11,7 @@