Skip to content

Commit

Permalink
Android adjustment & Askar udl impl (#1263)
Browse files Browse the repository at this point in the history
* Updated unffi README.md

new sh command with the new folder structure

Signed-off-by: alberto-instnt <[email protected]>

* removed unused code and suppressed warnings/erros

Signed-off-by: Alberto Leon <[email protected]>

* fixed formatting

Signed-off-by: Alberto Leon <[email protected]>

* adjust andorid script & udl

Signed-off-by: Alberto Leon <[email protected]>

---------

Signed-off-by: alberto-instnt <[email protected]>
Signed-off-by: Alberto Leon <[email protected]>
  • Loading branch information
alberto-instnt authored Jul 14, 2024
1 parent 9d5f1b5 commit 398af5b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion aries/wrappers/uniffi-aries-vcx/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ path = "uniffi-bindgen.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
default = ["vdrtools_wallet"]
default = ["askar_wallet"]
askar_wallet = ["aries_vcx/askar_wallet"]
vdrtools_wallet = ["aries_vcx/vdrtools_wallet"]

Expand Down
2 changes: 1 addition & 1 deletion aries/wrappers/uniffi-aries-vcx/core/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ fn main() {
uniffi::generate_scaffolding("./src/vcx_indy.udl").unwrap();

#[cfg(feature = "askar_wallet")]
uniffi::generate_scaffolding("./src/vcx_askar.udl").unwrap();
uniffi::generate_scaffolding("./src/vcx.udl").unwrap();
}
2 changes: 1 addition & 1 deletion aries/wrappers/uniffi-aries-vcx/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
uniffi::include_scaffolding!("vcx_indy");

#[cfg(feature = "askar_wallet")]
uniffi::include_scaffolding!("vcx_askar");
uniffi::include_scaffolding!("vcx");

pub mod core;
pub mod errors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ ABI="arm64-v8a"

generate_bindings() {
export UNIFFI_ROOT="${ARIES_VCX_ROOT}/aries/wrappers/uniffi-aries-vcx"
export ANDROID_DEMO_DIR="${ARIES_VCX_ROOT}/aries/agents/rust/mobile_demo"
export ANDROID_DEMO_DIR="${ARIES_VCX_ROOT}/aries/agents/mobile_demo"

pushd "${UNIFFI_ROOT}/core"
cargo run --features=uniffi/cli --bin uniffi-bindgen generate src/vcx.udl --language ${LANGUAGE}
cargo run --features=uniffi/cli --bin uniffi-bindgen generate src/vcx.udl --language ${LANGUAGE}
popd

cp -R ${UNIFFI_ROOT}/core/src/org/hyperledger/ariesvcx/vcx.kt ${ANDROID_DEMO_DIR}/app/src/main/java/org/hyperledger/ariesvcx
rm -R ${UNIFFI_ROOT}/core/src/org
}
Expand Down

0 comments on commit 398af5b

Please sign in to comment.