feat: add IAP server api (#1676)

This commit is contained in:
Huang Xin
2025-07-25 20:44:56 +08:00
committed by GitHub
parent f3e9983742
commit 8974a87168
14 changed files with 2030 additions and 64 deletions
+1 -3
View File
@@ -45,7 +45,7 @@ interface RestorePurchasesResponse {
purchases: IAPPurchase[];
}
class IAPService {
export class IAPService {
async initialize(): Promise<boolean> {
const result = await invoke<InitializeResponse>('plugin:native-bridge|iap_initialize', {
payload: {} as InitializeRequest,
@@ -95,5 +95,3 @@ class IAPService {
}
}
}
export default IAPService;