Kebechet.Maui.RevenueCat.InAppBilling
4.5.3
Prefix Reserved
dotnet add package Kebechet.Maui.RevenueCat.InAppBilling --version 4.5.3
NuGet\Install-Package Kebechet.Maui.RevenueCat.InAppBilling -Version 4.5.3
<PackageReference Include="Kebechet.Maui.RevenueCat.InAppBilling" Version="4.5.3" />
paket add Kebechet.Maui.RevenueCat.InAppBilling --version 4.5.3
#r "nuget: Kebechet.Maui.RevenueCat.InAppBilling, 4.5.3"
// Install Kebechet.Maui.RevenueCat.InAppBilling as a Cake Addin #addin nuget:?package=Kebechet.Maui.RevenueCat.InAppBilling&version=4.5.3 // Install Kebechet.Maui.RevenueCat.InAppBilling as a Cake Tool #tool nuget:?package=Kebechet.Maui.RevenueCat.InAppBilling&version=4.5.3
Maui.RevenueCat.InAppBilling
Credits
- This plugin uses: Android and iOS bindings that are inspired by: thisisthekap's Xamarin bindings.
- Abstraction layer based on example RevenueCatXamarin from BillFulton
Usage
Firstly register package installer in your MauiProgram.cs
builder.Services.AddRevenueCatBilling();
then in App.xaml.cs
inject IRevenueCatBilling
:
public partial class App : Application {
private readonly IRevenueCatBilling _revenueCat;
public App(IRevenueCatBilling revenueCat) {
InitializeComponent();
_revenueCat = revenueCat;
}
}
and also override there method OnStart()
to call _revenueCat.Initialize
with your revenueCat apiKey (this key is platform dependant).
protected override void OnStart() {
var revenueCatApiKey = string.Empty;
#if __ANDROID__
revenueCatApiKey = "<AndroidRevenueCatKeyHere>";
#elif __IOS__
revenueCatApiKey = "<iOSRevenueCatKeyHere>";
#endif
_revenueCat.Initialize(revenueCatApiKey);
base.OnStart();
}
Dummy classes
So that you dont have to specify platform for this package and it's calls, also Windows and MacCatalyst are added with dummy implementations. When you call one of their methods you will always get:
true
for bool returnsnew List<>
for collectionsstring.Empty
for string values
Example of such dummy class: RevenueCatBillingWindows.cs
Exception behavior
- Library will throw exceptions only in case developer did some mistake
- in other cases, when there is some corrupted state it will either return ErrorCode in output variable e.g.
PurchaseResult
or it will return default value of that type.
Contributions
Feel free to create an issue or pull request. In case you would like to do massive changes in the package please firstly discuss them in the issue because otherwise there is high chance that such big PR would be rejected.
License
This repository is licensed with the MIT license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-android34.0 is compatible. net8.0-browser was computed. net8.0-ios was computed. net8.0-ios18.0 is compatible. net8.0-maccatalyst was computed. net8.0-maccatalyst18.0 is compatible. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net8.0-windows10.0.19041 is compatible. |
-
net8.0
- Microsoft.Maui.Controls (>= 8.0.82)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.82)
-
net8.0-android34.0
- Kebechet.Maui.RevenueCat.Android (>= 7.12.0.1)
- Microsoft.Maui.Controls (>= 8.0.82)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.82)
-
net8.0-ios18.0
- Kebechet.Maui.RevenueCat.iOS (>= 4.31.9.3)
- Microsoft.Maui.Controls (>= 8.0.82)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.82)
-
net8.0-maccatalyst18.0
- Microsoft.Maui.Controls (>= 8.0.82)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.82)
-
net8.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 8.0.82)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.82)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
4.5.3 | 504 | 10/14/2024 |
4.5.2 | 181 | 9/30/2024 |
4.5.1 | 95 | 9/29/2024 |
4.5.0 | 152 | 9/11/2024 |
4.4.2 | 619 | 8/8/2024 |
4.4.1 | 150 | 7/29/2024 |
4.4.0 | 258 | 7/8/2024 |
4.3.0 | 859 | 2/27/2024 |
4.2.0 | 117 | 2/26/2024 |
4.1.0 | 133 | 2/14/2024 |
4.0.0 | 307 | 1/19/2024 |
4.0.0-preview1 | 94 | 1/18/2024 |
3.0.0 | 746 | 10/22/2023 |
2.1.1 | 243 | 10/16/2023 |
2.1.0 | 156 | 10/14/2023 |
2.0.0 | 149 | 10/7/2023 |
1.1.1 | 273 | 9/19/2023 |
1.1.0 | 151 | 9/13/2023 |
1.0.6 | 145 | 8/7/2023 |
1.0.5 | 352 | 8/5/2023 |
1.0.4 | 169 | 7/31/2023 |
1.0.3 | 235 | 7/21/2023 |
1.0.2 | 271 | 5/31/2023 |
1.0.1 | 158 | 5/17/2023 |
1.0.1-preview4 | 193 | 5/17/2023 |
1.0.1-preview3 | 119 | 5/17/2023 |
1.0.1-preview2 | 130 | 5/17/2023 |
1.0.0 | 141 | 5/17/2023 |
1.0.0-preview3 | 118 | 5/12/2023 |
1.0.0-preview2 | 128 | 5/10/2023 |
1.0.0-preview11 | 132 | 5/13/2023 |
1.0.0-preview1 | 123 | 5/8/2023 |
Bumped Android NuGet package to the latest version