mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 19:42:39 +08:00
Implementation of google play auto login, achievements, PGS Recall API (#18416)
This commit is contained in:
-25
@@ -39,31 +39,6 @@
|
||||
#include "vendor/google/billing/result-values/BillingResult.h"
|
||||
|
||||
namespace cc {
|
||||
BillingClient::scopedListener::scopedListener(se::Object* obj) : _obj(obj) {
|
||||
if (_obj) {
|
||||
_obj->root();
|
||||
_obj->incRef();
|
||||
}
|
||||
}
|
||||
|
||||
BillingClient::scopedListener::~scopedListener() {
|
||||
if (_obj) {
|
||||
_obj->unroot();
|
||||
_obj->decRef();
|
||||
}
|
||||
}
|
||||
|
||||
void BillingClient::scopedListener::reset(se::Object* obj) {
|
||||
if (_obj) {
|
||||
_obj->unroot();
|
||||
_obj->decRef();
|
||||
}
|
||||
_obj = obj;
|
||||
if (_obj) {
|
||||
_obj->root();
|
||||
_obj->incRef();
|
||||
}
|
||||
}
|
||||
|
||||
BillingClient::Builder& BillingClient::Builder::enableUserChoiceBilling(se::Object* listener) {
|
||||
if (!listener) {
|
||||
|
||||
Reference in New Issue
Block a user