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.29 #64

Merged
merged 1 commit into from
Jan 23, 2024
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.28'
s.version = '3.1.29'
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.
24 changes: 12 additions & 12 deletions NamiApple.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,57 +6,57 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>tvos-arm64_x86_64-simulator</string>
<string>tvos-arm64</string>
<key>LibraryPath</key>
<string>NamiApple.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>tvos</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>tvos-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>NamiApple.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<string>tvos</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>tvos-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>NamiApple.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>tvos</string>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>NamiApple.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.7 (swiftlang-5.7.0.127.4 clang-1400.0.29.50)
// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
#ifndef NAMIAPPLE_SWIFT_H
#define NAMIAPPLE_SWIFT_H
#pragma clang diagnostic push
Expand Down Expand Up @@ -1100,15 +1100,13 @@ enum NamiPurchaseSource : NSInteger;
SWIFT_CLASS("_TtC9NamiApple12NamiPurchase")
@interface NamiPurchase : NSObject
@property (nonatomic, readonly, copy) NSString * _Nonnull skuId;
@property (nonatomic, copy) NSString * _Nullable originalTransactionId;
@property (nonatomic, copy) NSString * _Nullable transactionIdentifier;
@property (nonatomic, copy) NSDate * _Nonnull purchaseInitiatedTimestamp;
@property (nonatomic, copy) NSDate * _Nullable expires;
@property (nonatomic) enum NamiPurchaseSource purchaseSource;
@property (nonatomic) NSInteger consumptionCount;
@property (nonatomic, readonly, copy) NSArray<NamiEntitlement *> * _Nonnull entitlementsGranted;
- (nonnull instancetype)initWithProductIdentifier:(NSString * _Nonnull)productIdentifier purchaseSource:(enum NamiPurchaseSource)purchaseSource OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic) BOOL isSubscription;
@property (nonatomic, strong) NamiSKU * _Nullable sku;
@property (nonatomic, readonly, strong) NamiSKU * _Nullable sku;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
Expand All @@ -1119,33 +1117,20 @@ enum NamiRestorePurchasesState : NSInteger;
/// Class to work with and manage purchases on the device.
SWIFT_CLASS("_TtC9NamiApple19NamiPurchaseManager")
@interface NamiPurchaseManager : NSObject
/// Checks to see if a SkuId (product app for Apple devices) has been purchased by the current device owner or not.
/// Checks to see if the App Store skuId has been purchased by the current device owner or not.
/// \param skuID ID of SKU you wish to check for purchase status
///
///
/// returns:
/// true if the SKU has been purchased, false otherwise.
+ (BOOL)skuPurchased:(NSString * _Nonnull)skuId SWIFT_WARN_UNUSED_RESULT;
/// Checks to see if any one of an array of SKUID (product app for Apple devices) has been purchased by the current device owner or not.
+ (void)skuPurchased:(NSString * _Nonnull)skuId completionHandler:(void (^ _Nonnull)(BOOL))completionHandler;
/// Checks to see if any one of an array of App Store skuIds has been purchased by the current device owner or not.
/// \param skuIDs Array of IDs of SKU you wish to check for purchase status
///
///
/// returns:
/// true if any SKU in the passed in array has been purchased, false otherwise.
+ (BOOL)anySkuPurchased:(NSArray<NSString *> * _Nonnull)skuIds SWIFT_WARN_UNUSED_RESULT;
/// Checks to see if a SKUID (product app for Apple devices) has been purchased, and returns the purchase record if found (holds things like purchase and expiration date if known).
/// \param skuID ID of SKU you wish to check for purchase status
///
///
/// returns:
/// NamiPurchase if found, .none otherwise.
+ (NamiPurchase * _Nullable)getRecordForSKU:(NSString * _Nonnull)skuId SWIFT_WARN_UNUSED_RESULT;
/// Takes in a set of SKUIDs (productIDs for Apple) and loads NamiSKU objects with StoreKIt and other metadata, so that you can examine product details or use for other calls. If you pass in SKUIDs the system does not recognize, they will be returned as invalid and no NamiSKU objects will be returned for those IDs.
/// \param skuIDs ID of SKU you wish to check for purchase status
///
/// \param productHandler A callback to be given the loaded NamiSKU objects from the IDs you passed in, along with an array of invalid IDs the system could not load.
///
+ (void)skusForSKUIdsWithSkuIds:(NSArray<NSString *> * _Nonnull)skuIds productHandler:(void (^ _Nonnull)(BOOL, NSArray<NamiSKU *> * _Nullable, NSArray<NSString *> * _Nullable, NSError * _Nullable))productHandler;
/// true if any sku id, passed in array has been purchased, false otherwise.
+ (void)anySkuPurchased:(NSArray<NSString *> * _Nonnull)skuIds completionHandler:(void (^ _Nonnull)(BOOL))completionHandler;
/// Returns all known purchases for the current device.
///
/// returns:
Expand Down Expand Up @@ -1176,17 +1161,26 @@ SWIFT_CLASS("_TtC9NamiApple19NamiPurchaseManager")
/// \param handler A callback called when the restore process is complete, with state indicators and all known purchases found.
///
+ (void)restorePurchasesWithStatehandler:(void (^ _Nonnull)(enum NamiRestorePurchasesState, NSArray<NamiPurchase *> * _Nonnull, NSArray<NamiPurchase *> * _Nonnull, NSError * _Nullable))statehandler;
/// Activates the system restore purchases feature, which replays all prior purchase transactions to determine which purchases are active. This may trigger an app store password prompt if called, so only call this at the request of the user. Generally this is not needed if your Nami account supports receipt validation, as the receipt is checked every time the app comes to the foreground and can determine active purchases that way.
/// \param handler A callback called when the restore process is complete, with success flag and errors (if any)
///
+ (void)restorePurchasesWithHandler:(void (^ _Nonnull)(BOOL, NSError * _Nullable))handler SWIFT_DEPRECATED;
/// For consumable purchases only, tells the system a purchase has been consumed - that is to say, your application has altered the application permanently to account for the purchase. If you do not consume a consumable purchase, the purcahse will come back with every application launch.
/// \param skuID The ID (product ID for Apple) of the product you wish to consume - note that it must be purchased or this call will do nothing.
///
+ (void)consumePurchasedSkuWithSkuId:(NSString * _Nonnull)skuId;
/// Prompts iOS to show the system Subscription Offer Code redemption sheet, which the user can then enter a redemption code into.
/// Note that this call will do nothing on pre-ios14 devices, which do not implement that call and cannot redeem offer codes.
+ (void)presentCodeRedemptionSheet;
/// Checks to see if a SKUID (product app for Apple devices) has been purchased, and returns the purchase record if found (holds things like purchase and expiration date if known).
/// \param skuID ID of SKU you wish to check for purchase status
///
///
/// returns:
/// NamiPurchase if found, .none otherwise.
+ (NamiPurchase * _Nullable)getRecordForSKU:(NSString * _Nonnull)skuId SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("", "getPurchase");
/// Takes in a set of SKUIDs (productIDs for Apple) and loads NamiSKU objects with StoreKIt and other metadata, so that you can examine product details or use for other calls. If you pass in SKUIDs the system does not recognize, they will be returned as invalid and no NamiSKU objects will be returned for those IDs.
/// \param skuIDs ID of SKU you wish to check for purchase status
///
/// \param productHandler A callback to be given the loaded NamiSKU objects from the IDs you passed in, along with an array of invalid IDs the system could not load.
///
+ (void)skusForSKUIdsWithSkuIds:(NSArray<NSString *> * _Nonnull)skuIds productHandler:(void (^ _Nonnull)(BOOL, NSArray<NamiSKU *> * _Nullable, NSArray<NSString *> * _Nullable, NSError * _Nullable))productHandler SWIFT_DEPRECATED;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

Expand Down Expand Up @@ -1342,8 +1336,7 @@ typedef SWIFT_ENUM(NSInteger, SandboxAccelerationItemUnit, open) {
typedef SWIFT_ENUM(NSInteger, StoreKitEnvironmentObjC, open) {
StoreKitEnvironmentObjCProduction = 0,
StoreKitEnvironmentObjCSandbox = 1,
StoreKitEnvironmentObjCNamiStoreKitBypass = 2,
StoreKitEnvironmentObjCEnvironmentNotYetDetected = 3,
StoreKitEnvironmentObjCEnvironmentNotYetDetected = 2,
};


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