From 99ffc4c1278120579258be0e197fdcad9c3896fa Mon Sep 17 00:00:00 2001 From: Gerson <71728860+Gerson2102@users.noreply.github.com> Date: Sun, 15 Sep 2024 11:27:39 -0600 Subject: [PATCH] Adding the create starknet account logic for Kotlin (#76) * Adding the create starknet account logic * Fixing RPC connection issue * Adding XML for network security config purposes --- wallet_app/android/app/build.gradle.kts | 4 ++ .../android/app/src/main/AndroidManifest.xml | 2 +- .../com/example/walletapp/MainActivity.kt | 50 ++++++++++++++++--- .../main/res/xml/network_security_config.xml | 9 ++++ 4 files changed, 57 insertions(+), 8 deletions(-) create mode 100644 wallet_app/android/app/src/main/res/xml/network_security_config.xml diff --git a/wallet_app/android/app/build.gradle.kts b/wallet_app/android/app/build.gradle.kts index bbff2e01..28b6accd 100644 --- a/wallet_app/android/app/build.gradle.kts +++ b/wallet_app/android/app/build.gradle.kts @@ -65,6 +65,10 @@ android { } dependencies { + implementation("com.swmansion.starknet:starknet:0.12.1@aar"){ + isTransitive = true + } + implementation(libs.androidx.core.ktx) implementation(libs.androidx.appcompat) implementation(libs.material) diff --git a/wallet_app/android/app/src/main/AndroidManifest.xml b/wallet_app/android/app/src/main/AndroidManifest.xml index 31403cd6..03489b78 100644 --- a/wallet_app/android/app/src/main/AndroidManifest.xml +++ b/wallet_app/android/app/src/main/AndroidManifest.xml @@ -4,7 +4,6 @@ - + + + 0.0.0.0 + + + 10.0.2.2 + +