From a8947fe6b68f8290f2d6706fdf22d09b0d55661c Mon Sep 17 00:00:00 2001 From: alberto-instnt <113043904+alberto-instnt@users.noreply.github.com> Date: Mon, 8 Jul 2024 19:09:13 -0400 Subject: [PATCH 01/10] Updated unffi README.md new sh command with the new folder structure Signed-off-by: alberto-instnt <113043904+alberto-instnt@users.noreply.github.com> --- aries/wrappers/uniffi-aries-vcx/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aries/wrappers/uniffi-aries-vcx/README.md b/aries/wrappers/uniffi-aries-vcx/README.md index f5fdfcb93a..22c06d00bd 100644 --- a/aries/wrappers/uniffi-aries-vcx/README.md +++ b/aries/wrappers/uniffi-aries-vcx/README.md @@ -47,7 +47,7 @@ More documentation can be found [here](https://rust-lang.github.io/rustup/cross- 5. Run the helper build script. ```bash -sh uniffi_aries_vcx/scripts/android.build.cargo.ndk.sh +sh aries/wrappers/uniffi-aries-vcx/scripts/android.build.cargo.ndk.sh ``` NB: Before running the demo application you need to generate the language bindings. From ae2607c78191fd9afc24a241fb068cf446a58634 Mon Sep 17 00:00:00 2001 From: Alberto Leon Date: Sat, 20 Jul 2024 13:17:14 -0400 Subject: [PATCH 02/10] adjusted android script and added askar implementation on kotlin mobile demo Signed-off-by: Alberto Leon --- aries/agents/mobile_demo/app/build.gradle | 2 +- .../uniffi-aries-vcx/scripts/android.build.cargo.ndk.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aries/agents/mobile_demo/app/build.gradle b/aries/agents/mobile_demo/app/build.gradle index f8810767b2..33dbef9bd7 100644 --- a/aries/agents/mobile_demo/app/build.gradle +++ b/aries/agents/mobile_demo/app/build.gradle @@ -37,7 +37,7 @@ android { compose true } composeOptions { - kotlinCompilerExtensionVersion '1.3.2' + kotlinCompilerExtensionVersion '1.5.14' } packagingOptions { resources { diff --git a/aries/wrappers/uniffi-aries-vcx/scripts/android.build.cargo.ndk.sh b/aries/wrappers/uniffi-aries-vcx/scripts/android.build.cargo.ndk.sh index b1ededbc58..9bb9f81727 100644 --- a/aries/wrappers/uniffi-aries-vcx/scripts/android.build.cargo.ndk.sh +++ b/aries/wrappers/uniffi-aries-vcx/scripts/android.build.cargo.ndk.sh @@ -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} From e1038b3127db0fd743e5379d7d00727e3f499dcb Mon Sep 17 00:00:00 2001 From: Alberto Leon Date: Sat, 20 Jul 2024 14:05:40 -0400 Subject: [PATCH 03/10] Adjusted mobile directory demos Signed-off-by: Alberto Leon --- aries/agents/{mobile_demo => android}/.gitignore | 0 .../agents/{mobile_demo => android}/app/.gitignore | 0 .../{mobile_demo => android}/app/build.gradle | 0 .../{mobile_demo => android}/app/proguard-rules.pro | 0 .../hyperledger/ariesvcx/ExampleInstrumentedTest.kt | 0 .../app/src/main/AndroidManifest.xml | 0 .../org/hyperledger/ariesvcx/AppDemoController.kt | 0 .../main/java/org/hyperledger/ariesvcx/Constants.kt | 0 .../org/hyperledger/ariesvcx/CredentialScreen.kt | 0 .../java/org/hyperledger/ariesvcx/Credentials.kt | 0 .../java/org/hyperledger/ariesvcx/HolderScreen.kt | 0 .../java/org/hyperledger/ariesvcx/HomeScreen.kt | 0 .../java/org/hyperledger/ariesvcx/MainActivity.kt | 0 .../java/org/hyperledger/ariesvcx/QrCodeAnalyzer.kt | 0 .../java/org/hyperledger/ariesvcx/ScanScreen.kt | 0 .../java/org/hyperledger/ariesvcx/ui/theme/Color.kt | 0 .../java/org/hyperledger/ariesvcx/ui/theme/Theme.kt | 0 .../java/org/hyperledger/ariesvcx/ui/theme/Type.kt | 0 .../org/hyperledger/ariesvcx/utils/OkHttpAwait.kt | 0 .../ariesvcx/utils/PrepareGenesisFile.kt | 0 .../res/drawable-v24/ic_launcher_foreground.xml | 0 .../main/res/drawable/ic_launcher_background.xml | 0 .../src/main/res/mipmap-anydpi-v26/ic_launcher.xml | 0 .../res/mipmap-anydpi-v26/ic_launcher_round.xml | 0 .../app/src/main/res/mipmap-hdpi/ic_launcher.webp | Bin .../src/main/res/mipmap-hdpi/ic_launcher_round.webp | Bin .../app/src/main/res/mipmap-mdpi/ic_launcher.webp | Bin .../src/main/res/mipmap-mdpi/ic_launcher_round.webp | Bin .../app/src/main/res/mipmap-xhdpi/ic_launcher.webp | Bin .../main/res/mipmap-xhdpi/ic_launcher_round.webp | Bin .../app/src/main/res/mipmap-xxhdpi/ic_launcher.webp | Bin .../main/res/mipmap-xxhdpi/ic_launcher_round.webp | Bin .../src/main/res/mipmap-xxxhdpi/ic_launcher.webp | Bin .../main/res/mipmap-xxxhdpi/ic_launcher_round.webp | Bin .../app/src/main/res/raw/bcovrin_transactions | 0 .../app/src/main/res/values/colors.xml | 0 .../app/src/main/res/values/strings.xml | 0 .../app/src/main/res/values/themes.xml | 0 .../app/src/main/res/xml/backup_rules.xml | 0 .../app/src/main/res/xml/data_extraction_rules.xml | 0 .../org/hyperledger/ariesvcx/ExampleUnitTest.kt | 0 aries/agents/{mobile_demo => android}/build.gradle | 0 .../{mobile_demo => android}/gradle.properties | 0 .../gradle/wrapper/gradle-wrapper.jar | Bin .../gradle/wrapper/gradle-wrapper.properties | 0 aries/agents/{mobile_demo => android}/gradlew | 0 aries/agents/{mobile_demo => android}/gradlew.bat | 0 .../agents/{mobile_demo => android}/settings.gradle | 0 48 files changed, 0 insertions(+), 0 deletions(-) rename aries/agents/{mobile_demo => android}/.gitignore (100%) rename aries/agents/{mobile_demo => android}/app/.gitignore (100%) rename aries/agents/{mobile_demo => android}/app/build.gradle (100%) rename aries/agents/{mobile_demo => android}/app/proguard-rules.pro (100%) rename aries/agents/{mobile_demo => android}/app/src/androidTest/java/org/hyperledger/ariesvcx/ExampleInstrumentedTest.kt (100%) rename aries/agents/{mobile_demo => android}/app/src/main/AndroidManifest.xml (100%) rename aries/agents/{mobile_demo => android}/app/src/main/java/org/hyperledger/ariesvcx/AppDemoController.kt (100%) rename aries/agents/{mobile_demo => android}/app/src/main/java/org/hyperledger/ariesvcx/Constants.kt (100%) rename aries/agents/{mobile_demo => android}/app/src/main/java/org/hyperledger/ariesvcx/CredentialScreen.kt (100%) rename aries/agents/{mobile_demo => android}/app/src/main/java/org/hyperledger/ariesvcx/Credentials.kt (100%) rename aries/agents/{mobile_demo => android}/app/src/main/java/org/hyperledger/ariesvcx/HolderScreen.kt (100%) rename aries/agents/{mobile_demo => android}/app/src/main/java/org/hyperledger/ariesvcx/HomeScreen.kt (100%) rename aries/agents/{mobile_demo => android}/app/src/main/java/org/hyperledger/ariesvcx/MainActivity.kt (100%) rename aries/agents/{mobile_demo => android}/app/src/main/java/org/hyperledger/ariesvcx/QrCodeAnalyzer.kt (100%) rename aries/agents/{mobile_demo => android}/app/src/main/java/org/hyperledger/ariesvcx/ScanScreen.kt (100%) rename aries/agents/{mobile_demo => android}/app/src/main/java/org/hyperledger/ariesvcx/ui/theme/Color.kt (100%) rename aries/agents/{mobile_demo => android}/app/src/main/java/org/hyperledger/ariesvcx/ui/theme/Theme.kt (100%) rename aries/agents/{mobile_demo => android}/app/src/main/java/org/hyperledger/ariesvcx/ui/theme/Type.kt (100%) rename aries/agents/{mobile_demo => android}/app/src/main/java/org/hyperledger/ariesvcx/utils/OkHttpAwait.kt (100%) rename aries/agents/{mobile_demo => android}/app/src/main/java/org/hyperledger/ariesvcx/utils/PrepareGenesisFile.kt (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/drawable-v24/ic_launcher_foreground.xml (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/drawable/ic_launcher_background.xml (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/mipmap-hdpi/ic_launcher.webp (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/mipmap-mdpi/ic_launcher.webp (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/mipmap-xhdpi/ic_launcher.webp (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/raw/bcovrin_transactions (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/values/colors.xml (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/values/strings.xml (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/values/themes.xml (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/xml/backup_rules.xml (100%) rename aries/agents/{mobile_demo => android}/app/src/main/res/xml/data_extraction_rules.xml (100%) rename aries/agents/{mobile_demo => android}/app/src/test/java/org/hyperledger/ariesvcx/ExampleUnitTest.kt (100%) rename aries/agents/{mobile_demo => android}/build.gradle (100%) rename aries/agents/{mobile_demo => android}/gradle.properties (100%) rename aries/agents/{mobile_demo => android}/gradle/wrapper/gradle-wrapper.jar (100%) rename aries/agents/{mobile_demo => android}/gradle/wrapper/gradle-wrapper.properties (100%) rename aries/agents/{mobile_demo => android}/gradlew (100%) rename aries/agents/{mobile_demo => android}/gradlew.bat (100%) rename aries/agents/{mobile_demo => android}/settings.gradle (100%) diff --git a/aries/agents/mobile_demo/.gitignore b/aries/agents/android/.gitignore similarity index 100% rename from aries/agents/mobile_demo/.gitignore rename to aries/agents/android/.gitignore diff --git a/aries/agents/mobile_demo/app/.gitignore b/aries/agents/android/app/.gitignore similarity index 100% rename from aries/agents/mobile_demo/app/.gitignore rename to aries/agents/android/app/.gitignore diff --git a/aries/agents/mobile_demo/app/build.gradle b/aries/agents/android/app/build.gradle similarity index 100% rename from aries/agents/mobile_demo/app/build.gradle rename to aries/agents/android/app/build.gradle diff --git a/aries/agents/mobile_demo/app/proguard-rules.pro b/aries/agents/android/app/proguard-rules.pro similarity index 100% rename from aries/agents/mobile_demo/app/proguard-rules.pro rename to aries/agents/android/app/proguard-rules.pro diff --git a/aries/agents/mobile_demo/app/src/androidTest/java/org/hyperledger/ariesvcx/ExampleInstrumentedTest.kt b/aries/agents/android/app/src/androidTest/java/org/hyperledger/ariesvcx/ExampleInstrumentedTest.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/androidTest/java/org/hyperledger/ariesvcx/ExampleInstrumentedTest.kt rename to aries/agents/android/app/src/androidTest/java/org/hyperledger/ariesvcx/ExampleInstrumentedTest.kt diff --git a/aries/agents/mobile_demo/app/src/main/AndroidManifest.xml b/aries/agents/android/app/src/main/AndroidManifest.xml similarity index 100% rename from aries/agents/mobile_demo/app/src/main/AndroidManifest.xml rename to aries/agents/android/app/src/main/AndroidManifest.xml diff --git a/aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/AppDemoController.kt b/aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/AppDemoController.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/AppDemoController.kt rename to aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/AppDemoController.kt diff --git a/aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/Constants.kt b/aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/Constants.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/Constants.kt rename to aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/Constants.kt diff --git a/aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/CredentialScreen.kt b/aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/CredentialScreen.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/CredentialScreen.kt rename to aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/CredentialScreen.kt diff --git a/aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/Credentials.kt b/aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/Credentials.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/Credentials.kt rename to aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/Credentials.kt diff --git a/aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/HolderScreen.kt b/aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/HolderScreen.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/HolderScreen.kt rename to aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/HolderScreen.kt diff --git a/aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/HomeScreen.kt b/aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/HomeScreen.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/HomeScreen.kt rename to aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/HomeScreen.kt diff --git a/aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/MainActivity.kt b/aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/MainActivity.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/MainActivity.kt rename to aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/MainActivity.kt diff --git a/aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/QrCodeAnalyzer.kt b/aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/QrCodeAnalyzer.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/QrCodeAnalyzer.kt rename to aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/QrCodeAnalyzer.kt diff --git a/aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/ScanScreen.kt b/aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/ScanScreen.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/ScanScreen.kt rename to aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/ScanScreen.kt diff --git a/aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/ui/theme/Color.kt b/aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/ui/theme/Color.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/ui/theme/Color.kt rename to aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/ui/theme/Color.kt diff --git a/aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/ui/theme/Theme.kt b/aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/ui/theme/Theme.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/ui/theme/Theme.kt rename to aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/ui/theme/Theme.kt diff --git a/aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/ui/theme/Type.kt b/aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/ui/theme/Type.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/ui/theme/Type.kt rename to aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/ui/theme/Type.kt diff --git a/aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/utils/OkHttpAwait.kt b/aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/utils/OkHttpAwait.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/utils/OkHttpAwait.kt rename to aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/utils/OkHttpAwait.kt diff --git a/aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/utils/PrepareGenesisFile.kt b/aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/utils/PrepareGenesisFile.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/main/java/org/hyperledger/ariesvcx/utils/PrepareGenesisFile.kt rename to aries/agents/android/app/src/main/java/org/hyperledger/ariesvcx/utils/PrepareGenesisFile.kt diff --git a/aries/agents/mobile_demo/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/aries/agents/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/drawable-v24/ic_launcher_foreground.xml rename to aries/agents/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml diff --git a/aries/agents/mobile_demo/app/src/main/res/drawable/ic_launcher_background.xml b/aries/agents/android/app/src/main/res/drawable/ic_launcher_background.xml similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/drawable/ic_launcher_background.xml rename to aries/agents/android/app/src/main/res/drawable/ic_launcher_background.xml diff --git a/aries/agents/mobile_demo/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/aries/agents/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml rename to aries/agents/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml diff --git a/aries/agents/mobile_demo/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/aries/agents/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml rename to aries/agents/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml diff --git a/aries/agents/mobile_demo/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/aries/agents/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/mipmap-hdpi/ic_launcher.webp rename to aries/agents/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp diff --git a/aries/agents/mobile_demo/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/aries/agents/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp rename to aries/agents/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp diff --git a/aries/agents/mobile_demo/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/aries/agents/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/mipmap-mdpi/ic_launcher.webp rename to aries/agents/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp diff --git a/aries/agents/mobile_demo/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/aries/agents/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp rename to aries/agents/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp diff --git a/aries/agents/mobile_demo/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/aries/agents/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/mipmap-xhdpi/ic_launcher.webp rename to aries/agents/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp diff --git a/aries/agents/mobile_demo/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/aries/agents/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp rename to aries/agents/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp diff --git a/aries/agents/mobile_demo/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/aries/agents/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp rename to aries/agents/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp diff --git a/aries/agents/mobile_demo/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/aries/agents/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp rename to aries/agents/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp diff --git a/aries/agents/mobile_demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/aries/agents/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp rename to aries/agents/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp diff --git a/aries/agents/mobile_demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/aries/agents/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp rename to aries/agents/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp diff --git a/aries/agents/mobile_demo/app/src/main/res/raw/bcovrin_transactions b/aries/agents/android/app/src/main/res/raw/bcovrin_transactions similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/raw/bcovrin_transactions rename to aries/agents/android/app/src/main/res/raw/bcovrin_transactions diff --git a/aries/agents/mobile_demo/app/src/main/res/values/colors.xml b/aries/agents/android/app/src/main/res/values/colors.xml similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/values/colors.xml rename to aries/agents/android/app/src/main/res/values/colors.xml diff --git a/aries/agents/mobile_demo/app/src/main/res/values/strings.xml b/aries/agents/android/app/src/main/res/values/strings.xml similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/values/strings.xml rename to aries/agents/android/app/src/main/res/values/strings.xml diff --git a/aries/agents/mobile_demo/app/src/main/res/values/themes.xml b/aries/agents/android/app/src/main/res/values/themes.xml similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/values/themes.xml rename to aries/agents/android/app/src/main/res/values/themes.xml diff --git a/aries/agents/mobile_demo/app/src/main/res/xml/backup_rules.xml b/aries/agents/android/app/src/main/res/xml/backup_rules.xml similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/xml/backup_rules.xml rename to aries/agents/android/app/src/main/res/xml/backup_rules.xml diff --git a/aries/agents/mobile_demo/app/src/main/res/xml/data_extraction_rules.xml b/aries/agents/android/app/src/main/res/xml/data_extraction_rules.xml similarity index 100% rename from aries/agents/mobile_demo/app/src/main/res/xml/data_extraction_rules.xml rename to aries/agents/android/app/src/main/res/xml/data_extraction_rules.xml diff --git a/aries/agents/mobile_demo/app/src/test/java/org/hyperledger/ariesvcx/ExampleUnitTest.kt b/aries/agents/android/app/src/test/java/org/hyperledger/ariesvcx/ExampleUnitTest.kt similarity index 100% rename from aries/agents/mobile_demo/app/src/test/java/org/hyperledger/ariesvcx/ExampleUnitTest.kt rename to aries/agents/android/app/src/test/java/org/hyperledger/ariesvcx/ExampleUnitTest.kt diff --git a/aries/agents/mobile_demo/build.gradle b/aries/agents/android/build.gradle similarity index 100% rename from aries/agents/mobile_demo/build.gradle rename to aries/agents/android/build.gradle diff --git a/aries/agents/mobile_demo/gradle.properties b/aries/agents/android/gradle.properties similarity index 100% rename from aries/agents/mobile_demo/gradle.properties rename to aries/agents/android/gradle.properties diff --git a/aries/agents/mobile_demo/gradle/wrapper/gradle-wrapper.jar b/aries/agents/android/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from aries/agents/mobile_demo/gradle/wrapper/gradle-wrapper.jar rename to aries/agents/android/gradle/wrapper/gradle-wrapper.jar diff --git a/aries/agents/mobile_demo/gradle/wrapper/gradle-wrapper.properties b/aries/agents/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from aries/agents/mobile_demo/gradle/wrapper/gradle-wrapper.properties rename to aries/agents/android/gradle/wrapper/gradle-wrapper.properties diff --git a/aries/agents/mobile_demo/gradlew b/aries/agents/android/gradlew similarity index 100% rename from aries/agents/mobile_demo/gradlew rename to aries/agents/android/gradlew diff --git a/aries/agents/mobile_demo/gradlew.bat b/aries/agents/android/gradlew.bat similarity index 100% rename from aries/agents/mobile_demo/gradlew.bat rename to aries/agents/android/gradlew.bat diff --git a/aries/agents/mobile_demo/settings.gradle b/aries/agents/android/settings.gradle similarity index 100% rename from aries/agents/mobile_demo/settings.gradle rename to aries/agents/android/settings.gradle From 208d26c8b58e4ae23812e1e4a5384b8c0b7aaf23 Mon Sep 17 00:00:00 2001 From: Alberto Leon Date: Sat, 20 Jul 2024 14:16:22 -0400 Subject: [PATCH 04/10] Added ios project Signed-off-by: Alberto Leon --- aries/agents/README.md | 3 +- .../ariesvcx.xcodeproj/project.pbxproj | 606 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../UserInterfaceState.xcuserstate | Bin 0 -> 10524 bytes .../xcschemes/xcschememanagement.plist | 14 + .../ios/ariesvcx/ariesvcx/AppDelegate.swift | 36 ++ .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 13 + .../ariesvcx/Assets.xcassets/Contents.json | 6 + .../Base.lproj/LaunchScreen.storyboard | 25 + .../ariesvcx/Base.lproj/Main.storyboard | 24 + aries/agents/ios/ariesvcx/ariesvcx/Info.plist | 25 + .../ios/ariesvcx/ariesvcx/SceneDelegate.swift | 52 ++ .../ariesvcx/ariesvcx/ViewController.swift | 19 + .../ariesvcxTests/ariesvcxTests.swift | 36 ++ .../ariesvcxUITests/ariesvcxUITests.swift | 41 ++ .../ariesvcxUITestsLaunchTests.swift | 32 + 18 files changed, 957 insertions(+), 1 deletion(-) create mode 100644 aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/project.pbxproj create mode 100644 aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/project.xcworkspace/xcuserdata/albertoleon.xcuserdatad/UserInterfaceState.xcuserstate create mode 100644 aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/xcuserdata/albertoleon.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 aries/agents/ios/ariesvcx/ariesvcx/AppDelegate.swift create mode 100644 aries/agents/ios/ariesvcx/ariesvcx/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 aries/agents/ios/ariesvcx/ariesvcx/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 aries/agents/ios/ariesvcx/ariesvcx/Assets.xcassets/Contents.json create mode 100644 aries/agents/ios/ariesvcx/ariesvcx/Base.lproj/LaunchScreen.storyboard create mode 100644 aries/agents/ios/ariesvcx/ariesvcx/Base.lproj/Main.storyboard create mode 100644 aries/agents/ios/ariesvcx/ariesvcx/Info.plist create mode 100644 aries/agents/ios/ariesvcx/ariesvcx/SceneDelegate.swift create mode 100644 aries/agents/ios/ariesvcx/ariesvcx/ViewController.swift create mode 100644 aries/agents/ios/ariesvcx/ariesvcxTests/ariesvcxTests.swift create mode 100644 aries/agents/ios/ariesvcx/ariesvcxUITests/ariesvcxUITests.swift create mode 100644 aries/agents/ios/ariesvcx/ariesvcxUITests/ariesvcxUITestsLaunchTests.swift diff --git a/aries/agents/README.md b/aries/agents/README.md index e9fdd680ca..4e9bc3d459 100644 --- a/aries/agents/README.md +++ b/aries/agents/README.md @@ -4,4 +4,5 @@ This directory contains some of Rust agents built on top of the `aries_vcx` crat - [`aries-vcx-agent`](./aries-vcx-agent) - aries agent library used to build our cross-framework testing [backchannel](https://github.com/hyperledger/aries-agent-test-harness/tree/main/aries-backchannels/aries-vcx). Not intended for production use. A new Aries VCX Framework is in development to provide simple, easy to use, and production ready functions for use. - [`mediator`](./mediator) - didcomm mediator service -- [`mobile-demo`](./mobile_demo) - android mobile app demo created using UniFFI bindings for aries-vcx library +- [`android`](./android) - android mobile app demo created using UniFFI bindings for aries-vcx library +- [`ios`](./ios) - iOS mobile app demo created using UniFFI bindings for aries-vcx library diff --git a/aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/project.pbxproj b/aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/project.pbxproj new file mode 100644 index 0000000000..cd68bf4387 --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/project.pbxproj @@ -0,0 +1,606 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 7A01D95A2C4C35E200EF12E7 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A01D9592C4C35E200EF12E7 /* AppDelegate.swift */; }; + 7A01D95C2C4C35E200EF12E7 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A01D95B2C4C35E200EF12E7 /* SceneDelegate.swift */; }; + 7A01D95E2C4C35E200EF12E7 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A01D95D2C4C35E200EF12E7 /* ViewController.swift */; }; + 7A01D9612C4C35E200EF12E7 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7A01D95F2C4C35E200EF12E7 /* Main.storyboard */; }; + 7A01D9632C4C35E400EF12E7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7A01D9622C4C35E400EF12E7 /* Assets.xcassets */; }; + 7A01D9662C4C35E400EF12E7 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7A01D9642C4C35E400EF12E7 /* LaunchScreen.storyboard */; }; + 7A01D9712C4C35E500EF12E7 /* ariesvcxTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A01D9702C4C35E500EF12E7 /* ariesvcxTests.swift */; }; + 7A01D97B2C4C35E500EF12E7 /* ariesvcxUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A01D97A2C4C35E500EF12E7 /* ariesvcxUITests.swift */; }; + 7A01D97D2C4C35E500EF12E7 /* ariesvcxUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A01D97C2C4C35E500EF12E7 /* ariesvcxUITestsLaunchTests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 7A01D96D2C4C35E500EF12E7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 7A01D94E2C4C35E200EF12E7 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 7A01D9552C4C35E200EF12E7; + remoteInfo = ariesvcx; + }; + 7A01D9772C4C35E500EF12E7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 7A01D94E2C4C35E200EF12E7 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 7A01D9552C4C35E200EF12E7; + remoteInfo = ariesvcx; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 7A01D9562C4C35E200EF12E7 /* ariesvcx.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ariesvcx.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 7A01D9592C4C35E200EF12E7 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7A01D95B2C4C35E200EF12E7 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 7A01D95D2C4C35E200EF12E7 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 7A01D9602C4C35E200EF12E7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 7A01D9622C4C35E400EF12E7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 7A01D9652C4C35E400EF12E7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 7A01D9672C4C35E400EF12E7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 7A01D96C2C4C35E500EF12E7 /* ariesvcxTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ariesvcxTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 7A01D9702C4C35E500EF12E7 /* ariesvcxTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ariesvcxTests.swift; sourceTree = ""; }; + 7A01D9762C4C35E500EF12E7 /* ariesvcxUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ariesvcxUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 7A01D97A2C4C35E500EF12E7 /* ariesvcxUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ariesvcxUITests.swift; sourceTree = ""; }; + 7A01D97C2C4C35E500EF12E7 /* ariesvcxUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ariesvcxUITestsLaunchTests.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 7A01D9532C4C35E200EF12E7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7A01D9692C4C35E500EF12E7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7A01D9732C4C35E500EF12E7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 7A01D94D2C4C35E200EF12E7 = { + isa = PBXGroup; + children = ( + 7A01D9582C4C35E200EF12E7 /* ariesvcx */, + 7A01D96F2C4C35E500EF12E7 /* ariesvcxTests */, + 7A01D9792C4C35E500EF12E7 /* ariesvcxUITests */, + 7A01D9572C4C35E200EF12E7 /* Products */, + ); + sourceTree = ""; + }; + 7A01D9572C4C35E200EF12E7 /* Products */ = { + isa = PBXGroup; + children = ( + 7A01D9562C4C35E200EF12E7 /* ariesvcx.app */, + 7A01D96C2C4C35E500EF12E7 /* ariesvcxTests.xctest */, + 7A01D9762C4C35E500EF12E7 /* ariesvcxUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 7A01D9582C4C35E200EF12E7 /* ariesvcx */ = { + isa = PBXGroup; + children = ( + 7A01D9592C4C35E200EF12E7 /* AppDelegate.swift */, + 7A01D95B2C4C35E200EF12E7 /* SceneDelegate.swift */, + 7A01D95D2C4C35E200EF12E7 /* ViewController.swift */, + 7A01D95F2C4C35E200EF12E7 /* Main.storyboard */, + 7A01D9622C4C35E400EF12E7 /* Assets.xcassets */, + 7A01D9642C4C35E400EF12E7 /* LaunchScreen.storyboard */, + 7A01D9672C4C35E400EF12E7 /* Info.plist */, + ); + path = ariesvcx; + sourceTree = ""; + }; + 7A01D96F2C4C35E500EF12E7 /* ariesvcxTests */ = { + isa = PBXGroup; + children = ( + 7A01D9702C4C35E500EF12E7 /* ariesvcxTests.swift */, + ); + path = ariesvcxTests; + sourceTree = ""; + }; + 7A01D9792C4C35E500EF12E7 /* ariesvcxUITests */ = { + isa = PBXGroup; + children = ( + 7A01D97A2C4C35E500EF12E7 /* ariesvcxUITests.swift */, + 7A01D97C2C4C35E500EF12E7 /* ariesvcxUITestsLaunchTests.swift */, + ); + path = ariesvcxUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 7A01D9552C4C35E200EF12E7 /* ariesvcx */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7A01D9802C4C35E500EF12E7 /* Build configuration list for PBXNativeTarget "ariesvcx" */; + buildPhases = ( + 7A01D9522C4C35E200EF12E7 /* Sources */, + 7A01D9532C4C35E200EF12E7 /* Frameworks */, + 7A01D9542C4C35E200EF12E7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ariesvcx; + productName = ariesvcx; + productReference = 7A01D9562C4C35E200EF12E7 /* ariesvcx.app */; + productType = "com.apple.product-type.application"; + }; + 7A01D96B2C4C35E500EF12E7 /* ariesvcxTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7A01D9832C4C35E500EF12E7 /* Build configuration list for PBXNativeTarget "ariesvcxTests" */; + buildPhases = ( + 7A01D9682C4C35E500EF12E7 /* Sources */, + 7A01D9692C4C35E500EF12E7 /* Frameworks */, + 7A01D96A2C4C35E500EF12E7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 7A01D96E2C4C35E500EF12E7 /* PBXTargetDependency */, + ); + name = ariesvcxTests; + productName = ariesvcxTests; + productReference = 7A01D96C2C4C35E500EF12E7 /* ariesvcxTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 7A01D9752C4C35E500EF12E7 /* ariesvcxUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7A01D9862C4C35E500EF12E7 /* Build configuration list for PBXNativeTarget "ariesvcxUITests" */; + buildPhases = ( + 7A01D9722C4C35E500EF12E7 /* Sources */, + 7A01D9732C4C35E500EF12E7 /* Frameworks */, + 7A01D9742C4C35E500EF12E7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 7A01D9782C4C35E500EF12E7 /* PBXTargetDependency */, + ); + name = ariesvcxUITests; + productName = ariesvcxUITests; + productReference = 7A01D9762C4C35E500EF12E7 /* ariesvcxUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 7A01D94E2C4C35E200EF12E7 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1520; + LastUpgradeCheck = 1520; + TargetAttributes = { + 7A01D9552C4C35E200EF12E7 = { + CreatedOnToolsVersion = 15.2; + }; + 7A01D96B2C4C35E500EF12E7 = { + CreatedOnToolsVersion = 15.2; + TestTargetID = 7A01D9552C4C35E200EF12E7; + }; + 7A01D9752C4C35E500EF12E7 = { + CreatedOnToolsVersion = 15.2; + TestTargetID = 7A01D9552C4C35E200EF12E7; + }; + }; + }; + buildConfigurationList = 7A01D9512C4C35E200EF12E7 /* Build configuration list for PBXProject "ariesvcx" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 7A01D94D2C4C35E200EF12E7; + productRefGroup = 7A01D9572C4C35E200EF12E7 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 7A01D9552C4C35E200EF12E7 /* ariesvcx */, + 7A01D96B2C4C35E500EF12E7 /* ariesvcxTests */, + 7A01D9752C4C35E500EF12E7 /* ariesvcxUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 7A01D9542C4C35E200EF12E7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7A01D9662C4C35E400EF12E7 /* LaunchScreen.storyboard in Resources */, + 7A01D9632C4C35E400EF12E7 /* Assets.xcassets in Resources */, + 7A01D9612C4C35E200EF12E7 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7A01D96A2C4C35E500EF12E7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7A01D9742C4C35E500EF12E7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 7A01D9522C4C35E200EF12E7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7A01D95E2C4C35E200EF12E7 /* ViewController.swift in Sources */, + 7A01D95A2C4C35E200EF12E7 /* AppDelegate.swift in Sources */, + 7A01D95C2C4C35E200EF12E7 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7A01D9682C4C35E500EF12E7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7A01D9712C4C35E500EF12E7 /* ariesvcxTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7A01D9722C4C35E500EF12E7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7A01D97D2C4C35E500EF12E7 /* ariesvcxUITestsLaunchTests.swift in Sources */, + 7A01D97B2C4C35E500EF12E7 /* ariesvcxUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 7A01D96E2C4C35E500EF12E7 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 7A01D9552C4C35E200EF12E7 /* ariesvcx */; + targetProxy = 7A01D96D2C4C35E500EF12E7 /* PBXContainerItemProxy */; + }; + 7A01D9782C4C35E500EF12E7 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 7A01D9552C4C35E200EF12E7 /* ariesvcx */; + targetProxy = 7A01D9772C4C35E500EF12E7 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 7A01D95F2C4C35E200EF12E7 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 7A01D9602C4C35E200EF12E7 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 7A01D9642C4C35E400EF12E7 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 7A01D9652C4C35E400EF12E7 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 7A01D97E2C4C35E500EF12E7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 7A01D97F2C4C35E500EF12E7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 7A01D9812C4C35E500EF12E7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = ariesvcx/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = org.hyperledger.ariesvcx; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 7A01D9822C4C35E500EF12E7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = ariesvcx/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = org.hyperledger.ariesvcx; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 7A01D9842C4C35E500EF12E7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = org.hyperledger.ariesvcx.ariesvcxTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ariesvcx.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/ariesvcx"; + }; + name = Debug; + }; + 7A01D9852C4C35E500EF12E7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = org.hyperledger.ariesvcx.ariesvcxTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ariesvcx.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/ariesvcx"; + }; + name = Release; + }; + 7A01D9872C4C35E500EF12E7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = org.hyperledger.ariesvcx.ariesvcxUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = ariesvcx; + }; + name = Debug; + }; + 7A01D9882C4C35E500EF12E7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = org.hyperledger.ariesvcx.ariesvcxUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = ariesvcx; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 7A01D9512C4C35E200EF12E7 /* Build configuration list for PBXProject "ariesvcx" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7A01D97E2C4C35E500EF12E7 /* Debug */, + 7A01D97F2C4C35E500EF12E7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 7A01D9802C4C35E500EF12E7 /* Build configuration list for PBXNativeTarget "ariesvcx" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7A01D9812C4C35E500EF12E7 /* Debug */, + 7A01D9822C4C35E500EF12E7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 7A01D9832C4C35E500EF12E7 /* Build configuration list for PBXNativeTarget "ariesvcxTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7A01D9842C4C35E500EF12E7 /* Debug */, + 7A01D9852C4C35E500EF12E7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 7A01D9862C4C35E500EF12E7 /* Build configuration list for PBXNativeTarget "ariesvcxUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7A01D9872C4C35E500EF12E7 /* Debug */, + 7A01D9882C4C35E500EF12E7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 7A01D94E2C4C35E200EF12E7 /* Project object */; +} diff --git a/aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000..919434a625 --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000..18d981003d --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/project.xcworkspace/xcuserdata/albertoleon.xcuserdatad/UserInterfaceState.xcuserstate b/aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/project.xcworkspace/xcuserdata/albertoleon.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000000000000000000000000000000000000..d0775d3b9d84417f3db31a9ebb00ca027e1ee562 GIT binary patch literal 10524 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 literal 0 HcmV?d00001 diff --git a/aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/xcuserdata/albertoleon.xcuserdatad/xcschemes/xcschememanagement.plist b/aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/xcuserdata/albertoleon.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000000..e9e4b907f2 --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcx.xcodeproj/xcuserdata/albertoleon.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + ariesvcx.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/aries/agents/ios/ariesvcx/ariesvcx/AppDelegate.swift b/aries/agents/ios/ariesvcx/ariesvcx/AppDelegate.swift new file mode 100644 index 0000000000..2919113e15 --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcx/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// ariesvcx +// +// Created by Alberto Leon on 7/20/24. +// + +import UIKit + +@main +class AppDelegate: UIResponder, UIApplicationDelegate { + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + // MARK: UISceneSession Lifecycle + + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + // Called when a new scene session is being created. + // Use this method to select a configuration to create the new scene with. + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + } + + func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { + // Called when the user discards a scene session. + // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. + // Use this method to release any resources that were specific to the discarded scenes, as they will not return. + } + + +} + diff --git a/aries/agents/ios/ariesvcx/ariesvcx/Assets.xcassets/AccentColor.colorset/Contents.json b/aries/agents/ios/ariesvcx/ariesvcx/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000000..eb87897008 --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcx/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/aries/agents/ios/ariesvcx/ariesvcx/Assets.xcassets/AppIcon.appiconset/Contents.json b/aries/agents/ios/ariesvcx/ariesvcx/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000..13613e3ee1 --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcx/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/aries/agents/ios/ariesvcx/ariesvcx/Assets.xcassets/Contents.json b/aries/agents/ios/ariesvcx/ariesvcx/Assets.xcassets/Contents.json new file mode 100644 index 0000000000..73c00596a7 --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcx/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/aries/agents/ios/ariesvcx/ariesvcx/Base.lproj/LaunchScreen.storyboard b/aries/agents/ios/ariesvcx/ariesvcx/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000..865e9329f3 --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcx/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/aries/agents/ios/ariesvcx/ariesvcx/Base.lproj/Main.storyboard b/aries/agents/ios/ariesvcx/ariesvcx/Base.lproj/Main.storyboard new file mode 100644 index 0000000000..25a763858e --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcx/Base.lproj/Main.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/aries/agents/ios/ariesvcx/ariesvcx/Info.plist b/aries/agents/ios/ariesvcx/ariesvcx/Info.plist new file mode 100644 index 0000000000..dd3c9afdae --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcx/Info.plist @@ -0,0 +1,25 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + + diff --git a/aries/agents/ios/ariesvcx/ariesvcx/SceneDelegate.swift b/aries/agents/ios/ariesvcx/ariesvcx/SceneDelegate.swift new file mode 100644 index 0000000000..a68b3ac514 --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcx/SceneDelegate.swift @@ -0,0 +1,52 @@ +// +// SceneDelegate.swift +// ariesvcx +// +// Created by Alberto Leon on 7/20/24. +// + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). + guard let _ = (scene as? UIWindowScene) else { return } + } + + func sceneDidDisconnect(_ scene: UIScene) { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. + } + + func sceneWillResignActive(_ scene: UIScene) { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. + } + + +} + diff --git a/aries/agents/ios/ariesvcx/ariesvcx/ViewController.swift b/aries/agents/ios/ariesvcx/ariesvcx/ViewController.swift new file mode 100644 index 0000000000..cc15ae3bf9 --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcx/ViewController.swift @@ -0,0 +1,19 @@ +// +// ViewController.swift +// ariesvcx +// +// Created by Alberto Leon on 7/20/24. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} + diff --git a/aries/agents/ios/ariesvcx/ariesvcxTests/ariesvcxTests.swift b/aries/agents/ios/ariesvcx/ariesvcxTests/ariesvcxTests.swift new file mode 100644 index 0000000000..fd2c599aa1 --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcxTests/ariesvcxTests.swift @@ -0,0 +1,36 @@ +// +// ariesvcxTests.swift +// ariesvcxTests +// +// Created by Alberto Leon on 7/20/24. +// + +import XCTest +@testable import ariesvcx + +final class ariesvcxTests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + // Any test you write for XCTest can be annotated as throws and async. + // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error. + // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards. + } + + func testPerformanceExample() throws { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/aries/agents/ios/ariesvcx/ariesvcxUITests/ariesvcxUITests.swift b/aries/agents/ios/ariesvcx/ariesvcxUITests/ariesvcxUITests.swift new file mode 100644 index 0000000000..e428998aeb --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcxUITests/ariesvcxUITests.swift @@ -0,0 +1,41 @@ +// +// ariesvcxUITests.swift +// ariesvcxUITests +// +// Created by Alberto Leon on 7/20/24. +// + +import XCTest + +final class ariesvcxUITests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() throws { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } + } +} diff --git a/aries/agents/ios/ariesvcx/ariesvcxUITests/ariesvcxUITestsLaunchTests.swift b/aries/agents/ios/ariesvcx/ariesvcxUITests/ariesvcxUITestsLaunchTests.swift new file mode 100644 index 0000000000..d11b98c562 --- /dev/null +++ b/aries/agents/ios/ariesvcx/ariesvcxUITests/ariesvcxUITestsLaunchTests.swift @@ -0,0 +1,32 @@ +// +// ariesvcxUITestsLaunchTests.swift +// ariesvcxUITests +// +// Created by Alberto Leon on 7/20/24. +// + +import XCTest + +final class ariesvcxUITestsLaunchTests: XCTestCase { + + override class var runsForEachTargetApplicationUIConfiguration: Bool { + true + } + + override func setUpWithError() throws { + continueAfterFailure = false + } + + func testLaunch() throws { + let app = XCUIApplication() + app.launch() + + // Insert steps here to perform after app launch but before taking a screenshot, + // such as logging into a test account or navigating somewhere in the app + + let attachment = XCTAttachment(screenshot: app.screenshot()) + attachment.name = "Launch Screen" + attachment.lifetime = .keepAlways + add(attachment) + } +} From cf8ff094ead40ceb7c6de3049c4bc9f12d1c77f2 Mon Sep 17 00:00:00 2001 From: Alberto Leon Date: Sat, 20 Jul 2024 14:24:28 -0400 Subject: [PATCH 05/10] Adjusted android script Signed-off-by: Alberto Leon --- .../uniffi-aries-vcx/scripts/android.build.cargo.ndk.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aries/wrappers/uniffi-aries-vcx/scripts/android.build.cargo.ndk.sh b/aries/wrappers/uniffi-aries-vcx/scripts/android.build.cargo.ndk.sh index 9bb9f81727..bd6f692bce 100644 --- a/aries/wrappers/uniffi-aries-vcx/scripts/android.build.cargo.ndk.sh +++ b/aries/wrappers/uniffi-aries-vcx/scripts/android.build.cargo.ndk.sh @@ -13,7 +13,7 @@ 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/mobile_demo" + export ANDROID_DEMO_DIR="${ARIES_VCX_ROOT}/aries/agents/android" pushd "${UNIFFI_ROOT}/core" cargo run --features=uniffi/cli --bin uniffi-bindgen generate src/vcx.udl --language ${LANGUAGE} @@ -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/mobile_demo" + export ANDROID_DEMO_DIR="${ARIES_VCX_ROOT}/aries/agents/android" export ABI_PATH=${ANDROID_DEMO_DIR}/app/src/main/jniLibs/${ABI} mkdir -p ${ABI_PATH} From a8d316518f43f37b3501ee0b8391e7062625c1d6 Mon Sep 17 00:00:00 2001 From: Alberto Leon Date: Fri, 26 Jul 2024 20:41:32 -0400 Subject: [PATCH 06/10] script for ios Signed-off-by: Alberto Leon --- .../scripts/ios.build.cargo.sh | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh diff --git a/aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh b/aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh new file mode 100644 index 0000000000..8cafd4a7e2 --- /dev/null +++ b/aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh @@ -0,0 +1,83 @@ + #!/bin/bash + set -ex + + SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )" + + # Required env vars + ARIES_VCX_ROOT=$(dirname $(dirname $(dirname $(dirname $SCRIPT_DIR)))) + IOS_BUILD_DEPS_DIR=${ARIES_VCX_ROOT}/target/ios_build_deps + LANGUAGE="swift" + TARGET="aarch64-apple-ios" + TARGET_NICKNAME="arm64" + ABI="iphoneos" + + generate_bindings() { + export UNIFFI_ROOT="${ARIES_VCX_ROOT}/aries/wrappers/uniffi-aries-vcx" + export IOS_APP_DIR="${ARIES_VCX_ROOT}/aries/agents/ios/ariesvcx/ariesvcx" + + pushd "${UNIFFI_ROOT}/core" + cargo run --features=uniffi/cli --bin uniffi-bindgen generate src/vcx.udl --language ${LANGUAGE} + popd + + cp -R ${UNIFFI_ROOT}/core/src/vcx.swift ${UNIFFI_ROOT}/core/src/vcxFFI.* ${IOS_APP_DIR} + rm -R ${UNIFFI_ROOT}/core/src/vcx.swift ${UNIFFI_ROOT}/core/src/vcxFFI.* + } + + download_and_unzip_if_missed() { + expected_directory="$1" + url="$2" + fname="tmp_$(date +%s)_$expected_directory.zip" + if [ ! -d "${expected_directory}" ] ; then + echo "Downloading ${GREEN}${url}${RESET} as ${GREEN}${fname}${RESET}" + wget -q -O ${fname} "${url}" + echo "Unzipping ${GREEN}${fname}${RESET}" + unzip -qqo "${fname}" + rm "${fname}" + echo "${GREEN}Done!${RESET}" + else + echo "${BLUE}Skipping download ${url}${RESET}. Expected directory ${expected_directory} was found" + fi + } + + setup_linked_dependencies() { + mkdir -p $IOS_BUILD_DEPS_DIR + # download deps + pushd "${IOS_BUILD_DEPS_DIR}" + download_and_unzip_if_missed "openssl_$TARGET_NICKNAME" "https://repo.sovrin.org/ios/libindy/deps/openssl/openssl_$TARGET_NICKNAME.zip" + download_and_unzip_if_missed "libsodium_$TARGET_NICKNAME" "https://repo.sovrin.org/ios/libindy/deps/sodium/libsodium_$TARGET_NICKNAME.zip" + download_and_unzip_if_missed "libzmq_$TARGET_NICKNAME" "https://repo.sovrin.org/ios/libindy/deps/zmq/libzmq_$TARGET_NICKNAME.zip" + popd + + # main env vars that need to be set + export OPENSSL_DIR=${IOS_BUILD_DEPS_DIR}/openssl_${TARGET_NICKNAME} + export SODIUM_DIR=${IOS_BUILD_DEPS_DIR}/libsodium_${TARGET_NICKNAME} + export LIBZMQ_DIR=${IOS_BUILD_DEPS_DIR}/libzmq_${TARGET_NICKNAME} + + # secondary env vars that need to be set + export SODIUM_LIB_DIR=${SODIUM_DIR}/lib + export SODIUM_INCLUDE_DIR=${SODIUM_DIR}/include + export SODIUM_STATIC=1 + export LIBZMQ_LIB_DIR=${LIBZMQ_DIR}/lib + export LIBZMQ_INCLUDE_DIR=${LIBZMQ_DIR}/include + export LIBZMQ_PREFIX=${LIBZMQ_DIR} + export OPENSSL_LIB_DIR=${OPENSSL_DIR}/lib + export OPENSSL_STATIC=1 + } + + build_uniffi_for_demo() { + echo "Running build_uniffi_for_demo..." + export UNIFFI_ROOT="${ARIES_VCX_ROOT}/aries/wrappers/uniffi-aries-vcx" + export IOS_APP_DIR="${ARIES_VCX_ROOT}/aries/agents/ios/ariesvcx/ariesvcx" + export ABI_PATH=${IOS_APP_DIR}/Frameworks + mkdir -p ${ABI_PATH} + + pushd ${UNIFFI_ROOT}/core + cargo build --target ${TARGET} + cp ${ARIES_VCX_ROOT}/target/${TARGET}/debug/libuniffi_vcx.a ${ABI_PATH}/libuniffi_vcx.a + + popd + } + + generate_bindings + #setup_linked_dependencies + build_uniffi_for_demo From d1781446bff2e002542c818e690d35542e562953 Mon Sep 17 00:00:00 2001 From: Alberto Leon Date: Fri, 26 Jul 2024 21:16:17 -0400 Subject: [PATCH 07/10] add dependencies and make crate type staticlib Signed-off-by: Alberto Leon --- aries/aries_vcx_anoncreds/Cargo.toml | 2 ++ aries/wrappers/uniffi-aries-vcx/core/Cargo.toml | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/aries/aries_vcx_anoncreds/Cargo.toml b/aries/aries_vcx_anoncreds/Cargo.toml index 231d240a6a..93e9a32935 100644 --- a/aries/aries_vcx_anoncreds/Cargo.toml +++ b/aries/aries_vcx_anoncreds/Cargo.toml @@ -26,3 +26,5 @@ serde = { version = "1.0.159", features = ["derive"] } serde_json = "1.0.95" time = "0.3.20" bitvec = "1.0.1" +openssl = { version = "0.10", features = ["vendored"] } +zmq = { version = "0.9", features = ["vendored"] } \ No newline at end of file diff --git a/aries/wrappers/uniffi-aries-vcx/core/Cargo.toml b/aries/wrappers/uniffi-aries-vcx/core/Cargo.toml index 78445d1807..bb3096f640 100644 --- a/aries/wrappers/uniffi-aries-vcx/core/Cargo.toml +++ b/aries/wrappers/uniffi-aries-vcx/core/Cargo.toml @@ -6,7 +6,7 @@ license.workspace = true edition.workspace = true [lib] -crate-type = ["cdylib"] +crate-type = ["cdylib", "staticlib"] name = "uniffi_vcx" [[bin]] @@ -18,7 +18,6 @@ path = "uniffi-bindgen.rs" [features] default = ["askar_wallet"] askar_wallet = ["aries_vcx/askar_wallet"] -vdrtools_wallet = ["aries_vcx/vdrtools_wallet"] [dependencies] uniffi = { version = "0.23.0", features = ["cli"] } From ff08c28927ae73cb1494a2277ed0075e9531cc81 Mon Sep 17 00:00:00 2001 From: Alberto Leon Date: Fri, 26 Jul 2024 21:16:46 -0400 Subject: [PATCH 08/10] new cargo lock Signed-off-by: Alberto Leon --- Cargo.lock | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index a468109f5e..0443972c28 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -589,11 +589,13 @@ dependencies = [ "did_parser_nom", "indy-credx", "log", + "openssl", "serde", "serde_json", "thiserror", "time 0.3.20", "uuid", + "zmq", ] [[package]] @@ -4008,6 +4010,15 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +[[package]] +name = "openssl-src" +version = "300.3.1+3.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7259953d42a81bf137fbbd73bd30a8e1914d6dce43c2b90ed575783a22608b91" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" version = "0.9.96" @@ -4016,6 +4027,7 @@ checksum = "3812c071ba60da8b5677cc12bcb1d42989a65553772897a7e0355545a819838f" dependencies = [ "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] From b38488c703349c19a926de03510092147e3f9eaf Mon Sep 17 00:00:00 2001 From: Alberto Leon Date: Tue, 20 Aug 2024 21:53:21 -0400 Subject: [PATCH 09/10] removed mobile_demo Signed-off-by: Alberto Leon --- .github/dependabot.yml | 4 ++-- aries/README.md | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 781c888e68..86c5d3d748 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -75,7 +75,7 @@ updates: # Maintain dependencies for Gradle - package-ecosystem: "gradle" - directory: "/aries/agents/mobile_demo/app" + directory: "/aries/agents/android/app" schedule: interval: "weekly" day: "monday" @@ -87,7 +87,7 @@ updates: # Maintain dependencies for Gradle - package-ecosystem: "gradle" - directory: "/aries/agents/mobile_demo" + directory: "/aries/agents/android" schedule: interval: "weekly" day: "monday" diff --git a/aries/README.md b/aries/README.md index 98f2f7c2e0..72c7c58359 100644 --- a/aries/README.md +++ b/aries/README.md @@ -11,4 +11,5 @@ ## Aries mobile 📱 components - [`uniffi-aries-vcx`](wrappers/uniffi-aries-vcx) - UniFFI wrapper for `aries_vcx`. -- [`mobile-demo`](agents/mobile_demo/) - Sample Android App using UniFFI wrapper. +- [`android`](agents/android/) - Sample Android App using UniFFI wrapper. +- [`ios`](agents/ios/) - Sample Android App using UniFFI wrapper. From e3f44762badb14518ab49367d7f56a15b3ceb4f8 Mon Sep 17 00:00:00 2001 From: Alberto Leon Date: Tue, 20 Aug 2024 22:00:56 -0400 Subject: [PATCH 10/10] removed dependencies on ios script Signed-off-by: Alberto Leon --- aries/wrappers/uniffi-aries-vcx/README.md | 5 +++ .../scripts/ios.build.cargo.sh | 42 ------------------- 2 files changed, 5 insertions(+), 42 deletions(-) diff --git a/aries/wrappers/uniffi-aries-vcx/README.md b/aries/wrappers/uniffi-aries-vcx/README.md index 22c06d00bd..329c43af77 100644 --- a/aries/wrappers/uniffi-aries-vcx/README.md +++ b/aries/wrappers/uniffi-aries-vcx/README.md @@ -46,9 +46,14 @@ More documentation can be found [here](https://rust-lang.github.io/rustup/cross- 5. Run the helper build script. +### Android ```bash sh aries/wrappers/uniffi-aries-vcx/scripts/android.build.cargo.ndk.sh ``` +### iOS +```bash +sh aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh +``` NB: Before running the demo application you need to generate the language bindings. diff --git a/aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh b/aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh index 8cafd4a7e2..845334bd73 100644 --- a/aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh +++ b/aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh @@ -23,47 +23,6 @@ rm -R ${UNIFFI_ROOT}/core/src/vcx.swift ${UNIFFI_ROOT}/core/src/vcxFFI.* } - download_and_unzip_if_missed() { - expected_directory="$1" - url="$2" - fname="tmp_$(date +%s)_$expected_directory.zip" - if [ ! -d "${expected_directory}" ] ; then - echo "Downloading ${GREEN}${url}${RESET} as ${GREEN}${fname}${RESET}" - wget -q -O ${fname} "${url}" - echo "Unzipping ${GREEN}${fname}${RESET}" - unzip -qqo "${fname}" - rm "${fname}" - echo "${GREEN}Done!${RESET}" - else - echo "${BLUE}Skipping download ${url}${RESET}. Expected directory ${expected_directory} was found" - fi - } - - setup_linked_dependencies() { - mkdir -p $IOS_BUILD_DEPS_DIR - # download deps - pushd "${IOS_BUILD_DEPS_DIR}" - download_and_unzip_if_missed "openssl_$TARGET_NICKNAME" "https://repo.sovrin.org/ios/libindy/deps/openssl/openssl_$TARGET_NICKNAME.zip" - download_and_unzip_if_missed "libsodium_$TARGET_NICKNAME" "https://repo.sovrin.org/ios/libindy/deps/sodium/libsodium_$TARGET_NICKNAME.zip" - download_and_unzip_if_missed "libzmq_$TARGET_NICKNAME" "https://repo.sovrin.org/ios/libindy/deps/zmq/libzmq_$TARGET_NICKNAME.zip" - popd - - # main env vars that need to be set - export OPENSSL_DIR=${IOS_BUILD_DEPS_DIR}/openssl_${TARGET_NICKNAME} - export SODIUM_DIR=${IOS_BUILD_DEPS_DIR}/libsodium_${TARGET_NICKNAME} - export LIBZMQ_DIR=${IOS_BUILD_DEPS_DIR}/libzmq_${TARGET_NICKNAME} - - # secondary env vars that need to be set - export SODIUM_LIB_DIR=${SODIUM_DIR}/lib - export SODIUM_INCLUDE_DIR=${SODIUM_DIR}/include - export SODIUM_STATIC=1 - export LIBZMQ_LIB_DIR=${LIBZMQ_DIR}/lib - export LIBZMQ_INCLUDE_DIR=${LIBZMQ_DIR}/include - export LIBZMQ_PREFIX=${LIBZMQ_DIR} - export OPENSSL_LIB_DIR=${OPENSSL_DIR}/lib - export OPENSSL_STATIC=1 - } - build_uniffi_for_demo() { echo "Running build_uniffi_for_demo..." export UNIFFI_ROOT="${ARIES_VCX_ROOT}/aries/wrappers/uniffi-aries-vcx" @@ -79,5 +38,4 @@ } generate_bindings - #setup_linked_dependencies build_uniffi_for_demo