Create a Tauri v2 plugin that uses EncryptedSharedPreferences (Android Keystore) on Android and the system keychain (keyring crate) on desktop. This replaces the direct onyx-core keyring calls in the Tauri app, which failed on Android because keyring-storage was feature-gated to desktop only. - New plugin crate at apps/tauri/tauri-plugin-credentials/ with Kotlin Android code and Rust desktop fallback - Update all Tauri credential commands to use the plugin API - Add security-crypto dependency for Android and ProGuard rule for Tink - Remove onyx-core/keyring-storage dependency from Tauri app features
20 lines
468 B
TOML
20 lines
468 B
TOML
[package]
|
|
name = "tauri-plugin-credentials"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
links = "tauri-plugin-credentials"
|
|
|
|
[build-dependencies]
|
|
tauri-plugin = { version = "2", features = ["build"] }
|
|
|
|
[dependencies]
|
|
tauri = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
log = "0.4"
|
|
keyring = { version = "3", features = ["apple-native", "windows-native", "sync-secret-service"], optional = true }
|
|
|
|
[features]
|
|
default = ["desktop"]
|
|
desktop = ["keyring"]
|