Skip to content

Commit

Permalink
Update RevenueCat-Swift.h for version 5.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RCGitBot committed Oct 8, 2024
1 parent e2a4832 commit 385b5b2
Showing 1 changed file with 35 additions and 8 deletions.
43 changes: 35 additions & 8 deletions Tests/InstallationTests/CommonFiles/RevenueCat-Swift.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
// Generated by Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
#ifndef REVENUECAT_SWIFT_H
#define REVENUECAT_SWIFT_H
#pragma clang diagnostic push
Expand Down Expand Up @@ -40,6 +40,8 @@
#include <string.h>
#endif
#if defined(__cplusplus)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
# include <ptrauth.h>
#else
Expand All @@ -53,6 +55,7 @@
# endif
#pragma clang diagnostic pop
#endif
#pragma clang diagnostic pop
#endif

#if !defined(SWIFT_TYPEDEFS)
Expand Down Expand Up @@ -289,6 +292,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"

#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
Expand Down Expand Up @@ -650,8 +654,9 @@ SWIFT_CLASS_NAMED("Builder")
/// Set <code>platformInfo</code>.
- (RCConfigurationBuilder * _Nonnull)withPlatformInfo:(RCPlatformInfo * _Nonnull)platformInfo SWIFT_WARN_UNUSED_RESULT;
/// Set <code>showStoreMessagesAutomatically</code>. Enabled by default.
/// If enabled, if the user has billing issues, has yet to accept a price increase consent or
/// there are other messages from StoreKit, they will be displayed automatically when the app is initialized.
/// If enabled, if the user has billing issues, has yet to accept a price increase consent, is eligible for a
/// win-back offer, or there are other messages from StoreKit, they will be displayed automatically when
/// the app is initialized.
/// If you want to disable this behavior so that you can customize when these messages are shown, make sure
/// you configure the SDK as early as possible in the app’s lifetime, otherwise messages will be displayed
/// automatically.
Expand Down Expand Up @@ -714,12 +719,12 @@ SWIFT_CLASS_NAMED("Builder")


@interface RCConfigurationBuilder (SWIFT_EXTENSION(RevenueCat))
- (RCConfigurationBuilder * _Nonnull)withObserverMode:(BOOL)observerMode SWIFT_WARN_UNUSED_RESULT SWIFT_AVAILABILITY(macos,obsoleted=1,message="'with' has been renamed to 'withPurchasesAreCompletedBy:storeKitVersion:': Observer Mode is now named PurchasesAreCompletedBy.") SWIFT_AVAILABILITY(watchos,obsoleted=1,message="'with' has been renamed to 'withPurchasesAreCompletedBy:storeKitVersion:': Observer Mode is now named PurchasesAreCompletedBy.") SWIFT_AVAILABILITY(tvos,obsoleted=1,message="'with' has been renamed to 'withPurchasesAreCompletedBy:storeKitVersion:': Observer Mode is now named PurchasesAreCompletedBy.") SWIFT_AVAILABILITY(ios,obsoleted=1,message="'with' has been renamed to 'withPurchasesAreCompletedBy:storeKitVersion:': Observer Mode is now named PurchasesAreCompletedBy.");
- (RCConfigurationBuilder * _Nonnull)withUsesStoreKit2IfAvailable:(BOOL)usesStoreKit2IfAvailable SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use .with(storeKitVersion:) to enable StoreKit 2");
@end


@interface RCConfigurationBuilder (SWIFT_EXTENSION(RevenueCat))
- (RCConfigurationBuilder * _Nonnull)withUsesStoreKit2IfAvailable:(BOOL)usesStoreKit2IfAvailable SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use .with(storeKitVersion:) to enable StoreKit 2");
- (RCConfigurationBuilder * _Nonnull)withObserverMode:(BOOL)observerMode SWIFT_WARN_UNUSED_RESULT SWIFT_AVAILABILITY(macos,obsoleted=1,message="'with' has been renamed to 'withPurchasesAreCompletedBy:storeKitVersion:': Observer Mode is now named PurchasesAreCompletedBy.") SWIFT_AVAILABILITY(watchos,obsoleted=1,message="'with' has been renamed to 'withPurchasesAreCompletedBy:storeKitVersion:': Observer Mode is now named PurchasesAreCompletedBy.") SWIFT_AVAILABILITY(tvos,obsoleted=1,message="'with' has been renamed to 'withPurchasesAreCompletedBy:storeKitVersion:': Observer Mode is now named PurchasesAreCompletedBy.") SWIFT_AVAILABILITY(ios,obsoleted=1,message="'with' has been renamed to 'withPurchasesAreCompletedBy:storeKitVersion:': Observer Mode is now named PurchasesAreCompletedBy.");
@end

/// Specifies the behavior for a caching API.
Expand Down Expand Up @@ -756,6 +761,7 @@ SWIFT_CLASS("_TtC10RevenueCat25CacheableNetworkOperation")
@end



/// <code>Configuration</code> can be used when configuring the <code>Purchases</code> instance. It is not required to be used, but
/// highly recommended. This class follows a builder pattern.
/// To configure your <code>Purchases</code> instance using this object, follow these steps.
Expand Down Expand Up @@ -1014,6 +1020,7 @@ SWIFT_CLASS("_TtC10RevenueCat24DiagnosticsPostOperation")
@interface DiagnosticsPostOperation : NetworkOperation
@end


