Skip to content

Commit

Permalink
Tweak. (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar authored Dec 12, 2024
1 parent 55e08ae commit 075bb9b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion @types/jsb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ declare namespace jsb {
* @en To string
* @zh 转换成字符串
*/
toStr(): string;
toString(): string;
/**
* @en The offer details of an one-time purchase product.
* @zh 代表一次性购买产品的报价详情。
Expand Down
1 change: 0 additions & 1 deletion native/vendor/google/billing/JniBilling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ cc::ProductDetails* JniBilling::toProductDetail(JNIEnv* env, jobject productObj)
jclass listClazz = env->GetObjectClass(listObj);
jmethodID listGetMethod = env->GetMethodID(listClazz, "get", "(I)Ljava/lang/Object;");
int size = callIntMethod(env, listClazz, listObj, "size");
std::vector<cc::ProductDetails::SubscriptionOfferDetails*> details;
for (int i = 0; i < size; ++i) {
jobject subscriptionOfferDetailsObj = env->CallObjectMethod(listObj, listGetMethod, i);
cc::ProductDetails::SubscriptionOfferDetails* detail = toSubscriptionOfferDetails(env, subscriptionOfferDetailsObj);
Expand Down
1 change: 1 addition & 0 deletions vendor/google/billing/billing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export declare namespace google {

export namespace BillingClient {
export type Builder = jsb.BillingClientBuilder;
export type ConnectionState = jsb.ConnectionState;
}
export type BillingClient = jsb.BillingClient;
export namespace BillingFlowParams {
Expand Down

0 comments on commit 075bb9b

Please sign in to comment.