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

@ -74,6 +74,10 @@ impl<R: Runtime> NativeBridge<R> {
Err(crate::Error::UnsupportedPlatformError)
}
pub fn iap_is_available(&self) -> crate::Result<IAPIsAvailableResponse> {
Err(crate::Error::UnsupportedPlatformError)
}
pub fn iap_initialize(
&self,
_payload: IAPInitializeRequest,