enum RCPeriodType : NSInteger;
enum RCStore : NSInteger;
enum RCPurchaseOwnershipType : NSInteger;
Expand Down Expand Up @@ -1257,39 +1264,45 @@ SWIFT_CLASS("_TtC10RevenueCat32GetCustomerCenterConfigOperation")




SWIFT_CLASS("_TtC10RevenueCat24GetCustomerInfoOperation")
@interface GetCustomerInfoOperation : CacheableNetworkOperation
@end




SWIFT_CLASS("_TtC10RevenueCat28GetIntroEligibilityOperation")
@interface GetIntroEligibilityOperation : NetworkOperation
@end





SWIFT_CLASS("_TtC10RevenueCat21GetOfferingsOperation")
@interface GetOfferingsOperation : CacheableNetworkOperation
@end




SWIFT_CLASS("_TtC10RevenueCat37GetProductEntitlementMappingOperation")
@interface GetProductEntitlementMappingOperation : CacheableNetworkOperation
@end





SWIFT_CLASS("_TtC10RevenueCat15HealthOperation")
@interface HealthOperation : CacheableNetworkOperation
@end





enum RCIntroEligibilityStatus : NSInteger;

/// Holds the introductory price status
Expand Down Expand Up @@ -1342,6 +1355,7 @@ SWIFT_CLASS("_TtC10RevenueCat14LogInOperation")




/// Enumeration of the different verbosity levels.
/// <h4>Related Symbols</h4>
/// <ul>
Expand All @@ -1362,6 +1376,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, RCLogLevel, "LogLevel", open) {




/// Information that represents a non-subscription purchase made by a user.
/// This can be one of these types of product:
/// <ul>
Expand Down Expand Up @@ -1657,36 +1672,42 @@ SWIFT_CLASS("_TtC10RevenueCat28PostAdServicesTokenOperation")




SWIFT_CLASS("_TtC10RevenueCat28PostAttributionDataOperation")
@interface PostAttributionDataOperation : NetworkOperation
@end




SWIFT_CLASS("_TtC10RevenueCat28PostOfferForSigningOperation")
@interface PostOfferForSigningOperation : NetworkOperation
@end




/// A <code>NetworkOperation</code> for posting <code>PaywallEvent</code>s.
SWIFT_CLASS("_TtC10RevenueCat26PostPaywallEventsOperation")
@interface PostPaywallEventsOperation : NetworkOperation
@end



SWIFT_CLASS("_TtC10RevenueCat24PostReceiptDataOperation")
@interface PostReceiptDataOperation : CacheableNetworkOperation
@end





SWIFT_CLASS("_TtC10RevenueCat33PostSubscriberAttributesOperation")
@interface PostSubscriberAttributesOperation : NetworkOperation
@end



@class RCTargetingContext;

/// Stores information about how a <code>Package</code> was presented.
Expand Down Expand Up @@ -3196,7 +3217,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau
@end



@interface RCPurchasesDiagnostics (SWIFT_EXTENSION(RevenueCat))
/// Perform tests to ensure SDK is configured correctly.
/// <ul>
Expand All @@ -3210,6 +3230,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau




/// A type that can parse Apple receipts from a device.
/// This implements parsing based on <a href="https://rev.cat/apple-receipt-fields">Apple’s documentation</a>.
/// To use this class you must access <code>PurchasesReceiptParser/default</code>:
Expand All @@ -3226,14 +3247,13 @@ SWIFT_CLASS("_TtC10RevenueCat22PurchasesReceiptParser")




@interface PurchasesReceiptParser (SWIFT_EXTENSION(RevenueCat))
- (BOOL)receiptHasTransactionsWithReceiptData:(NSData * _Nonnull)receiptData SWIFT_WARN_UNUSED_RESULT;
@end





@interface PurchasesReceiptParser (SWIFT_EXTENSION(RevenueCat))
/// A default instance of <code>PurchasesReceiptParser</code>
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) PurchasesReceiptParser * _Nonnull default_;)
Expand All @@ -3242,6 +3262,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau




SWIFT_CLASS("_TtC10RevenueCat21RCPurchasesErrorUtils") SWIFT_AVAILABILITY(maccatalyst,obsoleted=1) SWIFT_AVAILABILITY(macos,obsoleted=1) SWIFT_AVAILABILITY(watchos,obsoleted=1) SWIFT_AVAILABILITY(tvos,obsoleted=1) SWIFT_AVAILABILITY(ios,obsoleted=1)
@interface RCPurchasesErrorUtils : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
Expand Down Expand Up @@ -3276,6 +3297,8 @@ typedef SWIFT_ENUM_NAMED(NSInteger, RCRefundRequestStatus, "RefundRequestStatus"





/// Enum of supported stores
typedef SWIFT_ENUM_NAMED(NSInteger, RCStore, "Store", open) {
/// For entitlements granted via Apple App Store.
Expand Down Expand Up @@ -3365,6 +3388,10 @@ typedef SWIFT_ENUM_NAMED(NSInteger, RCStoreMessageType, "StoreMessageType", open
RCStoreMessageTypePriceIncreaseConsent = 1,
/// Generic Store messages
RCStoreMessageTypeGeneric = 2,
/// Message shown when a subscriber is eligible to redeem a win-back offer that you’ve
/// configured in App Store Connect. More information can be found
/// <a href="https://developer.apple.com/documentation/storekit/message/reason/4418230-winbackoffer">here</a>.
RCStoreMessageTypeWinBackOffer = 3,
};

enum RCStoreProductType : NSInteger;
Expand Down

0 comments on commit 385b5b2

Please sign in to comment.