Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
DEV-117 Fixed issue when compiling on macOS due to missing paywall im…
Browse files Browse the repository at this point in the history
…plementation
  • Loading branch information
curzel-it committed May 19, 2023
1 parent 77cf22e commit 905421c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/Source/GlassfyGlue.m
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,17 @@ + (void)offeringsWithCompletion:(GlassfyGlueCompletion _Nonnull)block {

+ (void)paywallWithId:(NSString *_Nonnull)remoteConfigId completion:(GlassfyGlueCompletion _Nonnull)block
{
#if TARGET_OS_IPHONE
[Glassfy paywallWithId:remoteConfigId completion:^(GYPaywall *paywall, NSError *error) {
if (error != nil) {
block(nil, error);
} else {
block([paywall encodedDictionary], error);
}
}];
#else
block(nil, nil);
#endif
}

+ (void)permissionsWithCompletion:(GlassfyGlueCompletion _Nonnull)block {
Expand Down

0 comments on commit 905421c

Please sign in to comment.