Archived
1
0

Refactored core

UI navigation framework

Related Work Items: #408, #414, #416
This commit is contained in:
Michael Gordeev
2020-06-15 15:46:38 +03:00
parent c58d846057
commit 787a6e9f48
72 changed files with 2002 additions and 1227 deletions
+3 -6
View File
@@ -18,18 +18,15 @@ namespace FoxTube.Utils
public static NativeAdsManagerV2 AdsManager => new NativeAdsManagerV2(ApplicationId, AdsId);
static AddonsInterop() =>
UpdateStoreState();
public static async void UpdateStoreState()
public static async Task<bool> UpdateProPurchasedState()
{
StoreProductQueryResult requset = await StoreContext.GetDefault().GetAssociatedStoreProductsAsync(new[] { "Durable" });
if (requset.Products[ProProductId].IsInUserCollection)
return;
return AdsDisabled = true;
Price = requset.Products[ProProductId].Price.FormattedPrice;
AdsDisabled = false;
return AdsDisabled = false;
}
public static async Task<bool> PurchaseApp()