diff --git a/config.json b/config.json index b332f8e4a..fa1588321 100644 --- a/config.json +++ b/config.json @@ -2167,7 +2167,7 @@ "groupId": "com.android.billingclient", "artifactId": "billing", "version": "8.0.0", - "nugetVersion": "8.0.0", + "nugetVersion": "8.0.0.1", "nugetId": "Xamarin.Android.Google.BillingClient", "type": "xbd" }, diff --git a/source/com.android.billingclient/billing/Additions/Additions.cs b/source/com.android.billingclient/billing/Additions/Additions.cs index bdcb50dd3..0c13c4a69 100644 --- a/source/com.android.billingclient/billing/Additions/Additions.cs +++ b/source/com.android.billingclient/billing/Additions/Additions.cs @@ -27,6 +27,20 @@ public class QuerySkuDetailsResult public IList SkuDetails { get; set; } } + public partial class QueryProductDetailsResult + { + public QueryProductDetailsResult() { } + + public BillingResult Result { get; set; } + + [Obsolete ($"Use {nameof(ProductDetailsList)} instead")] + public IList ProductDetails + { + get => ProductDetailsList; + set { /* Obsolete property setter does nothing */ } + } + } + public class QueryPurchasesResult { public BillingResult Result { get; set; } @@ -241,7 +255,11 @@ internal class InternalProductDetailsResponseListener : Java.Lang.Object, IProdu public Action ProductDetailsResponseHandler { get; set; } public void OnProductDetailsResponse(BillingResult result, QueryProductDetailsResult queryResult) - => ProductDetailsResponseHandler?.Invoke(result, queryResult); + { + queryResult ??= new(); + queryResult.Result = result; + ProductDetailsResponseHandler?.Invoke(result, queryResult); + } } internal class InternalPurchasesResponseListener : Java.Lang.Object, IPurchasesResponseListener