Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
20 changes: 19 additions & 1 deletion source/com.android.billingclient/billing/Additions/Additions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ public class QuerySkuDetailsResult
public IList<SkuDetails> SkuDetails { get; set; }
}

public partial class QueryProductDetailsResult
{
public QueryProductDetailsResult() { }

public BillingResult Result { get; set; }

[Obsolete ($"Use {nameof(ProductDetailsList)} instead")]
public IList<ProductDetails> ProductDetails
{
get => ProductDetailsList;
set { /* Obsolete property setter does nothing */ }
}
}

public class QueryPurchasesResult
{
public BillingResult Result { get; set; }
Expand Down Expand Up @@ -241,7 +255,11 @@ internal class InternalProductDetailsResponseListener : Java.Lang.Object, IProdu
public Action<BillingResult, QueryProductDetailsResult> 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
Expand Down
Loading