fix(iap): don't initialize billing on Android without google play service, closes #2630 (#2677)

This commit is contained in:
Huang Xin 2025-12-10 22:34:23 +08:00 committed by GitHub
parent 669d3950e2
commit 5141be1c3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 140 additions and 8 deletions

View file

@ -706,6 +706,10 @@ class NativeBridgePlugin: Plugin {
}
}
@objc public func iap_is_available(_ invoke: Invoke) {
invoke.resolve(["available": true])
}
@objc public func iap_initialize(_ invoke: Invoke) {
StoreKitManager.shared.initialize()
invoke.resolve(["success": true])