Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/taublast/appomobi.xamarin.externalpurchaselink


https://github.com/taublast/appomobi.xamarin.externalpurchaselink

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# AppoMobi.Xamarin.ExternalPurchaseLink

Xamarin.iOS bindings to implement Apple new StoreKit ` com.apple.developer.storekit.external-purchase-link` entitlement with [ExternalPurchaseLink](https://developer.apple.com/documentation/storekit/externalpurchaselink?language=objc) functionality.

Could reference Xamarin project manually in your iOS app, or install nuget. You need iOS 15.4 as the minimum deployment level.

Left project structure generic to be re-used as a template for similar projects.

These are pure bindings without a wrapper. You could, for example, consume them like this:

https://gist.github.com/taublast/3108c67bab654f5790c5916f14e61bc4

## Source Code

2 parts:

### Native Wrapper

To edit on Mac:
* Edit the wrapper code using XCode. Notice there are bundle signing credentials and bundle id to be replaced by yours.
* Execute `bash build.fat.sh` being in the `src` folder. This will compile everything, and replace bindings and the framework used by the .NET project. It requires Objective Sharpie to be installed.
* Then you might need to modify `ApiDefinitions.cs`, in my case i was just commenting out the `[Verify]` attributes that came from the new Objective Sharpie version.

### Xamarin iOS Bindings

The framework that came from the script is going to be in the `Framework` folder, and `ApiDefinitions.cs` came from native script too.