mirror of
https://github.com/readest/readest.git
synced 2026-04-30 12:31:02 +00:00
fix(iap): open external app for payment (#2465)
This commit is contained in:
parent
bfac67d3f0
commit
6d5b16ea8b
14 changed files with 179 additions and 4 deletions
|
|
@ -149,6 +149,14 @@ pub(crate) async fn get_external_sdcard_path<R: Runtime>(
|
|||
app.native_bridge().get_external_sdcard_path()
|
||||
}
|
||||
|
||||
#[command]
|
||||
pub(crate) async fn open_external_url<R: Runtime>(
|
||||
app: AppHandle<R>,
|
||||
payload: OpenExternalUrlRequest,
|
||||
) -> Result<OpenExternalUrlResponse> {
|
||||
app.native_bridge().open_external_url(payload)
|
||||
}
|
||||
|
||||
#[command]
|
||||
pub(crate) async fn request_manage_storage_permission<R: Runtime>(
|
||||
app: AppHandle<R>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue