This is a C# binding project that binds to an xcode project that wrapped swift from StoreKit v2 API from Apple in ObjC.
Microsoft's current recommendation to iOS.NET developers is that they should write their own bindings using this slim binding demo project: https://github.com/Redth/DotNet.Platform.SlimBindings
dotnet add package plugin.howitzergames.storekit2| SDK Name | SDK Version | NuGet Package Version |
|---|---|---|
| plugin.howitzergames.storekit2 | 10.0.30 | 10.0.30 |
Ensure proper Condition in .csproj for iOS / MacCatalyst:
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0-ios' OR '$(TargetFramework)' == 'net10.0-maccatalyst'">
<PackageReference Include="plugin.howitzergames.storekit2" Version="10.0.30" />
</ItemGroup>To reproduce this package and make improvements, see MacBuildNotes.md.
-
Version 10.0.30:
- Update C# bindings to address the updates to the xcframework (see below).
- Updated xcframework to be runtime safe.
- Removed/commented all @available attributes to prevent runtime crashes and ensure backwards compatability back to iOS 15.0.
- Added runtime safety checks to all @available methods and classes to ensure functionality is the same.
- Added fallback behaviors for methods and classes that are not available on older iOS versions.
-
Version 10.0.20:
- Removed old reference names.
-
Version 10.0.10:
- Initial build of StoreKit2 framework.