Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taublast/appomobi.xamarin.externalpurchaselink
https://github.com/taublast/appomobi.xamarin.externalpurchaselink
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/taublast/appomobi.xamarin.externalpurchaselink
- Owner: taublast
- License: mit
- Created: 2024-05-15T08:33:15.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-19T09:57:06.000Z (6 months ago)
- Last Synced: 2024-05-20T10:25:51.325Z (6 months ago)
- Language: Objective-C
- Size: 5.68 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.