From a87dd1c7611714570a7fe0018d0070230e42f950 Mon Sep 17 00:00:00 2001 From: Brent Panther Date: Sat, 2 Sep 2023 11:58:09 -0500 Subject: [PATCH] Update to API 34. Update gradle. Update to Kotlin 1.9. Update dependencies. Switch from Gson to kotlinx serialization. Remove Bitcambio, Wyre, Zbg. Fixes for Bybit, Coinsbit, Poloniex Added Hashkey. Add auto search for coin selection screen. Improve coin/currency pair generation code. --- .idea/compiler.xml | 2 +- .idea/inspectionProfiles/Project_Default.xml | 3 + .idea/jarRepositories.xml | 5 + .idea/kotlinc.xml | 6 + bitcoin/build.gradle | 66 ++-- bitcoin/src/main/AndroidManifest.xml | 3 +- .../com/brentpanther/bitcoinwidget/Coin.kt | 154 +++++++- .../com/brentpanther/bitcoinwidget/Enums.kt | 8 +- .../brentpanther/bitcoinwidget/Repository.kt | 10 +- .../bitcoinwidget/WidgetProvider.kt | 12 +- .../bitcoinwidget/db/DatabaseInitializer.kt | 22 +- .../exchange/CustomExchangeData.kt | 2 +- .../bitcoinwidget/exchange/Exchange.kt | 370 +++++++++--------- .../bitcoinwidget/exchange/ExchangeData.kt | 43 +- .../bitcoinwidget/exchange/ExchangeHelper.kt | 22 +- .../strategy/display/WidgetDisplayStrategy.kt | 2 +- .../ComposePreviewWidgetPresenter.kt | 2 +- .../bitcoinwidget/ui/BannersViewModel.kt | 4 +- .../bitcoinwidget/ui/MainActivity.kt | 4 + .../bitcoinwidget/ui/home/HomeScreen.kt | 3 +- .../ui/home/ManageWidgetsViewModel.kt | 10 +- .../ui/selection/CoinResponse.kt | 5 +- .../ui/selection/CoinSelectionScreen.kt | 9 +- .../ui/selection/CoinSelectionViewModel.kt | 32 +- .../ui/settings/SettingsScreen.kt | 30 +- .../ui/settings/SettingsViewModel.kt | 11 +- .../bitcoinwidget/ui/theme/Theme.kt | 8 +- .../main/res/raw/cryptowidgetcoins_v2.json | 2 +- bitcoin/src/main/res/values-night/colors.xml | 3 - bitcoin/src/main/res/values/colors.xml | 4 - bitcoin/src/main/res/values/strings.xml | 2 +- bitcoin/src/main/res/values/themes.xml | 16 +- .../bitcoinwidget/ExchangeTest.kt | 52 ++- .../GenerateSupportedCoinsJson.kt | 370 +++++++++--------- build.gradle | 17 +- .../metadata/android/en-US/changelogs/319.txt | 4 + gradle.properties | 3 + gradle/wrapper/gradle-wrapper.jar | Bin 59203 -> 61608 bytes gradle/wrapper/gradle-wrapper.properties | 3 +- gradlew | 269 ++++++++----- gradlew.bat | 15 +- 41 files changed, 950 insertions(+), 658 deletions(-) create mode 100644 .idea/kotlinc.xml create mode 100644 fastlane/metadata/android/en-US/changelogs/319.txt diff --git a/.idea/compiler.xml b/.idea/compiler.xml index fb7f4a8a..b589d56e 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 5c9d8c83..ad2fbb4b 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -5,6 +5,9 @@ + + diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index e34606cc..fe0271cc 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -26,5 +26,10 @@