From 97561d1f96370b2b8244482cabf0eead27dba2d1 Mon Sep 17 00:00:00 2001 From: Mystic <149405096+Gift-Naomi@users.noreply.github.com> Date: Tue, 8 Oct 2024 23:21:10 +0100 Subject: [PATCH] [feat] Refactor wallet_app/android (#95) Co-authored-by: Gift-Naomi --- wallet_app/android/app/src/main/AndroidManifest.xml | 12 ++++++------ .../com/example/walletapp => }/StarknetClient.kt | 0 .../walletapp/{ => ui/activity}/AccountPassword.kt | 2 +- .../walletapp/{ => ui/activity}/AddTokenActivity.kt | 2 +- .../walletapp/{ => ui/activity}/MainActivity.kt | 2 +- .../walletapp/{ => ui/activity}/ReceiverActivity.kt | 2 +- .../{ => ui/activity}/RecoveryPhraseActivity.kt | 2 +- .../walletapp/{ => ui/activity}/SendActivity.kt | 2 +- .../walletapp/{ => ui/activity}/WalletActivity.kt | 2 +- .../com/example/walletapp => res}/theme/Color.kt | 0 .../com/example/walletapp => res}/theme/Theme.kt | 0 .../com/example/walletapp => res}/theme/Type.kt | 0 12 files changed, 13 insertions(+), 13 deletions(-) rename wallet_app/android/app/src/main/{java/com/example/walletapp => }/StarknetClient.kt (100%) rename wallet_app/android/app/src/main/java/com/example/walletapp/{ => ui/activity}/AccountPassword.kt (99%) rename wallet_app/android/app/src/main/java/com/example/walletapp/{ => ui/activity}/AddTokenActivity.kt (99%) rename wallet_app/android/app/src/main/java/com/example/walletapp/{ => ui/activity}/MainActivity.kt (99%) rename wallet_app/android/app/src/main/java/com/example/walletapp/{ => ui/activity}/ReceiverActivity.kt (98%) rename wallet_app/android/app/src/main/java/com/example/walletapp/{ => ui/activity}/RecoveryPhraseActivity.kt (99%) rename wallet_app/android/app/src/main/java/com/example/walletapp/{ => ui/activity}/SendActivity.kt (99%) rename wallet_app/android/app/src/main/java/com/example/walletapp/{ => ui/activity}/WalletActivity.kt (99%) rename wallet_app/android/app/src/main/{java/com/example/walletapp => res}/theme/Color.kt (100%) rename wallet_app/android/app/src/main/{java/com/example/walletapp => res}/theme/Theme.kt (100%) rename wallet_app/android/app/src/main/{java/com/example/walletapp => res}/theme/Type.kt (100%) diff --git a/wallet_app/android/app/src/main/AndroidManifest.xml b/wallet_app/android/app/src/main/AndroidManifest.xml index 03489b78..6c4f0e5f 100644 --- a/wallet_app/android/app/src/main/AndroidManifest.xml +++ b/wallet_app/android/app/src/main/AndroidManifest.xml @@ -25,14 +25,14 @@ - @@ -40,14 +40,14 @@ android:exported="true" android:theme="@style/Theme.Walletapp"/> - - - diff --git a/wallet_app/android/app/src/main/java/com/example/walletapp/StarknetClient.kt b/wallet_app/android/app/src/main/StarknetClient.kt similarity index 100% rename from wallet_app/android/app/src/main/java/com/example/walletapp/StarknetClient.kt rename to wallet_app/android/app/src/main/StarknetClient.kt diff --git a/wallet_app/android/app/src/main/java/com/example/walletapp/AccountPassword.kt b/wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/AccountPassword.kt similarity index 99% rename from wallet_app/android/app/src/main/java/com/example/walletapp/AccountPassword.kt rename to wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/AccountPassword.kt index fab2d7c6..9325e1b2 100644 --- a/wallet_app/android/app/src/main/java/com/example/walletapp/AccountPassword.kt +++ b/wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/AccountPassword.kt @@ -1,4 +1,4 @@ -package com.example.walletapp +package com.example.walletapp.ui.activity import android.app.Activity import android.content.Intent diff --git a/wallet_app/android/app/src/main/java/com/example/walletapp/AddTokenActivity.kt b/wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/AddTokenActivity.kt similarity index 99% rename from wallet_app/android/app/src/main/java/com/example/walletapp/AddTokenActivity.kt rename to wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/AddTokenActivity.kt index 64b435d0..f3ee47ab 100644 --- a/wallet_app/android/app/src/main/java/com/example/walletapp/AddTokenActivity.kt +++ b/wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/AddTokenActivity.kt @@ -1,4 +1,4 @@ -package com.example.walletapp +package com.example.walletapp.ui.activity import android.os.Bundle import androidx.activity.ComponentActivity diff --git a/wallet_app/android/app/src/main/java/com/example/walletapp/MainActivity.kt b/wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/MainActivity.kt similarity index 99% rename from wallet_app/android/app/src/main/java/com/example/walletapp/MainActivity.kt rename to wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/MainActivity.kt index 15ce801d..95ef1420 100644 --- a/wallet_app/android/app/src/main/java/com/example/walletapp/MainActivity.kt +++ b/wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/MainActivity.kt @@ -1,4 +1,4 @@ -package com.example.walletapp +package com.example.walletapp.ui.activity import StarknetClient import android.app.Activity diff --git a/wallet_app/android/app/src/main/java/com/example/walletapp/ReceiverActivity.kt b/wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/ReceiverActivity.kt similarity index 98% rename from wallet_app/android/app/src/main/java/com/example/walletapp/ReceiverActivity.kt rename to wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/ReceiverActivity.kt index 6834b00a..e450f41e 100644 --- a/wallet_app/android/app/src/main/java/com/example/walletapp/ReceiverActivity.kt +++ b/wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/ReceiverActivity.kt @@ -1,4 +1,4 @@ -package com.example.walletapp +package com.example.walletapp.ui.activity import android.content.ClipData import android.content.ClipboardManager diff --git a/wallet_app/android/app/src/main/java/com/example/walletapp/RecoveryPhraseActivity.kt b/wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/RecoveryPhraseActivity.kt similarity index 99% rename from wallet_app/android/app/src/main/java/com/example/walletapp/RecoveryPhraseActivity.kt rename to wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/RecoveryPhraseActivity.kt index f403227b..80429387 100644 --- a/wallet_app/android/app/src/main/java/com/example/walletapp/RecoveryPhraseActivity.kt +++ b/wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/RecoveryPhraseActivity.kt @@ -1,4 +1,4 @@ -package com.example.walletapp +package com.example.walletapp.ui.activity import android.app.Activity import android.content.Intent import android.os.Bundle diff --git a/wallet_app/android/app/src/main/java/com/example/walletapp/SendActivity.kt b/wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/SendActivity.kt similarity index 99% rename from wallet_app/android/app/src/main/java/com/example/walletapp/SendActivity.kt rename to wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/SendActivity.kt index 9a205691..08579b89 100644 --- a/wallet_app/android/app/src/main/java/com/example/walletapp/SendActivity.kt +++ b/wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/SendActivity.kt @@ -1,4 +1,4 @@ -package com.example.walletapp +package com.example.walletapp.ui.activity import android.os.Bundle import androidx.activity.ComponentActivity diff --git a/wallet_app/android/app/src/main/java/com/example/walletapp/WalletActivity.kt b/wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/WalletActivity.kt similarity index 99% rename from wallet_app/android/app/src/main/java/com/example/walletapp/WalletActivity.kt rename to wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/WalletActivity.kt index 74d6621c..d8f8d3e7 100644 --- a/wallet_app/android/app/src/main/java/com/example/walletapp/WalletActivity.kt +++ b/wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/WalletActivity.kt @@ -1,4 +1,4 @@ -package com.example.walletapp +package com.example.walletapp.ui.activity import StarknetClient import android.app.Activity diff --git a/wallet_app/android/app/src/main/java/com/example/walletapp/theme/Color.kt b/wallet_app/android/app/src/main/res/theme/Color.kt similarity index 100% rename from wallet_app/android/app/src/main/java/com/example/walletapp/theme/Color.kt rename to wallet_app/android/app/src/main/res/theme/Color.kt diff --git a/wallet_app/android/app/src/main/java/com/example/walletapp/theme/Theme.kt b/wallet_app/android/app/src/main/res/theme/Theme.kt similarity index 100% rename from wallet_app/android/app/src/main/java/com/example/walletapp/theme/Theme.kt rename to wallet_app/android/app/src/main/res/theme/Theme.kt diff --git a/wallet_app/android/app/src/main/java/com/example/walletapp/theme/Type.kt b/wallet_app/android/app/src/main/res/theme/Type.kt similarity index 100% rename from wallet_app/android/app/src/main/java/com/example/walletapp/theme/Type.kt rename to wallet_app/android/app/src/main/res/theme/Type.kt