-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* iOS updates for 6.15.3 validateAndLog public API * Fix image assets file in the sample app iOS project TBD - update logAdRevenue
- Loading branch information
1 parent
b565192
commit 69868b5
Showing
57 changed files
with
1,008 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
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,15 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "Icon-180.png", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
}, | ||
"properties" : { | ||
"template-rendering-intent" : "original" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,51 @@ | ||
// | ||
// AFSDKXPurchaseDetails.cpp | ||
// MyGame | ||
// | ||
// Created by ivan.obodovskyi on 02.10.2024. | ||
// | ||
|
||
#include <stdio.h> | ||
#include "AFSDKXPurchaseDetails.h" | ||
|
||
AFSDKXPurchaseDetails::AFSDKXPurchaseDetails(const std::string &productId, | ||
const std::string &price, | ||
const std::string ¤cy, | ||
const std::string &transactionId) | ||
: productId_(productId), | ||
price_(price), | ||
currency_(currency), | ||
transactionId_(transactionId) { | ||
} | ||
|
||
std::string AFSDKXPurchaseDetails::getProductId() const { | ||
return productId_; | ||
} | ||
|
||
void AFSDKXPurchaseDetails::setProductId(const std::string &productId) { | ||
productId_ = productId; | ||
} | ||
|
||
std::string AFSDKXPurchaseDetails::getPrice() const { | ||
return price_; | ||
} | ||
|
||
void AFSDKXPurchaseDetails::setPrice(const std::string &price) { | ||
price_ = price; | ||
} | ||
|
||
std::string AFSDKXPurchaseDetails::getCurrency() const { | ||
return currency_; | ||
} | ||
|
||
void AFSDKXPurchaseDetails::setCurrency(const std::string ¤cy) { | ||
currency_ = currency; | ||
} | ||
|
||
std::string AFSDKXPurchaseDetails::getTransactionId() const { | ||
return transactionId_; | ||
} | ||
|
||
void AFSDKXPurchaseDetails::setTransactionId(const std::string &transactionId) { | ||
transactionId_ = transactionId; | ||
} |
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,54 @@ | ||
// | ||
// AFSDKXPurchaseDetails.h | ||
// MyGame | ||
// | ||
// Created by ivan.obodovskyi on 02.10.2024. | ||
// | ||
|
||
#ifndef AFSDKXPurchaseDetails_h | ||
#define AFSDKXPurchaseDetails_h | ||
|
||
#include <string> | ||
#include "cocos2d.h" | ||
#include "AFSDKXValidateAndLogResult.h" | ||
|
||
|
||
class AFSDKXPurchaseDetails { | ||
public: | ||
// Deleted default constructor to prevent usage. | ||
AFSDKXPurchaseDetails() = delete; | ||
|
||
// Constructor with parameters to initialize the properties. | ||
AFSDKXPurchaseDetails(const std::string &productId, | ||
const std::string &price, | ||
const std::string ¤cy, | ||
const std::string &transactionId); | ||
|
||
// Default destructor. | ||
virtual ~AFSDKXPurchaseDetails() = default; | ||
|
||
// Public assignment and copy constructors | ||
AFSDKXPurchaseDetails(const AFSDKXPurchaseDetails &) = default; | ||
AFSDKXPurchaseDetails &operator=(const AFSDKXPurchaseDetails &) = default; | ||
|
||
// Getters and setters for private member variables. | ||
std::string getProductId() const; | ||
void setProductId(const std::string &productId); | ||
|
||
std::string getPrice() const; | ||
void setPrice(const std::string &price); | ||
|
||
std::string getCurrency() const; | ||
void setCurrency(const std::string ¤cy); | ||
|
||
std::string getTransactionId() const; | ||
void setTransactionId(const std::string &transactionId); | ||
|
||
private: | ||
// Private member variables. | ||
std::string productId_; | ||
std::string price_; | ||
std::string currency_; | ||
std::string transactionId_; | ||
}; | ||
#endif /* AFSDKXPurchaseDetails_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,35 @@ | ||
// | ||
// AFSDKXValidateAndLogResult.cpp | ||
// MyGame | ||
// | ||
// Created by ivan.obodovskyi on 03.10.2024. | ||
// | ||
|
||
#include <stdio.h> | ||
#include "AFSDKXValidateAndLogResult.h" | ||
|
||
// Constructor implementation. | ||
AFSDKXValidateAndLogResult::AFSDKXValidateAndLogResult( | ||
AFSDKXValidateAndLogStatus status, | ||
const cocos2d::ValueMap& result, | ||
const cocos2d::ValueMap& errorData, | ||
const std::shared_ptr<Error>& error) | ||
: status_(status), result_(result), errorData_(errorData), error_(error) { | ||
} | ||
|
||
// Getter methods implementation. | ||
AFSDKXValidateAndLogStatus AFSDKXValidateAndLogResult::getStatus() const { | ||
return status_; | ||
} | ||
|
||
cocos2d::ValueMap AFSDKXValidateAndLogResult::getResult() const { | ||
return result_; | ||
} | ||
|
||
cocos2d::ValueMap AFSDKXValidateAndLogResult::getErrorData() const { | ||
return errorData_; | ||
} | ||
|
||
std::shared_ptr<Error> AFSDKXValidateAndLogResult::getError() const { | ||
return error_; | ||
} |
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,52 @@ | ||
// | ||
// AFSDKXValidateAndLogResult.h | ||
// MyGame | ||
// | ||
// Created by ivan.obodovskyi on 03.10.2024. | ||
// | ||
|
||
#ifndef AFSDKXValidateAndLogResult_h | ||
#define AFSDKXValidateAndLogResult_h | ||
|
||
#include <cocos2d.h> | ||
#include <unordered_map> | ||
#include <string> | ||
#include <memory> | ||
#include <optional> | ||
|
||
// Assuming an error class similar to NSError exists in your C++ code. | ||
class Error; | ||
|
||
// Enum to represent validation status | ||
enum class AFSDKXValidateAndLogStatus { | ||
Success, | ||
Failure, | ||
Error | ||
}; | ||
|
||
class AFSDKXValidateAndLogResult { | ||
public: | ||
// Deleting default constructor to prevent usage. | ||
AFSDKXValidateAndLogResult() = delete; | ||
|
||
// Constructor with initialization list. | ||
AFSDKXValidateAndLogResult(AFSDKXValidateAndLogStatus status, | ||
const cocos2d::ValueMap& result, | ||
const cocos2d::ValueMap& errorData, | ||
const std::shared_ptr<Error>& error); | ||
|
||
// Getter methods | ||
AFSDKXValidateAndLogStatus getStatus() const; | ||
cocos2d::ValueMap getResult() const; | ||
cocos2d::ValueMap getErrorData() const; | ||
std::shared_ptr<Error> getError() const; | ||
|
||
private: | ||
// Member variables. | ||
AFSDKXValidateAndLogStatus status_; | ||
cocos2d::ValueMap result_; | ||
cocos2d::ValueMap errorData_; | ||
std::shared_ptr<Error> error_; | ||
}; | ||
|
||
#endif /* AFSDKXValidateAndLogResult_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
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
Oops, something went wrong.