Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android script fix & Askar impl on Kotlin mobile demo #1270

Merged
merged 6 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aries/agents/mobile_demo/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ android {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion '1.3.2'
kotlinCompilerExtensionVersion '1.5.14'
}
packagingOptions {
resources {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,11 @@ class AppDemoController : ViewModel() {
return profile!!
}

private val walletConfig = WalletConfig(
walletName = "test_create_wallet_add_uuid_here",
walletKey = "8dvfYSt5d1taSd6yJdpjq4emkwsPDDLYxkNFysFD2cZY",
walletKeyDerivation = "RAW",
walletType = null,
storageConfig = null,
storageCredentials = null,
rekey = null,
rekeyDerivationMethod = null
)
private val walletConfig = AskarWalletConfig(
dbUrl = "sqlite://:memory:",
keyMethod = KeyMethod.DeriveKey(AskarKdfMethod.Argon2i(ArgonLevel.INTERACTIVE)),
passKey = "test",
profile = "profile")

suspend fun setupProfile(genesisFilePath: String) {
withContext(Dispatchers.IO) {
Expand Down Expand Up @@ -102,8 +97,10 @@ class AppDemoController : ViewModel() {
delay(500)
val relayResponse = httpClient.newCall(pollRelayRequest).await()
if (relayResponse.code == 200) {
Log.d("RELAY RESPONSE", "RELAY RESPONDED WITH 200")
val message = relayResponse.body!!.string()
Log.d("MESSAGE", "awaitConnectionCompletion: $message")
Log.d("PROFILE", "profile: ${profile.toString()}")
val unpackedMessage = unpackMessage(
profile!!,
message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ setup_linked_dependencies() {

build_uniffi_for_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 ANDROID_DEMO_DIR="${ARIES_VCX_ROOT}/aries/agents/mobile_demo"
export ABI_PATH=${ANDROID_DEMO_DIR}/app/src/main/jniLibs/${ABI}
mkdir -p ${ABI_PATH}

Expand Down
Loading