diff --git a/LMEMappeCatastaliApp.csproj b/LMEMappeCatastaliApp.csproj index e58d34a..d74b66f 100644 --- a/LMEMappeCatastaliApp.csproj +++ b/LMEMappeCatastaliApp.csproj @@ -28,8 +28,8 @@ it.liviomerola.lmemappecatastali.pro - 1.0.8 - 108 + 1.0.9 + 109 $(ApplicationDisplayVersion) diff --git a/PLAY_STORE_PRO_CHECKLIST.md b/PLAY_STORE_PRO_CHECKLIST.md index 00c34fa..df7144c 100644 --- a/PLAY_STORE_PRO_CHECKLIST.md +++ b/PLAY_STORE_PRO_CHECKLIST.md @@ -4,7 +4,7 @@ - Nome: LME Mappe Catastali Pro. - Package name Android: `it.liviomerola.lmemappecatastali.pro`. -- Versione corrente da pubblicare: `1.0.8` / version code `108`. +- Versione corrente da pubblicare: `1.0.9` / version code `109`. - Formato Release Android: Android App Bundle (`.aab`). - Target SDK Release: Android 16 / API 36. diff --git a/Platforms/Android/AndroidPlayBillingService.cs b/Platforms/Android/AndroidPlayBillingService.cs index cf7bc97..1617d88 100644 --- a/Platforms/Android/AndroidPlayBillingService.cs +++ b/Platforms/Android/AndroidPlayBillingService.cs @@ -209,17 +209,16 @@ public sealed class AndroidPlayBillingService : Java.Lang.Object, IPlayBillingSe throw new InvalidOperationException(ToMessage(result.Result)); } - var details = result.ProductDetailsList?.FirstOrDefault(); + // The .NET async wrapper copies the Java result into the managed + // ProductDetails property; ProductDetailsList has no Java handle here. + var details = result.ProductDetails?.FirstOrDefault(); if (details is not null) { _lastCatalogFailure = null; return details; } - var unfetched = result.UnfetchedProductList?.FirstOrDefault(); - _lastCatalogFailure = unfetched is null - ? "Google Play ha restituito un catalogo vuoto per lme_pro. Verifica account Play Store, adesione al test e origine dell'installazione." - : $"Google Play non ha caricato lme_pro (codice catalogo {unfetched.StatusCodeValue})."; + _lastCatalogFailure = "Google Play ha restituito un catalogo vuoto per lme_pro. Verifica account Play Store, adesione al test e origine dell'installazione."; return null; } diff --git a/README.md b/README.md index df06fb0..46c25ac 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ App .NET MAUI Blazor Hybrid per Android, iOS, Mac Catalyst e Windows, pensata pe Informativa privacy: [PRIVACY_POLICY.md](PRIVACY_POLICY.md). +## Versione Pro 1.0.9 test + +- Corregge la lettura del catalogo dal wrapper asincrono .NET di Google Play Billing, usando la raccolta managed `ProductDetails` popolata dal binding. + ## Versione Pro 1.0.8 test - Google Play Billing accetta tutte le offerte idonee restituite per i piani `monthly` e `yearly`, preferendo il piano base quando disponibile.