EmilAlipiev / XFInAppBilling

MIT License
12 stars 3 forks source link

Update to use newer version of the Amazon IAP SDK #27

Closed shimfish closed 9 months ago

shimfish commented 9 months ago

I'm trying to use this in a live project, and Amazon is saying it's not 64bit compliant and I think it's because of this dll.

Where did it come from? Is it possible to make a 64bit version?

shimfish commented 9 months ago

OK. Finally worked out that there is a newer version of the Amazon IAP SDK.

For anyone interested, I've rewritten the Amazon XFInAppBillingImplementation to use the new version of the SDK.

You can then use the new Amazon bindings instead of the linked libAmazonIapV2Bridge.so, eg: https://github.com/DevEddy/AmazonAppStoreSdkAndroidBinding

InAppBillingImplementationAmazon.cs.txt

EmilAlipiev commented 9 months ago

Sounds great thanks for sharing. i will update it for maui anyone. will use yours.

shimfish commented 9 months ago

Great. Just double check how listeners are handled. I copied the style of the existing code and check the requestid is the same and then "deregister" the listener. However, the new SDK only allows for one listener object for everything, so I suspect this approach is wrong and could break if multiple requests are queued.