Skip to content

Commit

Permalink
Expose exporters for mobile (#612)
Browse files Browse the repository at this point in the history
We forgot to expose the ClientsExporters in the uniffi bindings.
  • Loading branch information
Hinton authored Feb 13, 2024
1 parent 16f4cc5 commit 5a94119
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/bitwarden-uniffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub mod docs;
use crypto::ClientCrypto;
use error::Result;
use platform::ClientPlatform;
use tool::ClientGenerators;
use tool::{ClientExporters, ClientGenerators};
use vault::ClientVault;

#[derive(uniffi::Object)]
Expand Down Expand Up @@ -53,6 +53,11 @@ impl Client {
Arc::new(ClientGenerators(self))
}

/// Exporters
pub fn exporters(self: Arc<Self>) -> Arc<ClientExporters> {
Arc::new(ClientExporters(self))
}

/// Auth operations
pub fn auth(self: Arc<Self>) -> Arc<ClientAuth> {
Arc::new(ClientAuth(self))
Expand Down

0 comments on commit 5a94119

Please sign in to comment.