Xamarin.RevenueCat.iOS.Extensions
3.5.3.6
See the version list below for details.
dotnet add package Xamarin.RevenueCat.iOS.Extensions --version 3.5.3.6
NuGet\Install-Package Xamarin.RevenueCat.iOS.Extensions -Version 3.5.3.6
<PackageReference Include="Xamarin.RevenueCat.iOS.Extensions" Version="3.5.3.6" />
paket add Xamarin.RevenueCat.iOS.Extensions --version 3.5.3.6
#r "nuget: Xamarin.RevenueCat.iOS.Extensions, 3.5.3.6"
// Install Xamarin.RevenueCat.iOS.Extensions as a Cake Addin #addin nuget:?package=Xamarin.RevenueCat.iOS.Extensions&version=3.5.3.6 // Install Xamarin.RevenueCat.iOS.Extensions as a Cake Tool #tool nuget:?package=Xamarin.RevenueCat.iOS.Extensions&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)
- Xamarin.RevenueCat.iOS (>= 3.5.3.6)
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.39.0.9 | 2,217 | 4/17/2024 | |
4.39.0.8 | 117 | 4/4/2024 | |
4.39.0.7 | 113 | 4/4/2024 | |
4.39.0.6 | 106 | 4/4/2024 | |
4.39.0.5 | 107 | 4/4/2024 | |
4.39.0.4 | 110 | 4/4/2024 | |
4.39.0.3 | 114 | 4/3/2024 | |
4.30.0.2 | 958 | 11/9/2023 | |
4.9.0.4 | 8,163 | 10/27/2022 | |
4.9.0.3 | 426 | 10/17/2022 | |
4.9.0.2 | 1,506 | 7/21/2022 | |
4.1.0.7 | 1,553 | 4/5/2022 | |
4.1.0.5 | 6,487 | 3/30/2022 | |
4.1.0.4 | 462 | 3/30/2022 | |
3.5.3.10 | 10,315 | 11/9/2020 | |
3.5.3.9 | 468 | 11/9/2020 | |
3.5.3.8 | 879 | 11/3/2020 | |
3.5.3.6 | 983 | 10/21/2020 |