Skip to content

Commit

Permalink
Add Astar, dYdX, Fetch.ai, Injective, and Pantos.
Browse files Browse the repository at this point in the history
  • Loading branch information
hwki committed Feb 1, 2024
1 parent ad2e097 commit 4c5679f
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 7 deletions.
8 changes: 4 additions & 4 deletions bitcoin/build.gradle
Expand Up @@ -13,8 +13,8 @@ android {
applicationId "com.brentpanther.bitcoinwidget"
minSdk 23
targetSdk 34
versionCode 328
versionName "8.5.3"
versionCode 329
versionName "8.5.4"

}

Expand Down Expand Up @@ -62,7 +62,7 @@ ksp {
}

dependencies {
implementation platform('androidx.compose:compose-bom:2023.10.01')
implementation platform('androidx.compose:compose-bom:2024.01.00')

implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3'
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2'
Expand All @@ -80,7 +80,7 @@ dependencies {
implementation 'io.coil-kt:coil-compose:2.5.0'
implementation 'androidx.core:core-ktx:1.12.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'com.jayway.jsonpath:json-path:2.8.0'
testImplementation 'com.jayway.jsonpath:json-path:2.9.0'
debugImplementation "androidx.compose.ui:ui-tooling"

def room_version = '2.6.1'
Expand Down
5 changes: 5 additions & 0 deletions bitcoin/src/main/java/com/brentpanther/bitcoinwidget/Coin.kt
Expand Up @@ -17,6 +17,7 @@ enum class Coin(val coinName: String, val coinGeckoId: String, private vararg va
APT("Aptos", "aptos", IconTheme(SOLID, ic_apt)),
ARB("Arbitrum", "arbitrum", IconTheme(SOLID, ic_arb)),
ARRR("Pirate Chain", "pirate-chain", IconTheme(SOLID, ic_arrr)),
ASTR("Astar", "astar", IconTheme(SOLID, ic_astr)),
ATOM("Cosmos", "cosmos", IconTheme(SOLID, ic_atom)),
AVA("Travala.com", "concierge-io", IconTheme(SOLID, ic_ava)),
AVAX("Avalanche","avalanche-2", IconTheme(SOLID, ic_avax, ic_avax_dark)),
Expand Down Expand Up @@ -52,11 +53,13 @@ enum class Coin(val coinName: String, val coinGeckoId: String, private vararg va
DCR("Decred", "decred", IconTheme(SOLID, ic_dcr)),
DOGE("Dogecoin", "dogecoin", IconTheme(SOLID, ic_doge)),
DOT("Polkadot", "polkadot", IconTheme(SOLID, ic_dot)),
DYDX("dYdX", "dydx-chain", IconTheme(SOLID, ic_dydx)),
EGLD("Elrond", "elrond-erd-2", IconTheme(SOLID, ic_egld_dark, ic_egld_white)),
ENJ("Enjin Coin", "enjincoin", IconTheme(SOLID, ic_enj)),
EOS("EOS", "eos", IconTheme(SOLID, ic_eos_black, ic_eos_white), IconTheme(TRANSPARENT, ic_eos_white)),
ETC("Ethereum Classic", "ethereum-classic", IconTheme(SOLID, ic_etc)),
ETH("Ethereum", "ethereum", IconTheme(SOLID, ic_eth)),
FET("Fetch.ai", "fetch-ai", IconTheme(SOLID, ic_fet)),
FIL("Filecoin", "filecoin", IconTheme(SOLID, ic_fil)),
FIRO("Firo", "zcoin", IconTheme(SOLID, ic_firo, ic_firo_dark)),
FLR("Flare", "flare-networks", IconTheme(SOLID, ic_flr)),
Expand All @@ -73,6 +76,7 @@ enum class Coin(val coinName: String, val coinGeckoId: String, private vararg va
ICX("Icon", "icon", IconTheme(SOLID, ic_icx)),
ID("Space ID", "space-id", IconTheme(SOLID, ic_id)),
IMX("Immutable", "immutable-x", IconTheme(SOLID, ic_imx)),
INJ("Injective", "injective-protocol", IconTheme(SOLID, ic_inj)),
IOTA("Iota", "iota", IconTheme(SOLID, ic_iota, ic_iota_white)),
KAS("Kaspa", "kaspa", IconTheme(SOLID, ic_kas_color)),
KAVA("Kava", "kava", IconTheme(SOLID, ic_kava)),
Expand Down Expand Up @@ -105,6 +109,7 @@ enum class Coin(val coinName: String, val coinGeckoId: String, private vararg va
OMG("OMG", "omisego", IconTheme(SOLID, ic_omg)),
ONT("Ontology", "ontology", IconTheme(SOLID, ic_ont)),
OP("Optimism", "optimism", IconTheme(SOLID, ic_op)),
PAN("Pantos", "pantos", IconTheme(SOLID, ic_pan)),
PAX("Paxos Standard", "paxos-standard", IconTheme(SOLID, ic_pax)),
PAXG("PAX Gold", "pax-gold", IconTheme(SOLID, ic_paxg_color)),
POWR("Power Ledger", "power-ledger", IconTheme(SOLID, ic_powr_color)),
Expand Down
Binary file added bitcoin/src/main/res/drawable-nodpi/ic_astr.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bitcoin/src/main/res/drawable-nodpi/ic_dydx.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bitcoin/src/main/res/drawable-nodpi/ic_fet.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bitcoin/src/main/res/drawable-nodpi/ic_inj.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bitcoin/src/main/res/drawable-nodpi/ic_pan.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion bitcoin/src/main/res/raw/cryptowidgetcoins_v2.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bitcoin/src/main/res/values/strings.xml
Expand Up @@ -94,7 +94,7 @@
<item>ISO</item>
<item>NONE</item>
</string-array>
<string name="json_last_modified" translatable="false">Sun, 21 Jan 2024 14:35:57 GMT</string>
<string name="json_last_modified" translatable="false">Thu, 01 Feb 2024 20:47:37 GMT</string>
<string name="json_url" translatable="false">https://www.brentpanther.com/cryptowidgetcoins_v2.json</string>

<string name="error_restricted_battery_saver">Unable to refresh, Battery Saver is on</string>
Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Expand Up @@ -2,14 +2,15 @@

buildscript {
ext.compose_compiler_version = '1.5.8'

ext.kotlin_version = '1.9.22'
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.2.1'
classpath 'com.android.tools.build:gradle:8.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22"

// NOTE: Do not place your application dependencies here; they belong
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/329.txt
@@ -0,0 +1 @@
Added Astar, dYdX, Fetch.ai, Injective, and Pantos coins.

1 comment on commit 4c5679f

@avl42
Copy link

@avl42 avl42 commented on 4c5679f Feb 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

Please sign in to comment.