39 Commits

Author SHA1 Message Date
b358e0bce4 Refactor IAP extension for Android and iOS platforms 2024-04-28 10:07:39 +02:00
6e27d8ad2e Fix null pointer check and callback setup in IAP_SetListener function 2024-04-26 23:06:15 +02:00
406a594c8d Refactor IAP extension for Android and iOS platforms 2024-04-26 22:21:37 +02:00
e8a39d9fee Fix null pointer check in IAP_List function 2024-04-26 00:37:34 +02:00
82d9180447 Fix DM_PLATFORM_ANDROID macro in iap_android.cpp 2024-04-26 00:30:52 +02:00
7fe021480c Fix DM_PLATFORM_ANDROID macro in iap_android.cpp 2024-04-26 00:30:40 +02:00
3dbd318f9c Fix DM_PLATFORM_ANDROID macro in iap_android.cpp 2024-04-26 00:22:45 +02:00
e1106920b1 Refactor IAP initialization and purchase handling in iap_android.cpp and IapGooglePlay.java 2024-04-26 00:21:30 +02:00
2d8a6496b5 Refactor PROVIDER_ID_GOOGLE to PROVIDER_ID_APPLE in iap.h and iap_android.cpp 2024-04-26 00:14:54 +02:00
75e1dc9515 Fix DM_PLATFORM_ANDROID macro in iap_android.cpp 2024-04-26 00:12:19 +02:00
f20a12ca05 Refactoring base extension. Removed unneeded logic. 2024-04-26 00:10:10 +02:00
a586e94e48 Fix DM_PLATFORM_ANDROID macro in iap_android.cpp 2024-04-22 00:07:30 +02:00
d4616ba97f JNI Method fix 2024-04-22 00:05:43 +02:00
ad30ef296b Added missing JNI method reference. 2024-04-21 22:08:13 +02:00
609071876c Implemented support for account identifiers for Google Play and StoreKit. 2024-04-21 21:55:20 +02:00
Björn Ritzl
5f3f43fb2e Push nil as last argument if there is no error 2022-11-21 10:21:12 +01:00
JCash
501af9c90d Updated to use dmScript::LuaToJson() 2022-11-02 14:36:36 +01:00
Björn Ritzl
05e9001404 Fixed issues with subscriptions 2022-09-07 11:58:19 +02:00
Alexey Gulev
3ecd6ef587 Smaller mutex scope + use new SDK android methods (Defold 1.2.188) 2021-10-31 13:22:18 +01:00
Björn Ritzl
80ba15bf22 Do not track init count for multiple Lua states
None of our other extensions support this
2021-04-28 08:54:38 +02:00
Björn Ritzl
497d0dee1e Added iap.acknowledge 2020-07-24 00:10:04 +02:00
Björn Ritzl
a88fab1543 Removed unused code 2020-07-23 19:29:37 +02:00
Björn Ritzl
83876a508b Almost done 2020-07-23 12:18:40 +02:00
Denis Dyukorev
cbc1f659c1 Add transactions handler to init method according ios documentation it's important to add handler on application:didFinishLaunchingWithOptions: (https://developer.apple.com/documentation/storekit/in-app_purchase/setting_up_the_transaction_observer_for_the_payment_queue?language=objc), move observable commands to separate queue so it can be processed separately and after listener setup, add IAP_ProcessPendingTransactions function to resolve pending transactions on iOS. 2020-03-04 17:26:52 +03:00
Denis Dyukorev
d6cc6f55f9 IAP command pointer to products list function to avoid crash on multiple calls products list 2020-02-15 15:00:15 +03:00
Björn Ritzl
8d9ea79d7d Fixed crash if buying when no listener was set 2020-02-10 08:25:48 +01:00
Alexey Gulev
1a778d0e98 fix crash 2020-01-16 23:16:21 +01:00
mathiaswking
8eebb889e3 Use Lua callback handling functions from DefoldSDK 2019-11-15 19:04:23 +01:00
mathiaswking
bca28de29a Moved command queue code to iap_private.h/cpp 2019-11-14 10:48:19 +01:00
Alexey Gulev
53493fea0b Fixed issue with command shadowing. 2019-09-27 15:34:16 +02:00
Alexey Gulev
33618ddc0a More careful work with pointers. 2019-09-26 14:52:03 +02:00
Alexey Gulev
7952bbd5f1 Revert "Added LUA_MULTRET"
This reverts commit af38c606dc37a9b6203533d2fab4e6d93ce72af9.
2019-09-26 10:58:16 +02:00
Alexey Gulev
af38c606dc Added LUA_MULTRET 2019-09-26 10:38:42 +02:00
Alexey Gulev
af80e05796 Fixed pcall 2019-09-20 20:06:35 +02:00
Alexey Gulev
b68550e6ef Removed extern structures 2019-09-20 17:08:19 +02:00
Alexey Gulev
8a4a562c8d Fixed callback issue 2019-09-20 14:38:44 +02:00
Alexey Gulev
d3323f9884 Fixed callback 2019-09-19 09:19:00 +02:00
Alexey Gulev
8fda0a3ae9 Fixes for command invoke 2019-09-18 14:50:53 +02:00
Alexey Gulev
0fa8400cac Initial commit 2019-09-17 16:50:00 +02:00