-
Notifications
You must be signed in to change notification settings - Fork 10
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 #44 from adjust/v4370
Version 4.37.0
- Loading branch information
Showing
70 changed files
with
1,827 additions
and
190 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.32.0 | ||
4.37.0 |
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,28 @@ | ||
// | ||
// ADJAppStorePurchase2dx.h | ||
// Adjust SDK | ||
// | ||
// Created by Uglješa Erceg (@uerceg) on 17th January 2024. | ||
// Copyright © 2015-Present Adjust GmbH. All rights reserved. | ||
// | ||
|
||
#ifndef _ADJUST_ADJAPPSTOREPURCHASE2DX_H_ | ||
#define _ADJUST_ADJAPPSTOREPURCHASE2DX_H_ | ||
|
||
#include <iostream> | ||
|
||
class ADJAppStorePurchase2dx { | ||
private: | ||
void* purchase; | ||
void initPurchase(std::string productId, std::string transactionId, std::string receipt); | ||
|
||
public: | ||
ADJAppStorePurchase2dx() {} | ||
ADJAppStorePurchase2dx(std::string productId, std::string transactionId, std::string receipt) { | ||
initPurchase(productId, transactionId, receipt); | ||
} | ||
|
||
void* getPurchase(); | ||
}; | ||
|
||
#endif /* _ADJUST_ADJAPPSTOREPURCHASE2DX_H_ */ |
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 @@ | ||
// | ||
// ADJAppStorePurchase2dx.mm | ||
// Adjust SDK | ||
// | ||
// Created by Uglješa Erceg (@uerceg) on 17th January 2024. | ||
// Copyright © 2015-Present Adjust GmbH. All rights reserved. | ||
// | ||
|
||
#include "ADJAppStorePurchase2dx.h" | ||
#include <AdjustSdk/ADJPurchase.h> | ||
|
||
void ADJAppStorePurchase2dx::initPurchase(std::string productId, std::string transactionId, std::string receipt) { | ||
NSString *strProductId = [NSString stringWithUTF8String:productId.c_str()]; | ||
NSString *strTransactionId = [NSString stringWithUTF8String:transactionId.c_str()]; | ||
NSString *strReceipt = [NSString stringWithUTF8String:receipt.c_str()]; | ||
purchase = [[ADJPurchase alloc] initWithTransactionId:strTransactionId | ||
productId:strProductId | ||
andReceipt:[strReceipt dataUsingEncoding:NSUTF8StringEncoding]]; | ||
} | ||
|
||
void* ADJAppStorePurchase2dx::getPurchase() { | ||
return purchase; | ||
} |
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
Oops, something went wrong.