Xamarin.RevenueCat.iOS
3.5.3.6
See the version list below for details.
dotnet add package Xamarin.RevenueCat.iOS --version 3.5.3.6
NuGet\Install-Package Xamarin.RevenueCat.iOS -Version 3.5.3.6
<PackageReference Include="Xamarin.RevenueCat.iOS" Version="3.5.3.6" />
paket add Xamarin.RevenueCat.iOS --version 3.5.3.6
#r "nuget: Xamarin.RevenueCat.iOS, 3.5.3.6"
// Install Xamarin.RevenueCat.iOS as a Cake Addin #addin nuget:?package=Xamarin.RevenueCat.iOS&version=3.5.3.6 // Install Xamarin.RevenueCat.iOS as a Cake Tool #tool nuget:?package=Xamarin.RevenueCat.iOS&version=3.5.3.6
Xamarin.RevenueCat.iOS
Xamarin.iOS Bindings for RevenueCat (Website, Setup Instructions).
NuGet Feed
Xamarin.RevenueCat.iOS
The actual bindings.
https://www.nuget.org/packages/Xamarin.RevenueCat.iOS/
Xamarin.RevenueCat.iOS.Extensions
Contains extension methods for Xamarin.RevenueCat.iOS
adding e.g. async/await convenience methods.
https://www.nuget.org/packages/Xamarin.RevenueCat.iOS.Extensions/
Versioning Scheme
The versioning scheme of Xamarin.RevenueCat.iOS
is derived from the versioning of revenuecat/purchases-ios
.
Example:
revenuecat/purchases-ios | Xamarin.RevenueCat.iOS | Note |
---|---|---|
3.4.1 | 3.4.1.1 | First version of bindings for 3.4.1 |
3.4.1 | 3.4.1.17 | Bindings for 3.4.1 containing fixes |
How to bind new version
This section explains how to create resp. adapt the bindings to bind to a newer version of RevenueCat for iOS.
Build static library
cd sharpie
- Set the desired version of RevenueCat for iOS in
revenuecat-version.txt
- Execute
./prepare-library-build.sh
- Right click "Purchases" to add files:
- Select everything in the "Purchases" folder, and make sure that the settings are configured as described:
- Press "Add"
- Close XCode
- Execute
./finish-library-build.sh
After these steps, a new static library was built and moved to Xamarin.RevenueCat.iOS/nativelib/libPurchases.a
. This file is referenced as NativeReference
in Xamarin.RevenueCat.iOS.csproj
.
Create C# Bindings using Objective Sharpie
This section describes how to create ApiBindings.cs
and StructsAndEnums.cs
.
cd sharpie
- Set the desired version of RevenueCat for iOS in
revenuecat-version.txt
- Execute
./create-sharpie-files.sh
- Copy
ApiBindings.cs
andStructsAndEnums.cs
to../Xamarin.RevenueCat.iOS
Tip when updating to newer version of revenuecat/purchases-ios
To find out which API changes were made between two versions of revenuecat/purchases-ios, you could execute sharpie twice:
- Execute steps 1 to 3 from the steps above
- Do not change the version of
revenuecat/purchases-ios
inrevenuecat-version.txt
- Do not change the version of
- Execute
mv ApiBindings.cs ApiBindings_old.cs
- Execute
mv StructsAndEnums.cs StructsAndEnums_old.cs
- Change the version of
revenuecat/purchases-ios
inrevenuecat-version.txt
- Execute
./create-sharpie-files.sh
Now you can use diff
or your favorite diff tool to detect the changes between both versions.
License
The license for this repository is specified in LICENSE.txt
Product | Versions Compatible and additional computed target framework versions. |
---|---|
Xamarin.iOS | xamarinios10 is compatible. |
-
Xamarin.iOS 1.0
- NuGet.Build.Tasks.Pack (>= 5.7.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Xamarin.RevenueCat.iOS:
Package | Downloads |
---|---|
Xamarin.RevenueCat.iOS.Extensions
Contains convenience methods and async extensions for Xamarin.RevenueCat.iOS |
|
Xamarin.RevenueCatUI.iOS
Contains bindings for https://docs.revenuecat.com/docs/ios |
|
Xamarin.RevenueCatUI.iOS.Extensions
Contains bindings for https://docs.revenuecat.com/docs/ios |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
4.39.0.9 | 2,223 | 4/17/2024 |
4.39.0.8 | 113 | 4/4/2024 |
4.39.0.7 | 107 | 4/4/2024 |
4.39.0.6 | 109 | 4/4/2024 |
4.39.0.5 | 106 | 4/4/2024 |
4.39.0.4 | 103 | 4/4/2024 |
4.39.0.3 | 101 | 4/3/2024 |
4.30.0.2 | 2,157 | 11/9/2023 |
4.9.0.2 | 12,824 | 7/21/2022 |
4.1.0.5 | 3,792 | 3/30/2022 |
3.5.3.10 | 10,299 | 11/9/2020 |
3.5.3.9 | 449 | 11/9/2020 |
3.5.3.8 | 823 | 11/3/2020 |
3.5.3.6 | 949 | 10/21/2020 |