Tauri 2.0.0-alpha.4 Released
A new alpha release for the 2.0 has been published. This release includes all changes from the upcoming Tauri 1.3 release, an important breaking change on the HTTP client and native mobile capabilities for Tauri plugins.
Updating dependencies
Make sure to update both NPM and Cargo dependencies to the latest alpha release. You can update the NPM dependencies with:
Recreate the mobile projects to use the new features:
HTTP Client Breaking Change
The default HTTP client using attohttpc
has been removed due to issues with the development server proxy on Windows. All reqwest-*
feature flags have been removed because reqwest
is now the client we use.
Native Mobile Functionality for Tauri Plugins
A Tauri plugin now can access iOS via Swift and Android APIs via Kotlin or Java code, simplifying usage of platform interfaces such as camera or geolocation. To bootstrap the iOS and Android projects on an existing plugin, run tauri plugin ios add
and tauri plugin android add
. New plugins automatically include all the configuration needed to write native mobile code.
Here’s an example of a plugin that takes a string value and resolves an object:
Android plugin:
iOS plugin:
Rust code to initialize the plugin:
Frontend code to call the plugin command:
Check out the upcoming camera plugin and path plugin.
© 2024 Tauri Contributors. CC-BY / MIT