Skip to content

Commit 906b03a

Browse files
committed
update ios native sdk to 6.17.7
1 parent 5be585f commit 906b03a

7 files changed

Lines changed: 458 additions & 21 deletions

ios/AFSDKPurchaseDetails.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//
2+
// AFSDKPurchaseDetails.h
3+
// AppsFlyerLib
4+
//
5+
// Created by Moris Gateno on 13/03/2024.
6+
//
7+
8+
#import <AppsFlyerLib/AFSDKPurchaseType.h>
9+
10+
@interface AFSDKPurchaseDetails : NSObject
11+
12+
- (instancetype)init NS_UNAVAILABLE;
13+
+ (instancetype)new NS_UNAVAILABLE;
14+
15+
@property (nonatomic, copy, readonly) NSString *productId;
16+
@property (nonatomic, copy, readonly) NSString *transactionId;
17+
@property (nonatomic, assign, readonly) AFSDKPurchaseType purchaseType;
18+
19+
// Designated initializer for VAL2-compliant purchase object
20+
- (instancetype)initWithProductId:(NSString *)productId
21+
transactionId:(NSString *)transactionId
22+
purchaseType:(AFSDKPurchaseType)purchaseType NS_DESIGNATED_INITIALIZER;
23+
24+
@end

ios/AFSDKPurchaseType.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// AFSDKPurchaseType.h
3+
// AppsFlyerLib
4+
//
5+
// Created by Amit Levy on 13/05/2025.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
typedef NS_CLOSED_ENUM(NSUInteger, AFSDKPurchaseType) {
11+
AFSDKPurchaseTypeSubscription,
12+
AFSDKPurchaseTypeOneTimePurchase
13+
} NS_SWIFT_NAME(AFSDKPurchaseType);
14+
15+
// Helper to get string route name
16+
FOUNDATION_EXPORT NSString *StringFromAFSDKPurchaseType(AFSDKPurchaseType type);

ios/AFSDKValidateAndLogResult.h

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//
2+
// AFSDKValidateAndLogResult.h
3+
// AppsFlyerLib
4+
//
5+
// Created by Moris Gateno on 13/03/2024.
6+
//
7+
8+
9+
typedef NS_CLOSED_ENUM(NSUInteger, AFSDKValidateAndLogStatus) {
10+
AFSDKValidateAndLogStatusSuccess,
11+
AFSDKValidateAndLogStatusFailure,
12+
AFSDKValidateAndLogStatusError
13+
} NS_SWIFT_NAME(ValidateAndLogStatus);
14+
15+
NS_SWIFT_NAME(ValidateAndLogResult)
16+
@interface AFSDKValidateAndLogResult : NSObject
17+
18+
- (nonnull instancetype)init NS_UNAVAILABLE;
19+
+ (nonnull instancetype)new NS_UNAVAILABLE;
20+
21+
- (instancetype _Nonnull )initWithStatus:(AFSDKValidateAndLogStatus)status
22+
result:(NSDictionary *_Nullable)result
23+
errorData:(NSDictionary *_Nullable)errorData
24+
error:(NSError *_Nullable)error;
25+
26+
@property(readonly) AFSDKValidateAndLogStatus status;
27+
// Success case
28+
@property(readonly, nullable) NSDictionary *result;
29+
// Server 200 with validation failure
30+
@property(readonly, nullable) NSDictionary *errorData;
31+
// for the error case
32+
@property(readonly, nullable) NSError *error;
33+
34+
@end
35+

0 commit comments

Comments
 (0)