Skip to content

Commit

Permalink
refactor: uniffi project reorganize (#1068)
Browse files Browse the repository at this point in the history
  • Loading branch information
swaptr authored Nov 27, 2023
1 parent e1b05ba commit 882529c
Show file tree
Hide file tree
Showing 72 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ members = [
"aries/agents/rust/mediator",
"aries/agents/rust/mediator/client-tui",
"aries/agents/rust/aries-vcx-agent",
"aries/wrappers/uniffi-aries-vcx/core",
"aries/wrappers/vcx-napi-rs",
"aries/aries_vcx_core",
"aries/misc/indy_ledger_response_parser",
Expand All @@ -31,7 +32,6 @@ members = [
"did_core/public_key",
"misc/simple_message_relay",
"misc/display_as_json",
"uniffi_aries_vcx/core",
]

[workspace.package]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ path = "uniffi-bindgen.rs"

[dependencies]
uniffi = { version = "0.23.0", features = ["cli"] }
aries_vcx = { path = "../../aries/aries_vcx", features = [
aries_vcx = { path = "../../../aries_vcx", features = [
"vdrtools_wallet",
"credx",
] }
Expand All @@ -27,8 +27,8 @@ thiserror = "1.0.38"
serde_json = "1.0.91"
serde = { version = "1.0.188", features = ["derive"] }
async-trait = "0.1.64"
diddoc_legacy = { path = "../../aries/misc/legacy/diddoc_legacy" }
shared = { path = "../../aries/misc/shared" }
diddoc_legacy = { path = "../../../misc/legacy/diddoc_legacy" }
shared = { path = "../../../misc/shared" }
url = "2.3.1"

[build-dependencies]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ set -ex
SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"

# Required env vars
ARIES_VCX_ROOT=$(dirname $(dirname $SCRIPT_DIR))
ARIES_VCX_ROOT=$(dirname $(dirname $(dirname $(dirname $SCRIPT_DIR))))
ANDROID_BUILD_DEPS_DIR=${ARIES_VCX_ROOT}/target/android_build_deps
LANGUAGE="kotlin"
TARGET="aarch64-linux-android"
TARGET_NICKNAME="arm64"
ABI="arm64-v8a"

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

pushd "${UNIFFI_ROOT}/core"
cargo run --features=uniffi/cli --bin uniffi-bindgen generate src/vcx.udl --language ${LANGUAGE}
Expand Down Expand Up @@ -65,8 +65,8 @@ setup_linked_dependencies() {
}

build_uniffi_for_demo() {
export UNIFFI_ROOT="${ARIES_VCX_ROOT}/uniffi_aries_vcx"
export ANDROID_DEMO_DIR="${UNIFFI_ROOT}/demo"
export UNIFFI_ROOT="${ARIES_VCX_ROOT}/aries/wrappers/uniffi-aries-vcx"
export ANDROID_DEMO_DIR="${ARIES_VCX_ROOT}/aries/agents/rust/mobile_demo"
export ABI_PATH=${ANDROID_DEMO_DIR}/app/src/main/jniLibs/${ABI}
mkdir -p ${ABI_PATH}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 882529c

Please sign in to comment.