Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Dec 26, 2024
1 parent 2b8a19b commit fb95ec7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
//-:cnd:noEmit
//+:cnd:noEmit

//#if (framework == 'net9.0')
using Maui.AppStores;
//#endif

namespace Boilerplate.Client.Maui.Components.Pages;

Expand All @@ -10,24 +14,27 @@ public partial class AboutPage
protected override string? Subtitle => string.Empty;


private string oem = default!;
private string appName = default!;
private string appVersion = default!;
private string processId = default!;
private string platform = default!;
private string webView = default!;
private string oem = default!;
private string platform = default!;
private string processId = default!;
private string appVersion = default!;

protected async override Task OnInitAsync()
{
// You have direct access to the Android, iOS, macOS, and Windows SDK features along with the ability to
// call third-party Java, Kotlin, Swift, and Objective-C libraries.
// https://stackoverflow.com/a/2941199/2720104
appName = AppInfo.Name;
appVersion = telemetryContext.AppVersion!;
platform = telemetryContext.Platform!;
webView = telemetryContext.WebView!;
processId = Environment.ProcessId.ToString();
platform = telemetryContext.Platform!;
oem = DeviceInfo.Current.Manufacturer;
appVersion = telemetryContext.AppVersion!;
processId = Environment.ProcessId.ToString();
//#if (framework == 'net9.0')
appVersion += $" Latest: {await AppStoreInfo.Current.GetLatestVersionAsync(CurrentCancellationToken)}";
//#endif

await base.OnInitAsync();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
//#endif
using Boilerplate.Client.Core.Styles;
using Boilerplate.Client.Maui.Services;
#if iOS || Mac
using UIKit;
using WebKit;
using Foundation;
#endif
//#if (framework == 'net9.0')
using Maui.AppStores;
using Maui.InAppReviews;
using Maui.Android.InAppUpdates;
//#endif
//-:cnd:noEmit
#if iOS || Mac
using UIKit;
using WebKit;
using Foundation;
#endif

namespace Boilerplate.Client.Maui;

Expand Down

0 comments on commit fb95ec7

Please sign in to comment.