feat: in-app updater for Android (#885)

This commit is contained in:
Huang Xin 2025-04-14 20:21:58 +08:00 committed by GitHub
parent 5c23642ac0
commit 8efad90932
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
48 changed files with 720 additions and 366 deletions

View file

@ -35,3 +35,11 @@ pub(crate) async fn use_background_audio<R: Runtime>(
) -> Result<()> {
app.native_bridge().use_background_audio(payload)
}
#[command]
pub(crate) async fn install_package<R: Runtime>(
app: AppHandle<R>,
payload: InstallPackageRequest,
) -> Result<InstallPackageResponse> {
app.native_bridge().install_package(payload)
}