Skip to content

Commit

Permalink
Merge pull request #42852 from naithar/fix/in-app-store
Browse files Browse the repository at this point in the history
[3.2] [iOS] InAppStore fixes
  • Loading branch information
akien-mga authored Oct 20, 2020
2 parents da4f778 + b07877c commit e78fbd9
Show file tree
Hide file tree
Showing 2 changed files with 198 additions and 102 deletions.
14 changes: 14 additions & 0 deletions platform/iphone/in_app_store.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@

#include "core/object.h"

#ifdef __OBJC__
@class GodotProductsDelegate;
@class GodotTransactionsObserver;

typedef GodotProductsDelegate InAppStoreProductDelegate;
typedef GodotTransactionsObserver InAppStoreTransactionObserver;
#else
typedef void InAppStoreProductDelegate;
typedef void InAppStoreTransactionObserver;
#endif

class InAppStore : public Object {

GDCLASS(InAppStore, Object);
Expand All @@ -44,6 +55,9 @@ class InAppStore : public Object {

List<Variant> pending_events;

InAppStoreProductDelegate *products_request_delegate;
InAppStoreTransactionObserver *transactions_observer;

public:
Error request_product_info(Variant p_params);
Error restore_purchases();
Expand Down
Loading

0 comments on commit e78fbd9

Please sign in to comment.