Releases: defold/extension-iap
Releases · defold/extension-iap
Google Play Billing 6.2.1
Google Play Billing 6.0.0
NEW: Google Play Billing has been updated to version 6.0.0. This version requires a maximum targetSdkVersion of 31.
Updated to support Defold 1.8.0
CHANGE: This version works on Defold 1.8.0 and above
Various crash fixes
Fix issue on Android after update of JSON API
FIX: This fixes a crash on successful calls to iap.list()
caused by the recent migration of JSON API in the Defold engine.
Updated to use new Lua json decoder
Compatible with Defold 1.4.0+
Updated to Google Play Billing 5
CHANGE: The Google Play support has been updated to use Google Play Billing API 5
CHANGE: When buying subscriptions on Google Play an offer token needs to be provided:
-- offer token from call to iap.list()
iap.buy("subscription_id", { token = "offer_token_from_iap_list" })
NEW: Google Play subscriptions now return a lot more data about pricing options, billing cycles, recurrence mode and more when doing iap.list()
iap.list(ids, function(self, products, error))
for _,product in pairs(products) do
print(product.ident, product.title, product.description)
if product.subscriptions end
-- a product has one or more subscription offers
for _,subscription in pairs(product.subscriptions) do
-- use this token when buying this particular subscription
print(subscription.token)
for _,price in pairs(subscription.pricing) do
print(price.price_string)
print(price.price)
print(price.currency_code)
print(price.billing_period)
print(price.billing_cycle_count)
print(price.recurrence_mode)
end
end
end
end
end)
Support for Android 12
This release adds support for Android 12
Smaller mutex scope + use new SDK android methods (Defold 1.2.188)
- Use smaller scope for the callback's mutex to avoid possible ANRs/Crashes
- Use new Defold SDK API (1.2.188) for attaching VM thread and loading java class
Crash fix for iOS reload of extension
3.3.0 Fixed nul pointer deferencing