-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #531 from qonversion/release/5.12.0
Release 5.12.0
- Loading branch information
Showing
32 changed files
with
456 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// QONPromotionalOffer.h | ||
// Qonversion | ||
// | ||
// Created by Suren Sarkisyan on 20.06.2024. | ||
// Copyright © 2024 Qonversion Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <StoreKit/StoreKit.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
NS_SWIFT_NAME(Qonversion.PromotionalOffer) | ||
API_AVAILABLE(ios(12.2), macos(10.14.4), watchos(6.2), visionos(1.0)) | ||
@interface QONPromotionalOffer : NSObject | ||
|
||
@property (nonatomic, strong) SKProductDiscount *productDiscount; | ||
@property (nonatomic, strong) SKPaymentDiscount *paymentDiscount; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// QONPromotionalOffer.m | ||
// Qonversion | ||
// | ||
// Created by Suren Sarkisyan on 20.06.2024. | ||
// Copyright © 2024 Qonversion Inc. All rights reserved. | ||
// | ||
|
||
#import "QONPromotionalOffer.h" | ||
|
||
@implementation QONPromotionalOffer | ||
|
||
- (instancetype)initWithProductDiscount:(SKProductDiscount *)productDiscount paymentDiscount:(SKPaymentDiscount *)paymentDiscount { | ||
self = [super init]; | ||
|
||
if (self) { | ||
_productDiscount = productDiscount; | ||
_paymentDiscount = paymentDiscount; | ||
} | ||
|
||
return self; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// | ||
// QONPurchaseOptions.h | ||
// Qonversion | ||
// | ||
// Created by Suren Sarkisyan on 25.07.2024. | ||
// Copyright © 2024 Qonversion Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
NS_SWIFT_NAME(Qonversion.PurchaseOptions) | ||
/** | ||
Instances of this class should be used to add additional options to the purchase process. | ||
*/ | ||
@interface QONPurchaseOptions : NSObject | ||
|
||
// Quantity of product purchasing. Use for consumable in-app products. | ||
@property (nonatomic, assign) NSInteger quantity; | ||
|
||
// Context keys associated with a purchase. Use this field to associate a purchase with a concrete remote config. | ||
@property (nonatomic, copy, nullable) NSArray<NSString *> *contextKeys; | ||
|
||
/** | ||
Initialize purchase options with quantity. | ||
@param quantity quantity of product purchasing. Use for consumable in-app products. | ||
@return QONPurchaseOptions instance | ||
*/ | ||
- (instancetype)initWithQuantity:(NSInteger)quantity NS_SWIFT_UNAVAILABLE("Use swift style initializer instead."); | ||
|
||
/** | ||
Initialize purchase options with quantity and context keys. | ||
@param quantity quantity of product purchasing. Use for consumable in-app products. | ||
@param contextKeys context keys associated with a purchase. Use this field to associate a purchase with a concrete remote config. | ||
@return QONPurchaseOptions instance | ||
*/ | ||
- (instancetype)initWithQuantity:(NSInteger)quantity contextKeys:(NSArray<NSString *> * _Nullable)contextKeys NS_SWIFT_UNAVAILABLE("Use swift style initializer instead."); | ||
|
||
/** | ||
Initialize purchase options with context keys. | ||
@param contextKeys context keys associated with a purchase. Use this field to associate a purchase with a concrete remote config. | ||
@return QONPurchaseOptions instance | ||
*/ | ||
- (instancetype)initWithContextKeys:(NSArray<NSString *> * _Nullable)contextKeys NS_SWIFT_UNAVAILABLE("Use swift style initializer instead."); | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.