mirror of
https://github.com/readest/readest.git
synced 2026-05-03 05:50:55 +00:00
feat: add IAP in native bridge plugin for iOS (#1673)
This commit is contained in:
parent
beaf034035
commit
f3e9983742
16 changed files with 718 additions and 2 deletions
|
|
@ -73,4 +73,29 @@ impl<R: Runtime> NativeBridge<R> {
|
|||
) -> crate::Result<()> {
|
||||
Err(crate::Error::UnsupportedPlatformError)
|
||||
}
|
||||
|
||||
pub fn iap_initialize(
|
||||
&self,
|
||||
_payload: IAPInitializeRequest,
|
||||
) -> crate::Result<IAPInitializeResponse> {
|
||||
Err(crate::Error::UnsupportedPlatformError)
|
||||
}
|
||||
|
||||
pub fn iap_fetch_products(
|
||||
&self,
|
||||
_payload: IAPFetchProductsRequest,
|
||||
) -> crate::Result<IAPFetchProductsResponse> {
|
||||
Err(crate::Error::UnsupportedPlatformError)
|
||||
}
|
||||
|
||||
pub fn iap_purchase_product(
|
||||
&self,
|
||||
_payload: IAPPurchaseProductRequest,
|
||||
) -> crate::Result<IAPPurchaseProductResponse> {
|
||||
Err(crate::Error::UnsupportedPlatformError)
|
||||
}
|
||||
|
||||
pub fn iap_restore_purchases(&self) -> crate::Result<IAPRestorePurchasesResponse> {
|
||||
Err(crate::Error::UnsupportedPlatformError)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue