From dad71108d824da91c6113c305d276f9430a5e1a2 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Wed, 2 Oct 2024 17:46:59 +0200 Subject: [PATCH] refactoring --- .idea/misc.xml | 1 - .idea/other.xml | 11 + app/build.gradle.kts | 3 - app/src/main/AndroidManifest.xml | 4 +- .../java/eu/m724/coincounter/CurrencyUtils.kt | 54 ++++ .../java/eu/m724/coincounter/MainActivity.kt | 279 ------------------ .../eu/m724/coincounter/home/HomeActivity.kt | 94 ++++++ .../HomeViewModel.kt} | 4 +- .../home/compose/CreateWalletButton.kt | 114 +++++++ .../home/compose/HomeActivityView.kt | 31 ++ .../coincounter/home/compose/WalletCard.kt | 40 +++ .../coincounter/home/compose/WalletList.kt | 35 +++ .../wallet/compose/TransactionDialog.kt | 3 +- .../wallet/compose/TransactionList.kt | 4 +- .../wallet/compose/WalletActivityView.kt | 6 +- app/src/main/res/values-pl/strings.xml | 4 +- app/src/main/res/values/strings.xml | 4 +- 17 files changed, 394 insertions(+), 297 deletions(-) create mode 100644 app/src/main/java/eu/m724/coincounter/CurrencyUtils.kt delete mode 100644 app/src/main/java/eu/m724/coincounter/MainActivity.kt create mode 100644 app/src/main/java/eu/m724/coincounter/home/HomeActivity.kt rename app/src/main/java/eu/m724/coincounter/{MainViewModel.kt => home/HomeViewModel.kt} (93%) create mode 100644 app/src/main/java/eu/m724/coincounter/home/compose/CreateWalletButton.kt create mode 100644 app/src/main/java/eu/m724/coincounter/home/compose/HomeActivityView.kt create mode 100644 app/src/main/java/eu/m724/coincounter/home/compose/WalletCard.kt create mode 100644 app/src/main/java/eu/m724/coincounter/home/compose/WalletList.kt diff --git a/.idea/misc.xml b/.idea/misc.xml index 0ad17cb..8978d23 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/.idea/other.xml b/.idea/other.xml index 94c96f6..a76f118 100644 --- a/.idea/other.xml +++ b/.idea/other.xml @@ -25,6 +25,17 @@