Skip to content

Commit 9d25a47

Browse files
fix: repair various issues and eliminate crashes (#1393)
* chore: update to dashj 21.1.8 and dpp 1.7.5 * fix: use v3 explore database * fix: allow for coinjoin mixed as inputs for assetlocks which require higher fees * chore: update translations * Revert "fix: use v3 explore database" This reverts commit fac77cb. * Revert "Revert "fix: use v3 explore database"" This reverts commit b52a1af. * fix: correctly format the fiat value * fix: prevent race condition that crashes the app * fix: use the spendable balance * fix: download explore-v3.db * fix: add missing item from sort_by_options * fix: fix edge case near username fee * fix: catch time change exceptions * fix: receive fragment limits
1 parent 6e22af3 commit 9d25a47

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+116
-80
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ buildscript {
33
kotlin_version = '2.1.0'
44
coroutinesVersion = '1.6.4'
55
ok_http_version = '4.9.1'
6-
dashjVersion = '21.1.8-SNAPSHOT'
7-
dppVersion = "1.7.5-OPT-SNAPSHOT"
6+
dashjVersion = '21.1.8'
7+
dppVersion = "1.7.5"
88
hiltVersion = '2.53'
99
hiltCompilerVersion = '1.2.0'
1010
hiltWorkVersion = '1.2.0'

fastlane/Fastfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ platform :android do
173173
project_id = "dash-wallet-firebase"
174174
key_file = "#{ENV['PWD']}/.deploy/gc-storage-service-account.json"
175175
bucket_name = "dash-wallet-firebase.appspot.com"
176-
file_name = "explore/explore-v2.db"
176+
file_name = "explore/explore-v3.db"
177177
if flavor == "prod" || flavor.nil?
178178
puts "Downloading the production database"
179179
else

features/exploredash/src/main/java/org/dash/wallet/features/exploredash/ui/ctxspend/CTXSpendViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class CTXSpendViewModel @Inject constructor(
126126

127127
val response = repository.purchaseGiftCard(
128128
merchantId = it,
129-
fiatAmount = amountValue.toBigDecimal().toDouble().toString(),
129+
fiatAmount = MonetaryFormat.FIAT.noCode().format(amountValue).toString(),
130130
fiatCurrency = "USD",
131131
cryptoCurrency = Constants.DASH_CURRENCY
132132
)

features/exploredash/src/main/res/values-ar/strings-explore-dash.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
<string name="explore_filtered_by">تمت تصفيتها بواسطة:</string>
9494
<string name="explore_pay_gift_card">ادفع ببطاقة الهدايا</string>
9595
<string name="explore_sort_by">ترتيب حسب</string>
96-
9796
<string-array name="merchants_filter_options">
9897
<item>عبر الانترنت</item>
9998
<item>قريب</item>

features/exploredash/src/main/res/values-cs/strings-explore-dash.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
<string name="explore_filtered_by">Filtrováno:</string>
8686
<string name="explore_pay_gift_card">Platba dárkovým poukazem</string>
8787
<string name="explore_sort_by">Řadit podle</string>
88-
8988
<string-array name="merchants_filter_options">
9089
<item>Online</item>
9190
<item>Nejbližší</item>

features/exploredash/src/main/res/values-de/strings-explore-dash.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
<string name="explore_filtered_by">Gefiltert nach:</string>
8787
<string name="explore_pay_gift_card">Mit Gutscheinkarte bezahlen</string>
8888
<string name="explore_sort_by">Sortieren nach</string>
89-
9089
<string-array name="merchants_filter_options">
9190
<item>Online</item>
9291
<item>In der Nähe</item>
@@ -117,7 +116,7 @@
117116
<string-array name="sort_by_options_names">
118117
<item>Name</item>
119118
<item>Entfernung</item>
120-
<item>Discount</item>
119+
<item>Rabatt</item>
121120
</string-array>
122121

123122
<plurals name="radius_miles">
@@ -202,7 +201,6 @@
202201
<string name="send_coins_error_msg">Problem beim Versenden der Dash!</string>
203202
<string name="gift_card_barcode_failed">Der Strichcode konnte nicht geladen werden.</string>
204203
<string name="gift_card_tx_title">Geschenkkarte · %s</string>
205-
206204
<!-- dash spend login-->
207205
<string name="enter_verification_code">Verifizierungscode eingeben</string>
208206
<string name="verification_check_email">Kontrolliere deine E-Mail und deinen Verifizierungscode</string>

features/exploredash/src/main/res/values-el/strings-explore-dash.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
<string name="explore_filtered_by">Φιλτράρεται από:</string>
8686
<string name="explore_pay_gift_card">Πληρώστε με δωροκάρτα</string>
8787
<string name="explore_sort_by">Ταξινόμηση κατά</string>
88-
8988
<string-array name="merchants_filter_options">
9089
<item>Online</item>
9190
<item>Κοντινή τοποθεσία</item>
@@ -116,7 +115,7 @@
116115
<string-array name="sort_by_options_names">
117116
<item>Όνομα</item>
118117
<item>Απόσταση</item>
119-
<item>Discount</item>
118+
<item>Έκπτωση</item>
120119
</string-array>
121120

122121
<plurals name="radius_miles">
@@ -201,7 +200,6 @@
201200
<string name="send_coins_error_msg">Πρόβλημα στην αποστολή νομισμάτων!</string>
202201
<string name="gift_card_barcode_failed">Απέτυχε η φόρτωση του barcode</string>
203202
<string name="gift_card_tx_title">Δωροκάρτα · %s</string>
204-
205203
<!-- dash spend login-->
206204
<string name="enter_verification_code">Πληκτρολογήστε τον κωδικό επαλήθευσης</string>
207205
<string name="verification_check_email">Ελέγξτε το email σας και πληκτρολογήστε τον κωδικό επαλήθευσης</string>

features/exploredash/src/main/res/values-es/strings-explore-dash.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
<string name="explore_back_to_nearest">Volver a la ubicación más cercana</string>
6464
<string name="explore_select_location">Seleccionar ubicación</string>
6565
<string name="explore_pay_with_dash">Pagar con Dash</string>
66+
<string name="explore_pay_with_dash_save">Salvar %.2f%%</string>
6667
<string name="explore_buy_gift_card">Comprar una Tarjeta de regalo</string>
6768
<string name="explore_buy_dash">Comprar Dash</string>
6869
<string name="explore_sell_dash">Vender Dash</string>
@@ -87,7 +88,6 @@
8788
<string name="explore_filtered_by">Filtrado por:</string>
8889
<string name="explore_pay_gift_card">Pagar con tarjeta de regalo</string>
8990
<string name="explore_sort_by">Ordenar por</string>
90-
9191
<string-array name="merchants_filter_options">
9292
<item>En línea</item>
9393
<item>Cercano</item>
@@ -118,7 +118,7 @@
118118
<string-array name="sort_by_options_names">
119119
<item>Nombre</item>
120120
<item>Distancia</item>
121-
<item>Discount</item>
121+
<item>Descuento</item>
122122
</string-array>
123123

124124
<plurals name="radius_miles">
@@ -205,12 +205,13 @@
205205
<string name="send_coins_error_msg">¡Problema enviando monedas!</string>
206206
<string name="gift_card_barcode_failed">No se pudo cargar el código de barras</string>
207207
<string name="gift_card_tx_title">Tarjeta de regalo · %s</string>
208-
209208
<!-- dash spend login-->
210209
<string name="enter_verification_code">Ingresar código de verificación</string>
211210
<string name="verification_check_email">Revisa tu correo electrónico e ingresa el código de verificación</string>
212211
<string name="buy_gift_card">Compra una tarjeta de regalo con tu cuenta DashSpend</string>
212+
<string name="dashspend_create_account">Crea una cuenta o inicia sesión en una cuenta existente</string>
213213
<string name="create_new_account">Crear una cuenta nueva</string>
214+
<string name="login">Iniciar sesión</string>
214215
<string name="password">Contraseña</string>
215216
<string name="logged_in_as">Registrado como %s</string>
216217
<string name="log_out">Cerrar sesión</string>
@@ -225,9 +226,16 @@
225226
<string name="gift_card_unknown_error">Por alguna razón no pudimos comprar una tarjeta de regalo. Por favor contacta a soporte con el txid %s.</string>
226227
<string name="gift_card_rejected">El pago ha sido rechazado. Comunícate con CTX con la identificación de la tarjeta de regalo. %s y la identificación de pago %s y la identificación de transacción%s.</string>
227228
<string name="gift_card_redeem_url_not_supported">El pago se realizó para el comerciante que proporciona una URL de canje, pero eso no es compatible actualmente. Comunícate con CTX con la identificación de la tarjeta de regalo. %s y la identificación de pago %s e identificación de transacción%s.</string>
229+
<string name="dashspend_terms_conditions">Aceptar términos y condiciones</string>
228230
<string name="accept_terms_conditions">Acepto los términos y condiciones de DashSpend</string>
229231
<string name="tap_link_to_proceed">Para crear una cuenta en DashSpend, debes tocar el enlace a continuación para continuar</string>
230232
<string name="accept_to_proceed">Para crear una cuenta en DashSpend debes aceptar los términos y condiciones de DashSpend.</string>
233+
<string name="view_terms_conditions">Términos y condiciones</string>
234+
<string name="barcode_placeholder">Tan pronto como tu código sea generado, será mostrado aqui.</string>
235+
236+
<!-- ctx spend login-->
237+
<string name="create_ctx_spend_account">Crear cuenta</string>
238+
<string name="log_in_to_ctxspend_account">Inicia sesión en tu cuenta</string>
231239
<string name="log_in_to_ctxspend_account_desc">Tu correo electrónico sólo se utiliza para enviar una contraseña de un solo uso.</string>
232240
<string name="buy_a_gift_card_with_your_ctx_spend_account">Compra una tarjeta de regalo con tu cuenta DashSpend</string>
233241
<string name="create_an_account_at_ctx_spend_or_log_in_to_the_existing_one">Crea una cuenta DashSpend o inicie sesión en la existente</string>

features/exploredash/src/main/res/values-fa/strings-explore-dash.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
<string name="explore_filtered_by">فیلتر بر اساس: </string>
8686
<string name="explore_pay_gift_card">پرداخت با کارت اعتباری</string>
8787
<string name="explore_sort_by">مرتب کردن بر اساس</string>
88-
8988
<string-array name="merchants_filter_options">
9089
<item>آنلاین</item>
9190
<item>نزدیک‌ترین</item>
@@ -116,7 +115,7 @@
116115
<string-array name="sort_by_options_names">
117116
<item>نام</item>
118117
<item>فاصله</item>
119-
<item>Discount</item>
118+
<item>تخفیف</item>
120119
</string-array>
121120

122121
<plurals name="radius_miles">
@@ -201,7 +200,6 @@
201200
<string name="send_coins_error_msg">مشکل در ارسال مبلغ مورد نظر!</string>
202201
<string name="gift_card_barcode_failed">بارکد بارگذاری نشد</string>
203202
<string name="gift_card_tx_title">کارت هدیه. %s</string>
204-
205203
<!-- dash spend login-->
206204
<string name="enter_verification_code">شماره تائید را وارد کنید</string>
207205
<string name="verification_check_email">ایمیل‌تان را چک کنید و کد تائید را وارد کنید</string>

features/exploredash/src/main/res/values-fil/strings-explore-dash.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
<string name="explore_filtered_by">Na-filter ni:</string>
8686
<string name="explore_pay_gift_card">Magbayad gamit ang gift card</string>
8787
<string name="explore_sort_by">Pag-uri-uriin ayon</string>
88-
8988
<string-array name="merchants_filter_options">
9089
<item>Online</item>
9190
<item>Sa malapit</item>
@@ -116,7 +115,7 @@
116115
<string-array name="sort_by_options_names">
117116
<item>Pangalan</item>
118117
<item>Distansya</item>
119-
<item>Discount</item>
118+
<item>Diskwento</item>
120119
</string-array>
121120

122121
<plurals name="radius_miles">
@@ -201,7 +200,6 @@
201200
<string name="send_coins_error_msg">Nagkaproblema sa pagpapadala ng barya!</string>
202201
<string name="gift_card_barcode_failed">Nabigong i-load ang barcode</string>
203202
<string name="gift_card_tx_title">Gift card · %s</string>
204-
205203
<!-- dash spend login-->
206204
<string name="enter_verification_code">Ilagay ang verification code</string>
207205
<string name="verification_check_email">Suriin ang iyong email at ilagay ang verification code</string>

features/exploredash/src/main/res/values-fr/strings-explore-dash.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
<string name="explore_filtered_by">Filtré par :</string>
8989
<string name="explore_pay_gift_card">Payer avec une carte-cadeau</string>
9090
<string name="explore_sort_by">Trier par</string>
91-
9291
<string-array name="merchants_filter_options">
9392
<item>En ligne</item>
9493
<item>À proximité</item>
@@ -119,7 +118,7 @@
119118
<string-array name="sort_by_options_names">
120119
<item>Nom</item>
121120
<item>Distance</item>
122-
<item>Discount</item>
121+
<item>Réduction</item>
123122
</string-array>
124123

125124
<plurals name="radius_miles">
@@ -206,7 +205,6 @@
206205
<string name="send_coins_error_msg">Problème durant l\'envoi  des fonds !</string>
207206
<string name="gift_card_barcode_failed">Erreur de lecture du code-barres</string>
208207
<string name="gift_card_tx_title">Carte-cadeau · %s</string>
209-
210208
<!-- dash spend login-->
211209
<string name="enter_verification_code">Entrez le code de vérification</string>
212210
<string name="verification_check_email">Consultez votre e-mail et entrez le code de vérification</string>

features/exploredash/src/main/res/values-id/strings-explore-dash.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
<string name="explore_filtered_by">Difilter oleh:</string>
8484
<string name="explore_pay_gift_card">Bayar dengan kartu hadiah</string>
8585
<string name="explore_sort_by">Urutkan dengan</string>
86-
8786
<string-array name="merchants_filter_options">
8887
<item>Online</item>
8988
<item>Terdekat</item>
@@ -114,7 +113,7 @@
114113
<string-array name="sort_by_options_names">
115114
<item>Nama</item>
116115
<item>Jarak</item>
117-
<item>Discount</item>
116+
<item>Diskon</item>
118117
</string-array>
119118

120119
<plurals name="radius_miles">
@@ -197,7 +196,6 @@
197196
<string name="send_coins_error_msg">Gagal mengirim koin!</string>
198197
<string name="gift_card_barcode_failed">Gagal memuat barcode</string>
199198
<string name="gift_card_tx_title">Kartu hadiah · %s</string>
200-
201199
<!-- dash spend login-->
202200
<string name="enter_verification_code">Masukkan Kode verifikasi</string>
203201
<string name="verification_check_email">Periksa email anda dan masukkan kode verifikasi</string>

features/exploredash/src/main/res/values-it/strings-explore-dash.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@
8888
<string name="explore_filtered_by">Filtra per:</string>
8989
<string name="explore_pay_gift_card">Paga con carta regalo</string>
9090
<string name="explore_sort_by">Ordina per</string>
91+
<string name="gift_card_types">Tipologie di gift card</string>
92+
<string name="flexible_amount_option">Importi flessibili</string>
93+
<string name="fixed_denom_option">Importi denominati in maniera fissa</string>
9194

9295
<string-array name="merchants_filter_options">
9396
<item>Online</item>
@@ -119,7 +122,7 @@
119122
<string-array name="sort_by_options_names">
120123
<item>Nome</item>
121124
<item>Distanza</item>
122-
<item>Discount</item>
125+
<item>Sconto</item>
123126
</string-array>
124127

125128
<plurals name="radius_miles">
@@ -206,6 +209,8 @@
206209
<string name="send_coins_error_msg">Problemi durante l\'invio dei Dash!</string>
207210
<string name="gift_card_barcode_failed">Impossibile caricare il codice a barre</string>
208211
<string name="gift_card_tx_title">Carta regalo · %s</string>
212+
<string name="select_amount">Seleziona l\'importo</string>
213+
<string name="select_fixed_amount">Questo commerciante vende carte regalo a prezzi fissi</string>
209214

210215
<!-- dash spend login-->
211216
<string name="enter_verification_code">Inserisci il codice di verifica</string>
@@ -241,4 +246,5 @@
241246
<string name="log_in_to_ctxspend_account_desc">La tua email viene utilizzata solo per inviare una password monouso.</string>
242247
<string name="buy_a_gift_card_with_your_ctx_spend_account">Acquista una carta regalo con il tuo account DashSpend</string>
243248
<string name="create_an_account_at_ctx_spend_or_log_in_to_the_existing_one">Crea un account DashSpend o accedi a quello esistente</string>
244-
</resources>
249+
<string name="temporarily_unavailable">Temporaneamente non disponibile</string>
250+
</resources>

features/exploredash/src/main/res/values-ja/strings-explore-dash.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
<string name="explore_filtered_by">でフィルターをかける</string>
8484
<string name="explore_pay_gift_card">ギフトカード支払い</string>
8585
<string name="explore_sort_by">で並び替え</string>
86-
8786
<string-array name="merchants_filter_options">
8887
<item>オンライン</item>
8988
<item>周辺環境</item>
@@ -114,7 +113,7 @@
114113
<string-array name="sort_by_options_names">
115114
<item>名前</item>
116115
<item>距離</item>
117-
<item>Discount</item>
116+
<item>割引</item>
118117
</string-array>
119118

120119
<plurals name="radius_miles">
@@ -197,7 +196,6 @@
197196
<string name="send_coins_error_msg">送金に問題が発生しました!</string>
198197
<string name="gift_card_barcode_failed">バーコードのロードに失敗しました</string>
199198
<string name="gift_card_tx_title">ギフトカード · %s</string>
200-
201199
<!-- dash spend login-->
202200
<string name="enter_verification_code">認証コードを入力</string>
203201
<string name="verification_check_email">メールを確認して認証コードを入力する</string>

features/exploredash/src/main/res/values-ko/strings-explore-dash.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
<string name="explore_filtered_by">다음으로 필터:</string>
8484
<string name="explore_pay_gift_card">기프트 카드로 지불</string>
8585
<string name="explore_sort_by">분류</string>
86-
8786
<string-array name="merchants_filter_options">
8887
<item>온라인</item>
8988
<item>근처</item>
@@ -114,7 +113,7 @@
114113
<string-array name="sort_by_options_names">
115114
<item>이름</item>
116115
<item>거리</item>
117-
<item>Discount</item>
116+
<item>할인</item>
118117
</string-array>
119118

120119
<plurals name="radius_miles">
@@ -197,7 +196,6 @@
197196
<string name="send_coins_error_msg">송금 중 알 수 없는 문제가 발생했습니다!</string>
198197
<string name="gift_card_barcode_failed">바코드 로딩 실패</string>
199198
<string name="gift_card_tx_title">기프트 카드 · %s</string>
200-
201199
<!-- dash spend login-->
202200
<string name="enter_verification_code">인증 코드 입력</string>
203201
<string name="verification_check_email">이메일을 확인하셔서 인증 코드를 입력하세요</string>

features/exploredash/src/main/res/values-nl/strings-explore-dash.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
<string name="explore_filtered_by">Gefilterd op:</string>
8686
<string name="explore_pay_gift_card">Betaal met geschenkbon</string>
8787
<string name="explore_sort_by">Sorteer op</string>
88-
8988
<string-array name="merchants_filter_options">
9089
<item>Online</item>
9190
<item>Dichtbij</item>
@@ -116,7 +115,7 @@
116115
<string-array name="sort_by_options_names">
117116
<item>Naam</item>
118117
<item>Afstand</item>
119-
<item>Discount</item>
118+
<item>Korting</item>
120119
</string-array>
121120

122121
<plurals name="radius_miles">
@@ -201,7 +200,6 @@
201200
<string name="send_coins_error_msg">Er is een probleem opgetreden bij het versturen van munten!</string>
202201
<string name="gift_card_barcode_failed">Kan de streepjescode niet laden</string>
203202
<string name="gift_card_tx_title">Cadeaukaart · %s</string>
204-
205203
<!-- dash spend login-->
206204
<string name="enter_verification_code">Voer verificatiecode in</string>
207205
<string name="verification_check_email">Controleer je e-mail en voer de verificatiecode in</string>

features/exploredash/src/main/res/values-pl/strings-explore-dash.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
<string name="explore_filtered_by">Od filtrowane pod względem:</string>
9191
<string name="explore_pay_gift_card">Płać za pomocą karty podarunkowej</string>
9292
<string name="explore_sort_by">Sortuj według</string>
93-
9493
<string-array name="merchants_filter_options">
9594
<item>Online</item>
9695
<item>W pobliżu</item>
@@ -121,7 +120,7 @@
121120
<string-array name="sort_by_options_names">
122121
<item>Imię</item>
123122
<item>Dystans</item>
124-
<item>Discount</item>
123+
<item>Zniżka</item>
125124
</string-array>
126125

127126
<plurals name="radius_miles">
@@ -210,7 +209,6 @@
210209
<string name="send_coins_error_msg">Problem z wysłaniem monet!</string>
211210
<string name="gift_card_barcode_failed">Nie udało się załadować kodu kreskowego</string>
212211
<string name="gift_card_tx_title">Karta podarunkowa · %s</string>
213-
214212
<!-- dash spend login-->
215213
<string name="enter_verification_code">Wprowadź kod weryfikacyjny</string>
216214
<string name="verification_check_email">Sprawdź swoją pocztę e-mail i wprowadź kod weryfikacyjny</string>

0 commit comments

Comments
 (0)