Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f27e47d83a | ||
|
|
bcc9e01179 | ||
|
|
8afb79f893 |
No files matched your search
@@ -18,7 +18,7 @@
|
|||||||
<PageTitle>LME Mappe Catastali Pro</PageTitle>
|
<PageTitle>LME Mappe Catastali Pro</PageTitle>
|
||||||
|
|
||||||
<div class="map-app">
|
<div class="map-app">
|
||||||
<section class="map-stage @(ActiveTab == "search" ? "search-active" : null)">
|
<section class="map-stage @(ActiveTab == "search" ? "search-active" : null) @(LayerPanelOpen ? "layers-open" : null)">
|
||||||
<div id="map"></div>
|
<div id="map"></div>
|
||||||
|
|
||||||
<header class="map-toolbar">
|
<header class="map-toolbar">
|
||||||
|
|||||||
@@ -28,8 +28,8 @@
|
|||||||
<ApplicationId>it.liviomerola.lmemappecatastali.pro</ApplicationId>
|
<ApplicationId>it.liviomerola.lmemappecatastali.pro</ApplicationId>
|
||||||
|
|
||||||
<!-- Versions -->
|
<!-- Versions -->
|
||||||
<ApplicationDisplayVersion>1.0.5</ApplicationDisplayVersion>
|
<ApplicationDisplayVersion>1.0.8</ApplicationDisplayVersion>
|
||||||
<ApplicationVersion>105</ApplicationVersion>
|
<ApplicationVersion>108</ApplicationVersion>
|
||||||
<Version>$(ApplicationDisplayVersion)</Version>
|
<Version>$(ApplicationDisplayVersion)</Version>
|
||||||
|
|
||||||
<!-- To develop, package, and publish an app to the Microsoft Store, see: https://aka.ms/MauiTemplateUnpackaged -->
|
<!-- To develop, package, and publish an app to the Microsoft Store, see: https://aka.ms/MauiTemplateUnpackaged -->
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
- Nome: LME Mappe Catastali Pro.
|
- Nome: LME Mappe Catastali Pro.
|
||||||
- Package name Android: `it.liviomerola.lmemappecatastali.pro`.
|
- Package name Android: `it.liviomerola.lmemappecatastali.pro`.
|
||||||
- Versione corrente da pubblicare: `1.0.5` / version code `105`.
|
- Versione corrente da pubblicare: `1.0.8` / version code `108`.
|
||||||
- Formato Release Android: Android App Bundle (`.aab`).
|
- Formato Release Android: Android App Bundle (`.aab`).
|
||||||
- Target SDK Release: Android 16 / API 36.
|
- Target SDK Release: Android 16 / API 36.
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ public sealed class AndroidPlayBillingService : Java.Lang.Object, IPlayBillingSe
|
|||||||
private readonly SemaphoreSlim _connectionLock = new(1, 1);
|
private readonly SemaphoreSlim _connectionLock = new(1, 1);
|
||||||
private readonly BillingClient _client;
|
private readonly BillingClient _client;
|
||||||
private TaskCompletionSource<PlayBillingResult>? _purchaseCompletion;
|
private TaskCompletionSource<PlayBillingResult>? _purchaseCompletion;
|
||||||
|
private string? _lastCatalogFailure;
|
||||||
|
|
||||||
public AndroidPlayBillingService()
|
public AndroidPlayBillingService()
|
||||||
{
|
{
|
||||||
@@ -31,7 +32,12 @@ public sealed class AndroidPlayBillingService : Java.Lang.Object, IPlayBillingSe
|
|||||||
{
|
{
|
||||||
var details = await GetProductDetailsAsync(cancellationToken);
|
var details = await GetProductDetailsAsync(cancellationToken);
|
||||||
return details?.GetSubscriptionOfferDetails()?
|
return details?.GetSubscriptionOfferDetails()?
|
||||||
.Where(item => string.IsNullOrEmpty(item.OfferId))
|
.Where(item => !string.IsNullOrWhiteSpace(item.BasePlanId)
|
||||||
|
&& !string.IsNullOrWhiteSpace(item.OfferToken))
|
||||||
|
.GroupBy(item => item.BasePlanId, StringComparer.Ordinal)
|
||||||
|
.Select(group => group
|
||||||
|
.OrderBy(item => string.IsNullOrEmpty(item.OfferId) ? 0 : 1)
|
||||||
|
.First())
|
||||||
.Select(item =>
|
.Select(item =>
|
||||||
{
|
{
|
||||||
var phase = item.PricingPhases.PricingPhaseList.LastOrDefault();
|
var phase = item.PricingPhases.PricingPhaseList.LastOrDefault();
|
||||||
@@ -99,13 +105,25 @@ public sealed class AndroidPlayBillingService : Java.Lang.Object, IPlayBillingSe
|
|||||||
|
|
||||||
var details = await GetProductDetailsAsync(cancellationToken);
|
var details = await GetProductDetailsAsync(cancellationToken);
|
||||||
var offer = details?.GetSubscriptionOfferDetails()?
|
var offer = details?.GetSubscriptionOfferDetails()?
|
||||||
.FirstOrDefault(item => item.BasePlanId == basePlanId
|
.Where(item => item.BasePlanId == basePlanId
|
||||||
&& string.IsNullOrEmpty(item.OfferId)
|
&& !string.IsNullOrWhiteSpace(item.OfferToken))
|
||||||
&& !string.IsNullOrWhiteSpace(item.OfferToken));
|
.OrderBy(item => string.IsNullOrEmpty(item.OfferId) ? 0 : 1)
|
||||||
if (details is null || offer is null)
|
.FirstOrDefault();
|
||||||
|
if (details is null)
|
||||||
{
|
{
|
||||||
return PlayBillingResult.Failed(
|
return PlayBillingResult.Failed(_lastCatalogFailure
|
||||||
$"Piano {basePlanId} non disponibile su Google Play. Verifica che l'abbonamento lme_pro e il piano siano attivi per il tuo Paese.");
|
?? "Google Play non ha restituito l'abbonamento lme_pro.");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (offer is null)
|
||||||
|
{
|
||||||
|
var availablePlans = string.Join(", ", details.GetSubscriptionOfferDetails()?
|
||||||
|
.Select(item => item.BasePlanId)
|
||||||
|
.Where(item => !string.IsNullOrWhiteSpace(item))
|
||||||
|
.Distinct(StringComparer.Ordinal) ?? []);
|
||||||
|
return PlayBillingResult.Failed(string.IsNullOrWhiteSpace(availablePlans)
|
||||||
|
? $"Google Play ha restituito lme_pro senza offerte acquistabili per il piano {basePlanId}."
|
||||||
|
: $"Piano {basePlanId} non restituito da Google Play. Piani ricevuti: {availablePlans}.");
|
||||||
}
|
}
|
||||||
|
|
||||||
var productParams = BillingFlowParams.ProductDetailsParams.NewBuilder()
|
var productParams = BillingFlowParams.ProductDetailsParams.NewBuilder()
|
||||||
@@ -191,7 +209,18 @@ public sealed class AndroidPlayBillingService : Java.Lang.Object, IPlayBillingSe
|
|||||||
throw new InvalidOperationException(ToMessage(result.Result));
|
throw new InvalidOperationException(ToMessage(result.Result));
|
||||||
}
|
}
|
||||||
|
|
||||||
return result.ProductDetailsList?.FirstOrDefault();
|
var details = result.ProductDetailsList?.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}).";
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task EnsureConnectedAsync(CancellationToken cancellationToken)
|
private async Task EnsureConnectedAsync(CancellationToken cancellationToken)
|
||||||
|
|||||||
@@ -4,6 +4,21 @@ App .NET MAUI Blazor Hybrid per Android, iOS, Mac Catalyst e Windows, pensata pe
|
|||||||
|
|
||||||
Informativa privacy: [PRIVACY_POLICY.md](PRIVACY_POLICY.md).
|
Informativa privacy: [PRIVACY_POLICY.md](PRIVACY_POLICY.md).
|
||||||
|
|
||||||
|
## 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.
|
||||||
|
- In caso di catalogo vuoto o prodotto non caricato, il messaggio mostra una diagnostica specifica restituita da Google Play.
|
||||||
|
|
||||||
|
## Versione Pro 1.0.7 test
|
||||||
|
|
||||||
|
- I messaggi informativi su telefono vengono mostrati sopra i controlli zoom e possono occupare fino a tre righe senza sovrapporsi.
|
||||||
|
- Durante il rilevamento GPS la mappa si ricentra automaticamente quando la nuova posizione esce dall'area visibile, mantenendo lo zoom corrente.
|
||||||
|
|
||||||
|
## Versione Pro 1.0.6 test
|
||||||
|
|
||||||
|
- Il pannello Layer usa tutta la larghezza disponibile sui telefoni e le righe si adattano ai testi su piu linee senza sovrapporsi.
|
||||||
|
- La barra superiore tronca il titolo in modo controllato e il riepilogo GPS non rimane dietro al pannello Layer.
|
||||||
|
|
||||||
## Versione Pro 1.0.5 test
|
## Versione Pro 1.0.5 test
|
||||||
|
|
||||||
- Il flusso di acquisto Google Play gestisce correttamente prodotti o offerte non restituiti dal catalogo, senza mostrare eccezioni tecniche.
|
- Il flusso di acquisto Google Play gestisce correttamente prodotti o offerte non restituiti dal catalogo, senza mostrare eccezioni tecniche.
|
||||||
|
|||||||
+32
-7
@@ -122,10 +122,14 @@ input[type="checkbox"] {
|
|||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-identity strong {
|
.app-identity strong {
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -263,7 +267,7 @@ input[type="checkbox"] {
|
|||||||
left: auto;
|
left: auto;
|
||||||
bottom: calc(var(--nav-height) + 8px);
|
bottom: calc(var(--nav-height) + 8px);
|
||||||
z-index: 1080;
|
z-index: 1080;
|
||||||
display: grid;
|
display: block;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: min(480px, 50vw);
|
width: min(480px, 50vw);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
@@ -295,10 +299,10 @@ input[type="checkbox"] {
|
|||||||
|
|
||||||
.map-layer-option {
|
.map-layer-option {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: flex-start;
|
||||||
gap: 9px;
|
gap: 9px;
|
||||||
min-height: 45px;
|
min-height: 45px;
|
||||||
padding: 6px 4px;
|
padding: 9px 4px;
|
||||||
border-bottom: 1px solid #e5eaed;
|
border-bottom: 1px solid #e5eaed;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -306,11 +310,19 @@ input[type="checkbox"] {
|
|||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
width: 19px;
|
width: 19px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.map-layer-option span {
|
.map-layer-option span {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
|
min-width: 0;
|
||||||
|
line-height: 1.25;
|
||||||
|
}
|
||||||
|
|
||||||
|
.map-layer-option strong,
|
||||||
|
.map-layer-option small {
|
||||||
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
|
||||||
.map-layer-option small {
|
.map-layer-option small {
|
||||||
@@ -1738,7 +1750,16 @@ footer {
|
|||||||
right: 8px;
|
right: 8px;
|
||||||
left: auto;
|
left: auto;
|
||||||
bottom: calc(var(--nav-height) + 8px);
|
bottom: calc(var(--nav-height) + 8px);
|
||||||
width: 50vw;
|
width: calc(100vw - 16px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.map-stage.layers-open .gps-overlay {
|
||||||
|
visibility: hidden;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-status-line {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.map-navigation-menu {
|
.map-navigation-menu {
|
||||||
@@ -1812,12 +1833,16 @@ footer {
|
|||||||
|
|
||||||
.map-info {
|
.map-info {
|
||||||
right: 8px;
|
right: 8px;
|
||||||
bottom: 72px;
|
bottom: calc(var(--nav-height) + 116px);
|
||||||
left: 8px;
|
left: 8px;
|
||||||
|
display: -webkit-box;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
line-height: 1.35;
|
||||||
white-space: nowrap;
|
overflow-wrap: anywhere;
|
||||||
|
white-space: normal;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-line-clamp: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottom-tabs button {
|
.bottom-tabs button {
|
||||||
|
|||||||
@@ -5637,6 +5637,12 @@ function onGpsPosition(position) {
|
|||||||
updateGpsPositionLayers(latlng, lmeState.lastAccuracy);
|
updateGpsPositionLayers(latlng, lmeState.lastAccuracy);
|
||||||
if (firstLiveFix) {
|
if (firstLiveFix) {
|
||||||
lmeState.map.setView(latlng, 19);
|
lmeState.map.setView(latlng, 19);
|
||||||
|
} else if (!lmeState.map.getBounds().contains(latlng)) {
|
||||||
|
lmeState.map.panTo(latlng, {
|
||||||
|
animate: true,
|
||||||
|
duration: 0.5,
|
||||||
|
easeLinearity: 0.25
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lmeState.gpsTrailEnabled) {
|
if (lmeState.gpsTrailEnabled) {
|
||||||
|
|||||||
Reference in new issue
Block a user