Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.1.21 #59

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Nami.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Nami'
s.version = '3.1.18'
s.version = '3.1.21'
s.summary = 'Easy Apple StoreKit subscriptions & in-app purchases, with powerful built-in paywalls and A/B testing.'

s.description = <<-DESC
Expand Down
Binary file modified NamiApple.xcframework.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,6 @@ SWIFT_CLASS("_TtC9NamiApple20CustomerJourneyState")
@end



SWIFT_CLASS("_TtC9NamiApple12ImageService")
@interface ImageService : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end




/// Possible campaign errors from the launch call.
typedef SWIFT_ENUM(NSInteger, LaunchCampaignError, open) {
LaunchCampaignErrorDEFAULT_CAMPAIGN_NOT_FOUND = 0,
Expand All @@ -281,6 +271,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Nami * _Nonn
@end

@class NamiConfiguration;
enum NamiConfigureState : NSInteger;
enum NamiLogLevel : NSInteger;

@interface Nami (SWIFT_EXTENSION(NamiApple))
Expand All @@ -289,6 +280,12 @@ enum NamiLogLevel : NSInteger;
/// \param namiConfig NamiConfiguration object instance with appPlatformID set to value defined for this app in the Control Center.
///
+ (void)configureWith:(NamiConfiguration * _Nonnull)namiConfig :(void (^ _Nullable)(BOOL))sdkInitHandler;
/// This is the initial call that activates the Nami SDK, it should be called as soon as possible within your app (preferably first in ApplicationDidFinishLaunching).
/// It is passed a configuration object that defines at a minimum the App Platform ID Nami should use, but also other adjustments to how Nami should operate.
/// \param namiConfig NamiConfiguration object instance with appPlatformID set to value defined for this app in the Control Center.
/// If called again during runtime, this method will evaluate what changes to the previous configuration occured and react accordingly.
///
+ (void)configureWithConfig:(NamiConfiguration * _Nonnull)namiConfig :(void (^ _Nullable)(BOOL, enum NamiConfigureState))sdkInitStateHandler;
/// Allows for dynamic re-adjustment of SDK log level if desired, from the log level set in the <code>NamiConfiguration</code> object.
/// \param logLevel New log level you wish to set, same as the log levels that can be set in the Nami.configure() call.
///
Expand Down Expand Up @@ -387,14 +384,6 @@ SWIFT_CLASS("_TtC9NamiApple19NamiCampaignManager")
@end


SWIFT_CLASS("_TtC9NamiApple11NamiCommand")
@interface NamiCommand : NSObject
+ (void)performCommands:(NSArray<NSString *> * _Nonnull)commands;
+ (void)performCommand:(NSString * _Nonnull)commandString;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// Configuration object to use with the Nami.configure() call.
SWIFT_CLASS("_TtC9NamiApple17NamiConfiguration")
@interface NamiConfiguration : NSObject
Expand All @@ -420,10 +409,18 @@ SWIFT_CLASS("_TtC9NamiApple17NamiConfiguration")
@property (nonatomic, copy) NSString * _Nullable customHostname;
/// Used to activate internal features of the SDK not generally used by Nami customers.
@property (nonatomic, copy) NSArray<NSString *> * _Nonnull namiCommands;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

typedef SWIFT_ENUM(NSInteger, NamiConfigureState, open) {
NamiConfigureStateInitial_success = 0,
NamiConfigureStateReconfig_success = 1,
NamiConfigureStateAlready_configured = 2,
NamiConfigureStateNot_configured = 3,
};


SWIFT_CLASS("_TtC9NamiApple19NamiCustomerManager")
@interface NamiCustomerManager : NSObject
Expand Down Expand Up @@ -956,6 +953,7 @@ SWIFT_CLASS("_TtC9NamiApple18NamiPaywallManager")
@class NamiPurchaseSuccess;
@class SKProduct;
@class SKPaymentTransaction;
@class NamiPromo;

@interface NamiPaywallManager (SWIFT_EXTENSION(NamiApple))
/// Provides Nami a callback to activate addiitonal UI required for the user to attempt to log in. This is called when a paywall is raised that has a “sign in” button the user taps.
Expand Down Expand Up @@ -1024,6 +1022,8 @@ SWIFT_CLASS("_TtC9NamiApple18NamiPaywallManager")
+ (void)hide;
/// Use this to check if a paywall is currently being shown to the end user
+ (BOOL)isPaywallOpen SWIFT_WARN_UNUSED_RESULT;
/// Receive a signed signature for applying to a promotion. Requires a proper entitlement to use.
+ (void)getSignedPromoWithSkuId:(NSString * _Nonnull)skuId promoId:(NSString * _Nonnull)promoId completeHandler:(void (^ _Nullable)(NamiPromo * _Nullable))completeHandler;
@end


Expand All @@ -1034,6 +1034,13 @@ SWIFT_CLASS("_TtC9NamiApple18NamiProductManager")




SWIFT_CLASS("_TtC9NamiApple9NamiPromo")
@interface NamiPromo : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@class NSDate;
enum NamiPurchaseSource : NSInteger;

Expand Down
Binary file modified NamiApple.xcframework/ios-arm64/NamiApple.framework/Info.plist
Binary file not shown.
Binary file not shown.
Loading