Package the Rust mobile core and generated Kotlin API for Android (#92)
Dependency security audit / rustsec (push) Failing after 24s
Dependency security audit / rustsec (push) Failing after 24s
This commit is contained in:
1 parent
e079b82b15
commit
fcb36a0684
42 files changed
+1586
-172
No files matched your search
@@ -0,0 +1,16 @@
|
||||
[package]
|
||||
name = "ironstorage-android"
|
||||
description = "Android native library reusing the shared mobile UniFFI exports"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
license.workspace = true
|
||||
repository.workspace = true
|
||||
publish = false
|
||||
|
||||
[lib]
|
||||
name = "ironstorage_android"
|
||||
crate-type = ["lib", "cdylib"]
|
||||
|
||||
[dependencies]
|
||||
ironstorage-apple = { path = "../apple" }
|
||||
@@ -0,0 +1,6 @@
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
//! Android packaging of the existing mobile UniFFI component.
|
||||
//! The shared component owns every conversion; no interface is copied here.
|
||||
|
||||
ironstorage_apple::uniffi_reexport_scaffolding!();
|
||||
@@ -6,6 +6,12 @@
|
||||
//! Credential Manager, and Secret Service boundaries. Operations are serialized
|
||||
//! by the parent `SecretStore`, as required by the Windows adapter contract.
|
||||
|
||||
#[cfg(any(
|
||||
target_os = "ios",
|
||||
target_os = "linux",
|
||||
target_os = "macos",
|
||||
target_os = "windows"
|
||||
))]
|
||||
use std::sync::Arc;
|
||||
|
||||
#[cfg(any(target_os = "ios", target_os = "macos"))]
|
||||
@@ -29,7 +35,14 @@ use security_framework::{
|
||||
},
|
||||
};
|
||||
|
||||
use keyring_core::{CredentialStore, Entry};
|
||||
#[cfg(any(
|
||||
target_os = "ios",
|
||||
target_os = "linux",
|
||||
target_os = "macos",
|
||||
target_os = "windows"
|
||||
))]
|
||||
use keyring_core::CredentialStore;
|
||||
use keyring_core::Entry;
|
||||
|
||||
use super::{SecretLocator, SecretProtection, SecretStoreBackend, SecretStoreError};
|
||||
use crate::repository::SecretBytes;
|
||||
|
||||
Reference in new issue
Block a user