Skip to content

Commit 8555404

Browse files
Fix Catalyst Build Error (#382)
Co-authored-by: Mayank Sanganeria <[email protected]>
1 parent 7b98f59 commit 8555404

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Leanplum-SDK/Classes/Managers/LPRevenueManager.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,12 @@ - (void)addTransaction:(SKPaymentTransaction *)transaction
137137
NSURL *receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];
138138
receipt = [NSData dataWithContentsOfURL:receiptURL];
139139
} else {
140+
#if !TARGET_OS_MACCATALYST
140141
#pragma GCC diagnostic push
141142
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
142143
receipt = transaction.transactionReceipt;
143144
#pragma GCC diagnostic pop
145+
#endif
144146
}
145147

146148
NSString *receiptBase64String = [LPUtils base64EncodedStringFromData:receipt];

0 commit comments

Comments
 (0)