Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit b23c40d

Browse files
Merge f2416cd into 525fd07
2 parents 525fd07 + f2416cd commit b23c40d

File tree

4 files changed

+24
-16
lines changed

4 files changed

+24
-16
lines changed

global.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"sdk": {
3+
"version": "8.0.400",
4+
"rollForward": "latestFeature",
5+
"allowPrerelease": true
6+
}
7+
}

src/Plugin.InAppBilling/InAppBilling.android.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ public override Task DisconnectAsync(CancellationToken cancellationToken)
133133
return Task.CompletedTask;
134134
}
135135

136-
137136
/// <summary>
138137
/// Gets or sets if in testing mode. Only for UWP
139138
/// </summary>
@@ -483,6 +482,7 @@ static bool ParseBillingResult(BillingResult result, bool ignoreInvalidProducts
483482
return result.ResponseCode switch
484483
{
485484
BillingResponseCode.Ok => true,
485+
BillingResponseCode.NetworkError => throw new InAppBillingPurchaseException(PurchaseError.NetworkError),
486486
BillingResponseCode.UserCancelled => throw new InAppBillingPurchaseException(PurchaseError.UserCancelled),//User Cancelled, should try again
487487
BillingResponseCode.ServiceUnavailable => throw new InAppBillingPurchaseException(PurchaseError.ServiceUnavailable),//Network connection is down
488488
BillingResponseCode.ServiceDisconnected => throw new InAppBillingPurchaseException(PurchaseError.ServiceDisconnected),//Network connection is down

src/Plugin.InAppBilling/Plugin.InAppBilling.csproj

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<AssemblyName>Plugin.InAppBilling</AssemblyName>
1010
<RootNamespace>Plugin.InAppBilling</RootNamespace>
1111
<Product>$(AssemblyName) ($(TargetFramework))</Product>
12-
<AssemblyVersion>7.0.0.0</AssemblyVersion>
13-
<AssemblyFileVersion>7.0.0.0</AssemblyFileVersion>
14-
<Version>7.0.0.0</Version>
12+
<AssemblyVersion>9.0.0.0</AssemblyVersion>
13+
<AssemblyFileVersion>9.0.0.0</AssemblyFileVersion>
14+
<Version>9.0.0.0</Version>
1515
<Authors>James Montemagno</Authors>
1616
<IsPackable>True</IsPackable>
1717
<PackageId>Plugin.InAppBilling</PackageId>
@@ -95,33 +95,33 @@
9595

9696
<ItemGroup Condition=" $(TargetFramework.Contains('-android')) ">
9797
<PackageReference Include="Microsoft.Maui.Essentials" Version="$(MauiVersion)" />
98-
<PackageReference Include="Xamarin.Android.Google.BillingClient" Version="6.2.1" />
98+
<PackageReference Include="Xamarin.Android.Google.BillingClient" Version="7.1.1" />
9999
<PackageReference Include="Xamarin.AndroidX.Activity">
100-
<Version>1.9.0.4</Version>
100+
<Version>1.9.2.1</Version>
101101
</PackageReference>
102102
<PackageReference Include="Xamarin.AndroidX.Activity.Ktx">
103-
<Version>1.9.0.4</Version>
103+
<Version>1.9.2.1</Version>
104104
</PackageReference>
105105
<PackageReference Include="Xamarin.AndroidX.Collection">
106-
<Version>1.4.0.6</Version>
106+
<Version>1.4.4</Version>
107107
</PackageReference>
108108
<PackageReference Include="Xamarin.AndroidX.Collection.Ktx">
109-
<Version>1.4.0.5</Version>
109+
<Version>1.4.4</Version>
110110
</PackageReference>
111111
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData">
112-
<Version>2.8.3.1</Version>
112+
<Version>2.8.6</Version>
113113
</PackageReference>
114114
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Core">
115-
<Version>2.8.3.1</Version>
115+
<Version>2.8.6</Version>
116116
</PackageReference>
117117
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Runtime">
118-
<Version>2.8.3.1</Version>
118+
<Version>2.8.6</Version>
119119
</PackageReference>
120120
<PackageReference Include="Xamarin.AndroidX.Lifecycle.ViewModel">
121-
<Version>2.8.3.1</Version>
121+
<Version>2.8.6</Version>
122122
</PackageReference>
123123
<PackageReference Include="Xamarin.AndroidX.Lifecycle.ViewModelSavedState">
124-
<Version>2.8.3.1</Version>
124+
<Version>2.8.6</Version>
125125
</PackageReference>
126126
</ItemGroup>
127127

src/Plugin.InAppBilling/Shared/InAppBillingExceptions.shared.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ public enum PurchaseError
7070
FeatureNotSupported,
7171
ServiceDisconnected,
7272
ServiceTimeout,
73-
AppleTermsConditionsChanged
74-
}
73+
AppleTermsConditionsChanged,
74+
NetworkError
75+
}
7576

7677
/// <summary>
7778
/// Purchase exception

0 commit comments

Comments
 (0)