Skip to content

chore: v11.8 - #1488

Merged
HashEngineering merged 22 commits into
masterfrom
build-11.8
Jun 9, 2026
Merged

HashEngineering merged 22 commits into
masterfrom
build-11.8

Conversation

@HashEngineering

@HashEngineering HashEngineering commented Jun 2, 2026 •

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

Related PR's and Dependencies

Screenshots / Videos

How Has This Been Tested?

  • QA (Mobile Team)

Checklist:

  • I have performed a self-review of my own code and added comments where necessary
  • I have added or updated relevant unit/integration/functional/e2e tests

Summary by CodeRabbit

  • New Features

    • Maya crypto-conversion service added (localized).
    • New Coinbase USD wallet error message.
  • Improvements

    • Gift card purchase flow: new buy title, reset action, quantity/denomination labels and refinements.
    • Expanded and refined translations across many locales.
    • Clearer transaction-export wording and new export guidance/dialogs; transaction history refresh/cache messages.
  • Bug Fixes

    • More robust send/commit handling for payments.
    • Gift-card metadata updates now preserve existing data.
    • Improved fragment lifecycle handling to avoid restore issues.

@HashEngineering HashEngineering self-assigned this Jun 2, 2026
@coderabbitai

coderabbitai Bot commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Updates build versions and BuildConfig flags; adds ostruct to Gemfile. Broad localization edits across modules, ExploreDash gift-card UI/logic changes, AppsFlyer/init reorder, safer tx commit (maybeCommitTx), merged gift-card metadata, Compose/Contacts lifecycle fixes, peer shutdown tweaks, and aligned tests.

Changes

Build & configuration

Layer / File(s) Summary
Buildscript versions & defaults
build.gradle
Switched dashj/dpp from SNAPSHOT to release values.
Module buildFeatures
common/build.gradle, features/exploredash/build.gradle, wallet/build.gradle
Enabled buildConfig true in modules and added flavor APPSFLYER_BRAND_DOMAIN fields.
Gradle properties & test JVM
gradle.properties, wallet/build.gradle
Removed global default buildconfig flag; increased unit test heap to 2g.
Ruby dependencies
Gemfile
Added gem "ostruct".

Runtime & services

Layer / File(s) Summary
AppsFlyer initialization & TopUp link
wallet/src/.../WalletApplication.java, TopUpRepository.kt
AppsFlyer init no longer gated on GMS and moved later in startup; set verbose log level; AppsFlyer link uses BuildConfig brand domain and toUri() for images.
SendCoins commit safety
SendCoinsTaskRunner.kt
Replaced wallet.commitTx() with wallet.maybeCommitTx() to avoid duplicate-commit race in BIP70/BIP270 flows.
Blockchain peer handling
BlockchainServiceImpl.kt
Removed peerInfo set in null-peerGroup branch; use peerGroup.forceStop(7_000) on shutdown.
Compose/fragment lifecycle
ComposeBottomSheet.kt, ContactsFragment.kt
ComposeBottomSheet adds default content lambda and dismiss-on-restore; ContactsFragment defers identity routing to observer, adds one-shot setup, and fixes empty-state visibility logic.

Data & storage

Layer / File(s) Summary
Gift-card metadata merge
WalletTransactionMetadataProvider.kt
Replaced blind @Update with fetch-merge-insert/update to preserve existing fields on partial updates.
PiggyCards mapping & parsing
PiggyCardsRepository.kt, GiftCardDetailsViewModel.kt
Use explicit network params for BitcoinURI; compute contiguous local indices and map server card positions to sorted local indices; barcode persistence tries URL then CODE_128 fallback.

ExploreDash behavior & strings

Layer / File(s) Summary
Savings formatting
SavingsFormatting.kt
Removed early return for 0.0; formats zero as "0" using DecimalFormat.
ExploreDash localized strings
features/exploredash/src/main/res/values-*/strings-explore-dash.xml
Added/removed/updated multiple purchase/gift-card UI strings (buy title, reset, fees, quantity/plurals, order number, cashier instructions, errors) across locales.

Localization & integrations

Layer / File(s) Summary
Common localization additions
common/src/main/res/values-*/strings.xml
Added button_cancel, button_confirm, from_title, to_title, scanning/address/input-parser strings across many locales.
Coinbase locale additions
integrations/coinbase/src/main/res/values-*/strings.xml
Added coinbase_usd_wallet_error_message in multiple locales.
Maya integration strings
integrations/maya/src/main/res/values-*/strings-maya.xml
Added full set of Maya UI/network/error strings across many locales.
Wallet locale cleanup & export flow
wallet/res/values-*/strings*.xml
Removed many scan/input_parser strings, updated Extended Public Key wording to include “(BIP44)”, added transaction-history cache refresh strings, CSV export/dialog/body/error strings, masternode key labels, tools/about copy updates, and other locale-specific edits.

Estimated code review effort
🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

Suggested reviewers

  • abaranouski

Soft paws tap keys with tidy dash,
New links and cards in gentle stash.
Commits avoid the double-bind,
Strings aligned for every mind.
Fragments hush when processes wake—
Rabbit ships the restful update. 🐇✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch build-11.8

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Note

Due to the large number of review comments, Critical severity comments were prioritized as inline comments.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt (1)

643-663: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Remove invitation/deeplink payloads and AppsFlyer userParams from logs

createAppsFlyerLink()’s onResponse logs the generated AppsFlyer link, raw invite deep link (invitationLinkData.link), and linkGenerator.userParams. These values can contain the full invitation/attribution payload and shouldn’t be written to persistent logs—keep only a success/failure message or redact.

Suggested fix
             linkGenerator.generateLink(walletApplication, object : ResponseListener {
                 override fun onResponse(link: String?) {
-                    log.info("AppsFlyer link generated successfully: {}", link)
-                    log.info("AppsFlyer link generator : {}", linkGenerator.generateLink())
-                    log.info("AppsFlyer af_dp : {}", invitationLinkData.link.toString())
-                    log.info("AppsFlyer user parameters {}", linkGenerator.userParams)
+                    log.info("AppsFlyer link generated successfully")

                     continuation.resume(
                         DynamicLink(
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt` around
lines 643 - 663, The onResponse block in createAppsFlyerLink() currently logs
the full generated AppsFlyer link, invitationLinkData.link, and
linkGenerator.userParams which may include sensitive invitation/deeplink
payloads; remove those detailed log statements and replace them with a single
non-sensitive success message (e.g., "AppsFlyer link generated successfully" or
include only a boolean/length/truncated token if absolutely necessary).
Specifically, remove or redact references to link, invitationLinkData.link, and
linkGenerator.userParams in the onResponse implementation of the
ResponseListener used with linkGenerator.generateLink(), and ensure only
minimal, non-persistent diagnostic info is logged.
features/exploredash/src/main/java/org/dash/wallet/features/exploredash/ui/dashspend/dialogs/GiftCardDetailsViewModel.kt (1)

437-477: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Don't mark the order fulfilled when there are no local rows to map.

If uiState.value.giftCards is empty here, we only log and continue. The position-mapping loop then skips every server card, cancelTicker() stops polling, and the UI ends in a fulfilled state without persisting any cards. Return an error/retry state here, or rebuild the missing local rows before continuing.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@features/exploredash/src/main/java/org/dash/wallet/features/exploredash/ui/dashspend/dialogs/GiftCardDetailsViewModel.kt`
around lines 437 - 477, Summary: avoid marking the order fulfilled when no local
rows exist to map; either rebuild missing local rows or set an error/retry state
and do not stop polling. In GiftCardDetailsViewModel, inside the block handling
server giftCards (the forEachIndexed mapping over giftCards using localCards =
uiState.value.giftCards.sortedBy { it.index }), detect the case where
uiState.value.giftCards is empty or missing rows for all positions and do not
proceed to the code path that cancels polling/marks fulfilled; instead either
(A) create the dummy local rows before mapping using the existing pattern (use
uiState.value.giftCards.maxByOrNull { it.index } or create fresh rows with
contiguous indices and insert via giftCardDao.insertGiftCard and update
_uiState) and then continue mapping, or (B) update _uiState to an error/retry
state and return early so cancelTicker() / fulfillment logic is not executed;
reference GiftCardDetailsViewModel, uiState.value.giftCards,
giftCardDao.insertGiftCard, the forEachIndexed mapping, and cancelTicker when
applying the change.
features/exploredash/src/main/res/values-fa/strings-explore-dash.xml (1)

183-183: ⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Missing gift_card_buy_title string resource.

All other locale files in this layer add the gift_card_buy_title string resource between lines 182-184, but the Farsi file is missing this addition. This will cause a runtime error when the app attempts to reference this string in Farsi locale.

🔧 Proposed fix

Insert the missing string resource after line 182:

 <string name="purchase_gift_card_max">حداکثر: %s</string>
+<string name="gift_card_buy_title">خرید کارت هدیه</string>
 <string name="purchase_gift_card_discount_hint">شما در حال خرید یک کارت هدیه %s به قیمت %s (با %s تخفیف) هستند. </string>

Note: The proposed Farsi translation "خرید کارت هدیه" (Buy gift card) should be verified by a native Farsi speaker for accuracy.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@features/exploredash/src/main/res/values-fa/strings-explore-dash.xml` at line
183, Add the missing string resource named gift_card_buy_title to the Farsi
strings file so the app can reference it at runtime; insert it adjacent to the
existing purchase_gift_card_discount_hint entry (i.e., the same block where
other locales added gift_card_buy_title) and use the Farsi translation "خرید
کارت هدیه" (or confirm an alternative with a native speaker) as the value.
🟠 Major comments (21)
wallet/res/values-fr/strings.xml-286-286 (1)

286-286: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Update the adjacent summary to match the renamed key type.

This title now correctly says clé publique étendue, but preferences_extended_public_key_summary on Line 284 still says clé privée étendue. Leaving both together in the same screen confuses a public key with a private key in a security-sensitive flow.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wallet/res/values-fr/strings.xml` at line 286, The summary string
preferences_extended_public_key_summary still refers to a private key while the
title extended_public_key_fragment_title was renamed to "Clé publique étendue
(BIP44)"; update the value of preferences_extended_public_key_summary to refer
to the extended public key (e.g., use "Clé publique étendue" or a matching
localized sentence) so the summary and the title consistently mention the public
key rather than the private key.
wallet/res/values-es/strings.xml-317-318 (1)

317-318: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Align this tax copy with the existing summary text.

report_transaction_history_message on Line 316 says outgoing payments are treated as "una venta", while the new report_transaction_history_body_1 says they are "un gasto". Showing both in the same export flow creates contradictory tax guidance.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wallet/res/values-es/strings.xml` around lines 317 - 318, The two Spanish
strings conflict with the existing summary: update
report_transaction_history_body_1 so its wording matches
report_transaction_history_message (both should refer to outgoing payments
consistently as either "una venta" or "un gasto"); locate
report_transaction_history_message, report_transaction_history_body_1 and
report_transaction_history_body_2 and change report_transaction_history_body_1
to use the same tax treatment term used in report_transaction_history_message,
preserving the explanatory note in report_transaction_history_body_2 about owner
responsibility for base cost adjustments.
wallet/build.gradle-418-418 (1)

418-418: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Use the test AppsFlyer template for devnet as well.

Line 418 points devnet at dashpaytest.onelink.me, but this flavor still inherits APPSFLYER_TEMPLATE_ID from productFlavors.all instead of overriding it like _testNet3 and staging. That leaves WalletApplication and TopUpRepository composing a test-domain link with the wrong OneLink template on devnet, which can break invite routing there.

Suggested fix
         devnet {
             applicationId = "org.dash.dashpay.devnet"
             def imgurClientId = props.getProperty("UPHOLD_CLIENT_ID_SANDBOX")
             def imgurClientSecret = props.getProperty("UPHOLD_CLIENT_SECRET_SANDBOX")
             if (imgurClientId == null) {
                 imgurClientId = "\"UPHOLD_CLIENT_ID\""
             }
             if (imgurClientSecret == null) {
                 imgurClientSecret = "\"UPHOLD_CLIENT_SECRET\""
             }
             buildConfigField("String", "UPHOLD_CLIENT_ID", "\"UPHOLD_CLIENT_ID\"")
             buildConfigField("String", "UPHOLD_CLIENT_SECRET", "\"UPHOLD_CLIENT_SECRET\"")
             def topperKeyId = props.getProperty("TOPPER_KEY_ID_SANDBOX", "\"TOPPER_KEY_ID\"")
             def topperWidgetId = props.getProperty("TOPPER_WIDGET_ID_SANDBOX", "\"TOPPER_WIDGET_ID\"")
             def topperPrivateKey = props.getProperty("TOPPER_PRIVATE_KEY_SANDBOX", "\"TOPPER_PRIVATE_KEY\"")
             buildConfigField("String", "TOPPER_KEY_ID", topperKeyId)
             buildConfigField("String", "TOPPER_WIDGET_ID", topperWidgetId)
             buildConfigField("String", "TOPPER_PRIVATE_KEY", topperPrivateKey)
             buildConfigField("String", "ZENLEDGER_CLIENT_ID", "\"\"")
             buildConfigField("String", "ZENLEDGER_CLIENT_SECRET", "\"\"")
+            def appsFlyerTemplateId = props.getProperty("APPSFLYER_TEMPLATE_ID_TESTNET", "\"\"")
+            buildConfigField("String", "APPSFLYER_TEMPLATE_ID", appsFlyerTemplateId)
             buildConfigField("String", "APPSFLYER_BRAND_DOMAIN", "\"dashpaytest.onelink.me\"")
         }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wallet/build.gradle` at line 418, The devnet flavor sets
APPSFLYER_BRAND_DOMAIN to "dashpaytest.onelink.me" but does not override
APPSFLYER_TEMPLATE_ID (it still inherits from productFlavors.all), causing
WalletApplication and TopUpRepository to compose invite links with a mismatched
OneLink template; update the devnet product flavor in build.gradle to explicitly
set buildConfigField("String", "APPSFLYER_TEMPLATE_ID", "<test_template_id>") to
the test AppsFlyer template (same pattern as _testNet3 and staging) so
APPSFLYER_TEMPLATE_ID and APPSFLYER_BRAND_DOMAIN are consistent for devnet.
wallet/src/de/schildbach/wallet/WalletApplication.java-307-316 (1)

307-316: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Register the AppsFlyer conversion listener before calling start().
In WalletApplication.initializeAppsFlyer(), the listener is registered only after appsFlyerLib.start(this) (init passes null), which can miss cold-start attribution callbacks—pass the AppsFlyerConversionListener into init(...) or otherwise register it before start().

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wallet/src/de/schildbach/wallet/WalletApplication.java` around lines 307 -
316, In WalletApplication.initializeAppsFlyer(), register the AppsFlyer
conversion listener before calling appsFlyerLib.start(): either pass the new
com.appsflyer.AppsFlyerConversionListener instance into appsFlyerLib.init(...)
instead of null, or call appsFlyerLib.registerConversionListener(this, new
AppsFlyerConversionListener(...) ) immediately after init and before
appsFlyerLib.start(this); update references to appsFlyerLib.init,
registerConversionListener and start in that method so cold-start attribution
callbacks are not missed.
wallet/src/de/schildbach/wallet/WalletApplication.java-309-369 (1)

309-369: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Stop logging sensitive AppsFlyer payloads/deep-link values (and avoid VERBOSE logging)

WalletApplication.initializeAppsFlyer() currently enables AppsFlyer setLogLevel(VERBOSE) and logs full conversion/attribution maps plus the resolved deep-link string at INFO. Redact or gate these logs behind debug-only paths.

Suggested fix
             appsFlyerLib.setAppInviteOneLink(BuildConfig.APPSFLYER_TEMPLATE_ID);
             appsFlyerLib.setDebugLog(BuildConfig.DEBUG);
-            appsFlyerLib.setLogLevel(com.appsflyer.AFLogger.LogLevel.VERBOSE);
             String customerId = config.getUniqueId();
             appsFlyerLib.setCustomerUserId(customerId);
             appsFlyerLib.start(this);
@@
                 `@Override`
                 public void onConversionDataSuccess(Map&lt;String, Object&gt; data) {
-                    log.info("AppsFlyer conversion received: {}", data);
                     if (data != null) {
-                        log.info("Available keys: {}", data.keySet());
+                        log.debug("AppsFlyer conversion keys: {}", data.keySet());
                         handleDeepLinkData(data);
                     }
                 }
@@
                 public void onAppOpenAttribution(Map&lt;String, String&gt; data) {
-                    log.info("AppsFlyer app open attribution: {}", data);
                     if (data != null) {
-                        log.info("Available attribution keys: {}", data.keySet());
+                        log.debug("AppsFlyer attribution keys: {}", data.keySet());
                         Map&lt;String, Object&gt; objectData = new HashMap&lt;&gt;(data);
                         handleDeepLinkData(objectData);
                     }
                 }
@@
                 private void handleDeepLinkData(Map&lt;String, Object&gt; data) {
                     String deepLinkValue = extractDeepLink(data);
                     if (deepLinkValue != null) {
-                        log.info("Processing deep link: {}", deepLinkValue);
+                        log.debug("Processing AppsFlyer deep link");
                         new android.os.Handler(android.os.Looper.getMainLooper()).post(() -&gt; {
                                 Intent intent = new Intent(getApplicationContext(), de.schildbach.wallet.ui.InviteHandlerActivity.class);
                                 intent.setData(Uri.parse(deepLinkValue));
                                 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                                 startActivity(intent);
                             });
                     } else {
                         log.warn("No deep link found in AppsFlyer data");
                     }
                 }
@@
                             if (!stringValue.trim().isEmpty()) {
-                                log.info("Found deep link in key '{}': {}", key, stringValue);
+                                log.debug("Found deep link in AppsFlyer key '{}'", key);
                                 return stringValue;
                             }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wallet/src/de/schildbach/wallet/WalletApplication.java` around lines 309 -
369, The code in WalletApplication.initializeAppsFlyer enables VERBOSE AppsFlyer
logging and records full conversion/attribution maps and the resolved deep-link
string (in onConversionDataSuccess, onAppOpenAttribution, and extractDeepLink),
which exposes sensitive data; change
appsFlyerLib.setLogLevel(com.appsflyer.AFLogger.LogLevel.VERBOSE) to a
non-verbose level (e.g., WARN or ERROR), remove or redact full payload logs in
onConversionDataSuccess/onConversionDataFail/onAppOpenAttribution (log only
existence/keys or a masked summary), and stop logging the raw deepLinkValue in
extractDeepLink/handleDeepLinkData—instead log only that a deep link was found
or, when BuildConfig.DEBUG is true, log the full value; apply these changes
inside WalletApplication.initializeAppsFlyer and its inner
AppsFlyerConversionListener to avoid exposing sensitive data.
wallet/src/de/schildbach/wallet/service/WalletTransactionMetadataProvider.kt-347-380 (1)

347-380: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Unify the gift-card merge path or note will still be lost in platform syncs.

This method now preserves note, but syncPlatformMetadata() still updates gift cards through insertOrUpdateGiftCard(), and that helper's merge at Lines 706-714 still omits note. Existing rows updated from the platform path can therefore still silently drop note changes. Please move the merge into one shared helper and include note there so both update paths behave the same way.

💡 Suggested direction
 override suspend fun updateGiftCardMetadata(giftCard: GiftCard) {
-    val existing = giftCardDao.getCardForTransaction(giftCard.txId).find { it.index == giftCard.index }
-    val merged = if (existing == null) {
-        giftCard
-    } else {
-        existing.copy(
-            merchantName = giftCard.merchantName.ifEmpty { existing.merchantName },
-            price = giftCard.price.takeIf { it != 0.0 } ?: existing.price,
-            number = giftCard.number ?: existing.number,
-            pin = giftCard.pin ?: existing.pin,
-            barcodeValue = giftCard.barcodeValue ?: existing.barcodeValue,
-            barcodeFormat = giftCard.barcodeFormat ?: existing.barcodeFormat,
-            merchantUrl = giftCard.merchantUrl ?: existing.merchantUrl,
-            note = giftCard.note ?: existing.note
-        )
-    }
-
-    if (existing == null) {
-        giftCardDao.insertGiftCard(merged)
-    } else {
-        giftCardDao.updateGiftCard(merged)
-    }
+    val merged = insertOrUpdateGiftCard(giftCard)
 
     // for now, only save the first card
     if (merged.index == 0) {
         transactionMetadataChangeCacheDao.insertGiftCardData(
             merged.txId,

And update the shared helper to return the merged row and preserve note as well:

private suspend fun insertOrUpdateGiftCard(giftCard: GiftCard): GiftCard {
    ...
    val updatedGiftCard = existingGiftCard.copy(
        merchantName = giftCard.merchantName.ifEmpty { existingGiftCard.merchantName },
        price = giftCard.price.takeIf { it != 0.0 } ?: existingGiftCard.price,
        number = giftCard.number ?: existingGiftCard.number,
        pin = giftCard.pin ?: existingGiftCard.pin,
        barcodeValue = giftCard.barcodeValue ?: existingGiftCard.barcodeValue,
        barcodeFormat = giftCard.barcodeFormat ?: existingGiftCard.barcodeFormat,
        merchantUrl = giftCard.merchantUrl ?: existingGiftCard.merchantUrl,
        note = giftCard.note ?: existingGiftCard.note
    )
    ...
}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wallet/src/de/schildbach/wallet/service/WalletTransactionMetadataProvider.kt`
around lines 347 - 380, The platform-sync path still uses its own merge in
insertOrUpdateGiftCard(), so notes can be lost; consolidate the merge logic into
a single helper (e.g., move the existing merge used here into
insertOrUpdateGiftCard or create a shared mergeGiftCard(existing, incoming):
GiftCard) and ensure the merge copies note = incoming.note ?: existing.note;
have insertOrUpdateGiftCard return the merged GiftCard and update callers
(syncPlatformMetadata() and the local update path that currently builds merged)
to call the shared helper so both paths preserve note consistently.
integrations/maya/src/main/res/values-ja/strings-maya.xml-104-104 (1)

104-104: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

This destination label is translated in the opposite direction.

Line 104 is to_dash_wallet_on_this_device, but the Japanese text says このデバイスのDashウォレットから ("from the Dash wallet on this device"). That reverses the transfer direction in the UI.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/maya/src/main/res/values-ja/strings-maya.xml` at line 104, The
translation for the string resource named to_dash_wallet_on_this_device is
reversed: replace the current Japanese text "このデバイスのDashウォレットから" (which means
"from the Dash wallet on this device") with a correct "to" phrasing such as
"このデバイスのDashウォレットへ" (meaning "to the Dash wallet on this device") so the UI
reflects the intended transfer direction.
integrations/maya/src/main/res/values-fa/strings-maya.xml-52-52 (1)

52-52: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

The LLD network label points to the wrong chain.

Line 52 is cryptocurrency_lld_ethereum_network, but the value says LLD (Arbitrum). Showing the wrong network here is misleading in a conversion flow where the chain matters.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/maya/src/main/res/values-fa/strings-maya.xml` at line 52, The
string resource cryptocurrency_lld_ethereum_network has a mismatched value ("LLD
(Arbitrum)"); update the value to match the key (e.g., change the value to
"ال‌ال‌دی (اتریوم)" or the correct localized text for LLD (Ethereum)) or, if the
label should be Arbitrum, rename the resource key to
cryptocurrency_lld_arbitrum_network to keep key and value consistent; ensure the
XML string name cryptocurrency_lld_ethereum_network and its displayed text refer
to the same chain.
integrations/maya/src/main/res/values-nl/strings-maya.xml-28-28 (1)

28-28: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix Android string placeholders and ETA wording in values-nl/strings-maya.xml.

  • cryptocurrency_any_network (line 28) must include a %s placeholder: it currently is % Netwerk, but MayaCurrencyMapper.kt calls getString(R.string.cryptocurrency_any_network, networkName).
    <string name="cryptocurrency_any_network">% Netwerk</string>
  • maya_it_could_take_up_to_5_minutes (line 81) shows “tot 2 minuten” while the key is _5_minutes, and it omits the “from Dash Wallet … to …” phrasing from the source sentence.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/maya/src/main/res/values-nl/strings-maya.xml` at line 28, Update
the Dutch strings: modify the string resource named cryptocurrency_any_network
to include a %s placeholder (e.g., "%s Netwerk") so calls in
MayaCurrencyMapper.kt that pass networkName via
getString(R.string.cryptocurrency_any_network, networkName) receive the value
correctly, and correct the maya_it_could_take_up_to_5_minutes string to
reference five minutes and include the full “from Dash Wallet … to …” phrasing
consistent with the source sentence (keep the %s/%1$s placeholders and word
order matching how the code supplies the two wallet names).
integrations/maya/src/main/res/values-fil/strings-maya.xml-28-28 (1)

28-28: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix Android string formatting placeholders in Maya Filipino resources

  • integrations/maya/src/main/res/values-fil/strings-maya.xml line 28: cryptocurrency_any_network is % Network, but MayaCurrencyMapper.getCurrencyNetwork() calls getString(R.string.cryptocurrency_any_network, networkName); change it to %s Network (or %% Network only if you want a literal %).
  • line 81: maya_it_could_take_up_to_5_minutes says “hanggang 2 minuto” (name implies 5) and concatenates placeholders as ng%s / hanggang%s; update to consistent timing and add spacing (ng %s / hanggang %s).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/maya/src/main/res/values-fil/strings-maya.xml` at line 28,
Update the Filipino strings to use correct formatting placeholders and
consistent timing: change the value for resource name cryptocurrency_any_network
to use a string placeholder (e.g., "%s Network") so
MayaCurrencyMapper.getCurrencyNetwork() can call
getString(R.string.cryptocurrency_any_network, networkName) without crashing;
also fix maya_it_could_take_up_to_5_minutes to reflect the intended 5-minute
wording and ensure placeholders include a space (e.g., "ng %s" and "hanggang
%s") so any code that formats that string receives properly spaced
substitutions.
integrations/maya/src/main/res/values-it/strings-maya.xml-28-28 (1)

28-28: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix Android string formatting for cryptocurrency_any_network

MayaCurrencyMapper.kt formats R.string.cryptocurrency_any_network with networkName, but the Italian resource is:

<string name="cryptocurrency_any_network">% Network</string>

It’s missing a format placeholder (e.g. %s / %1$s), so the selected network name can’t be rendered safely. Add the placeholder to the Italian string.

Also check maya_it_could_take_up_to_5_minutes: the key implies “5 minutes”, but the Italian text appears to say “2 minutes”.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/maya/src/main/res/values-it/strings-maya.xml` at line 28, Update
the Italian resources so formatted strings match their usage: change the value
of R.string.cryptocurrency_any_network in strings-maya.xml to include a string
placeholder (e.g. "%1$s" or "%s") so MayaCurrencyMapper.kt can safely format it
with networkName, and verify/fix the text for maya_it_could_take_up_to_5_minutes
so the Italian string correctly reflects "5 minutes" (or change the key if it
should be "2 minutes") to keep the key and translated content consistent.
integrations/maya/src/main/res/values-es/strings-maya.xml-28-28 (1)

28-28: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix Maya Spanish string-format issues (network label + conversion ETA).

The current cryptocurrency_any_network value is invalid for Android formatting:

<string name="cryptocurrency_any_network">%Red</string>
  • Line 28: cryptocurrency_any_network must include a %s placeholder (it’s currently %R..., which will be treated as a format specifier). MayaCurrencyMapper.getCurrencyNetwork() calls getString(R.string.cryptocurrency_any_network, networkName), so this can fail at runtime.
  • Line 81: maya_it_could_take_up_to_5_minutes is misleading/malformed: it says “hasta 2 minutos” (vs “5 minutes” in the name) and the second placeholder is glued as a %sy (should be a %s y).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/maya/src/main/res/values-es/strings-maya.xml` at line 28,
cryptocurrency_any_network contains an invalid format token and must be changed
to include a single %s placeholder so MayaCurrencyMapper.getCurrencyNetwork()
can pass networkName (update the string resource cryptocurrency_any_network to
something like a text with "%s" where the network name goes); also fix
maya_it_could_take_up_to_5_minutes to reflect "5 minutos" (not "2 minutos") and
correct the placeholder spacing so the second placeholder is separated as "a %s
y %s" (ensure two %s placeholders in the proper order and spacing).
integrations/maya/src/main/res/values-el/strings-maya.xml-28-28 (1)

28-28: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix cryptocurrency_any_network formatting placeholder (and correct the 5-minute ETA copy)

  • integrations/maya/src/main/res/values-el/strings-maya.xml:28: cryptocurrency_any_network is % Δίκτυο, but MayaCurrencyMapper.getCurrencyNetwork() calls context.getString(R.string.cryptocurrency_any_network, networkName), so it needs a proper string-format placeholder (e.g., %s Δίκτυο) instead of a bare %.
  • integrations/maya/src/main/res/values-el/strings-maya.xml:81: maya_it_could_take_up_to_5_minutes says “έως και 2λεπτα”, but it should match “up to 5 minutes”.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/maya/src/main/res/values-el/strings-maya.xml` at line 28, Update
the Greek string resources used by MayaCurrencyMapper.getCurrencyNetwork():
change the value for string name "cryptocurrency_any_network" from "% Δίκτυο" to
include a string placeholder (e.g., "%s Δίκτυο") so
context.getString(R.string.cryptocurrency_any_network, networkName) formats
correctly, and correct the copy for "maya_it_could_take_up_to_5_minutes" to
reference "5 λεπτά" (matching “up to 5 minutes”) instead of the incorrect
"2λεπτα".
integrations/maya/src/main/res/values-ja/strings-maya.xml-28-28 (1)

28-28: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix Android string formatting placeholder for cryptocurrency_any_network.
MayaCurrencyMapper calls context.getString(R.string.cryptocurrency_any_network, networkName), but the Japanese value in integrations/maya/src/main/res/values-ja/strings-maya.xml is "%のネットワーク" (no %s), so networkName can’t be injected reliably. Update the string to include a %s placeholder (e.g., "%sのネットワーク").

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/maya/src/main/res/values-ja/strings-maya.xml` at line 28, The
Japanese resource for R.string.cryptocurrency_any_network is missing the %s
placeholder so MayaCurrencyMapper's call to
context.getString(R.string.cryptocurrency_any_network, networkName) cannot
inject networkName; update the string value to include a %s (e.g., "%sのネットワーク")
so context.getString(...) supplies networkName correctly.
integrations/maya/src/main/res/values-fa/strings-maya.xml-28-28 (1)

28-28: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix missing %s placeholder and incorrect LLD network label in Farsi Maya strings

  • cryptocurrency_any_network in integrations/maya/src/main/res/values-fa/strings-maya.xml has no %s placeholder (default integrations/maya/src/main/res/values/strings-maya.xml is % Network), but MayaCurrencyMapper.getCurrencyNetwork() calls context.getString(R.string.cryptocurrency_any_network, networkName), so the dynamic network name can’t be inserted.
  • cryptocurrency_lld_ethereum_network is localized as (آربیتروم) in values-fa, while MayaCryptoCurrency.kt uses it for LLD on Ethereum, so the UI destination chain label can be wrong.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/maya/src/main/res/values-fa/strings-maya.xml` at line 28,
cryptocurrency_any_network lacks the required %s placeholder and will break
MayaCurrencyMapper.getCurrencyNetwork(context.getString(R.string.cryptocurrency_any_network,
networkName)); update the Farsi string for R.string.cryptocurrency_any_network
to include the %s where the networkName should appear (matching the default "%s
Network" ordering for Farsi). Also fix the incorrect LLD network label by
correcting the translation for R.string.cryptocurrency_lld_ethereum_network in
values-fa to the proper Ethereum LLD label (used by MayaCryptoCurrency and
related UI) so the destination chain displays correctly.
integrations/maya/src/main/res/values-zh/strings-maya.xml-28-28 (1)

28-28: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix the malformed format placeholder.

A single % is not a valid formatted-string placeholder. This should be %s so the network value can be substituted correctly.

Suggested fix
-    <string name="cryptocurrency_any_network">% 网络</string>
+    <string name="cryptocurrency_any_network">%s 网络</string>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/maya/src/main/res/values-zh/strings-maya.xml` at line 28, The
string resource with name "cryptocurrency_any_network" uses a malformed format
placeholder ("% 网络"); replace the single "%" with a proper string placeholder
"%s" so the network value can be substituted (update the value for the resource
"cryptocurrency_any_network" to use "%s 网络" and ensure any consumers calling
getString(R.string.cryptocurrency_any_network, network) pass the network
argument).
integrations/maya/src/main/res/values-zh-rTW/strings-maya.xml-28-28 (1)

28-28: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix the malformed format placeholder.

This string uses a bare %, which is not a valid Android formatting token. It should be %s if the network name is inserted at runtime.

Suggested fix
-    <string name="cryptocurrency_any_network">% 網路</string>
+    <string name="cryptocurrency_any_network">%s 網路</string>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/maya/src/main/res/values-zh-rTW/strings-maya.xml` at line 28,
The string resource "cryptocurrency_any_network" uses a bare '%' which is an
invalid Android format placeholder; change the value to use a proper string
placeholder (e.g., "%s 網路") so that the runtime-inserted network name is
formatted correctly with String.format or resource formatting when referenced by
getString(R.string.cryptocurrency_any_network, networkName).
integrations/maya/src/main/res/values-ru/strings-maya.xml-28-28 (1)

28-28: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix the malformed format placeholder.

A lone % is invalid in an Android formatted string. This needs %s so the network label can be rendered instead of failing formatting.

Suggested fix
-    <string name="cryptocurrency_any_network">% Сеть</string>
+    <string name="cryptocurrency_any_network">%s Сеть</string>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/maya/src/main/res/values-ru/strings-maya.xml` at line 28, The
string resource "cryptocurrency_any_network" contains a lone '%' which breaks
Android formatting; update the value to use a proper format placeholder (use
"%s") so the network label can be injected (e.g., replace the current "% Сеть"
with a string using "%s" in place of the lone percent for the
"cryptocurrency_any_network" resource).
integrations/maya/src/main/res/values-sk/strings-maya.xml-28-28 (1)

28-28: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix the malformed format placeholder.

% should be %s here. As written, this resource is not a valid formatted string for injecting the network name.

Suggested fix
-    <string name="cryptocurrency_any_network">% sieť</string>
+    <string name="cryptocurrency_any_network">%s sieť</string>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/maya/src/main/res/values-sk/strings-maya.xml` at line 28, The
string resource "cryptocurrency_any_network" contains a malformed format
placeholder ("%") which should be the string format "%s"; update the value for
cryptocurrency_any_network from "% sieť" to "%s sieť" so the Android formatted
string can accept the injected network name (and ensure callers pass a String
arg when using getString or String.format).
integrations/maya/src/main/res/values-pt/strings-maya.xml-28-28 (1)

28-28: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix the malformed format placeholder.

% is not a valid Android format token here. This should be %s so the selected network name can be injected safely.

Suggested fix
-    <string name="cryptocurrency_any_network">% Rede</string>
+    <string name="cryptocurrency_any_network">%s Rede</string>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/maya/src/main/res/values-pt/strings-maya.xml` at line 28, The
string resource "cryptocurrency_any_network" contains an invalid format token
("% Rede"); replace the bare "%" with a proper Android format placeholder "%s"
so the selected network name can be injected safely (i.e., change the value to
use "%s" where the network name should appear) and ensure the string remains a
valid XML resource in strings-maya.xml.
integrations/maya/src/main/res/values-pl/strings-maya.xml-28-28 (1)

28-28: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Fix the malformed format placeholder.

% is not a valid Android format token here. If this resource is formatted with a network name, it will not substitute correctly. Use %s (or %% if you intended a literal percent).

Suggested fix
-    <string name="cryptocurrency_any_network">% Sieć</string>
+    <string name="cryptocurrency_any_network">%s Sieć</string>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/maya/src/main/res/values-pl/strings-maya.xml` at line 28, The
string resource cryptocurrency_any_network contains a malformed format token "%"
— update its value to use a proper Android format placeholder when substituting
a network name by replacing "%" with "%s" (i.e., "%s Sieć"); if the intent was a
literal percent sign instead, replace with "%%" instead. Locate the <string
name="cryptocurrency_any_network"> entry and update the placeholder accordingly
so formatting/substitution works correctly.
🧹 Nitpick comments (1)
integrations/coinbase/src/main/res/values-it/strings.xml (1)

24-24: 💤 Low value

Consider adding a period for consistency with other locales.

Most other locale versions of this error message end with a period. Adding one would improve consistency across the localization set.

✨ Suggested improvement
-    <string name="coinbase_usd_wallet_error_message">Il tuo conto Coinbase non supporta i dollari USD</string>
+    <string name="coinbase_usd_wallet_error_message">Il tuo conto Coinbase non supporta i dollari USD.</string>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/coinbase/src/main/res/values-it/strings.xml` at line 24, The
Italian localization string coinbase_usd_wallet_error_message is missing a
terminal period; update its value to end with a period so it matches punctuation
consistency with other locales (i.e., change "Il tuo conto Coinbase non supporta
i dollari USD" to include a trailing "." in the string resource).

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c6c2896f-e5d3-4dc2-93b8-6dcd4d7e3db9

📥 Commits

Reviewing files that changed from the base of the PR and between 5eb1c5f and 34d6b62.

⛔ Files ignored due to path filters (1)
  • Gemfile.lock is excluded by !**/*.lock
📒 Files selected for processing (147)
  • Gemfile
  • build.gradle
  • common/build.gradle
  • common/src/main/res/values-ar/strings.xml
  • common/src/main/res/values-cs/strings.xml
  • common/src/main/res/values-de/strings.xml
  • common/src/main/res/values-el/strings.xml
  • common/src/main/res/values-es/strings.xml
  • common/src/main/res/values-fa/strings.xml
  • common/src/main/res/values-fil/strings.xml
  • common/src/main/res/values-fr/strings.xml
  • common/src/main/res/values-id/strings.xml
  • common/src/main/res/values-it/strings.xml
  • common/src/main/res/values-ja/strings.xml
  • common/src/main/res/values-ko/strings.xml
  • common/src/main/res/values-nl/strings.xml
  • common/src/main/res/values-pl/strings.xml
  • common/src/main/res/values-pt/strings.xml
  • common/src/main/res/values-ru/strings.xml
  • common/src/main/res/values-sk/strings.xml
  • common/src/main/res/values-th/strings.xml
  • common/src/main/res/values-tr/strings.xml
  • common/src/main/res/values-uk/strings.xml
  • common/src/main/res/values-zh-rTW/strings.xml
  • common/src/main/res/values-zh/strings.xml
  • features/exploredash/build.gradle
  • features/exploredash/src/main/java/org/dash/wallet/features/exploredash/repository/PiggyCardsRepository.kt
  • features/exploredash/src/main/java/org/dash/wallet/features/exploredash/ui/dashspend/dialogs/GiftCardDetailsViewModel.kt
  • features/exploredash/src/main/java/org/dash/wallet/features/exploredash/utils/SavingsFormatting.kt
  • features/exploredash/src/main/res/values-ar/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-de/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-el/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-es/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-fa/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-fil/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-fr/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-id/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-it/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-ja/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-ko/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-nl/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-pl/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-pt/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-ru/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-sk/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-th/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-tr/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-uk/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-zh-rTW/strings-explore-dash.xml
  • features/exploredash/src/main/res/values-zh/strings-explore-dash.xml
  • gradle.properties
  • integrations/coinbase/src/main/res/values-de/strings.xml
  • integrations/coinbase/src/main/res/values-el/strings.xml
  • integrations/coinbase/src/main/res/values-es/strings.xml
  • integrations/coinbase/src/main/res/values-fa/strings.xml
  • integrations/coinbase/src/main/res/values-fil/strings.xml
  • integrations/coinbase/src/main/res/values-fr/strings.xml
  • integrations/coinbase/src/main/res/values-it/strings.xml
  • integrations/coinbase/src/main/res/values-ja/strings.xml
  • integrations/coinbase/src/main/res/values-nl/strings.xml
  • integrations/coinbase/src/main/res/values-pl/strings.xml
  • integrations/coinbase/src/main/res/values-pt/strings.xml
  • integrations/coinbase/src/main/res/values-ru/strings.xml
  • integrations/coinbase/src/main/res/values-sk/strings.xml
  • integrations/coinbase/src/main/res/values-zh-rTW/strings.xml
  • integrations/coinbase/src/main/res/values-zh/strings.xml
  • integrations/maya/src/main/res/values-de/strings-maya.xml
  • integrations/maya/src/main/res/values-el/strings-maya.xml
  • integrations/maya/src/main/res/values-es/strings-maya.xml
  • integrations/maya/src/main/res/values-fa/strings-maya.xml
  • integrations/maya/src/main/res/values-fil/strings-maya.xml
  • integrations/maya/src/main/res/values-fr/strings-maya.xml
  • integrations/maya/src/main/res/values-it/strings-maya.xml
  • integrations/maya/src/main/res/values-ja/strings-maya.xml
  • integrations/maya/src/main/res/values-nl/strings-maya.xml
  • integrations/maya/src/main/res/values-pl/strings-maya.xml
  • integrations/maya/src/main/res/values-pt/strings-maya.xml
  • integrations/maya/src/main/res/values-ru/strings-maya.xml
  • integrations/maya/src/main/res/values-sk/strings-maya.xml
  • integrations/maya/src/main/res/values-zh-rTW/strings-maya.xml
  • integrations/maya/src/main/res/values-zh/strings-maya.xml
  • wallet/build.gradle
  • wallet/res/values-ar/strings-extra.xml
  • wallet/res/values-ar/strings.xml
  • wallet/res/values-bg/strings-extra.xml
  • wallet/res/values-bg/strings.xml
  • wallet/res/values-ca/strings.xml
  • wallet/res/values-cs/strings-extra.xml
  • wallet/res/values-cs/strings.xml
  • wallet/res/values-da/strings.xml
  • wallet/res/values-de/strings-dashpay.xml
  • wallet/res/values-de/strings-extra.xml
  • wallet/res/values-de/strings.xml
  • wallet/res/values-el/strings-extra.xml
  • wallet/res/values-el/strings.xml
  • wallet/res/values-es/strings-extra.xml
  • wallet/res/values-es/strings.xml
  • wallet/res/values-fa/strings-extra.xml
  • wallet/res/values-fa/strings.xml
  • wallet/res/values-fi/strings.xml
  • wallet/res/values-fil/strings-extra.xml
  • wallet/res/values-fil/strings.xml
  • wallet/res/values-fr/strings-extra.xml
  • wallet/res/values-fr/strings.xml
  • wallet/res/values-hu/strings.xml
  • wallet/res/values-id/strings-extra.xml
  • wallet/res/values-id/strings.xml
  • wallet/res/values-it/strings-extra.xml
  • wallet/res/values-it/strings.xml
  • wallet/res/values-ja/strings-extra.xml
  • wallet/res/values-ja/strings.xml
  • wallet/res/values-ko/strings-extra.xml
  • wallet/res/values-ko/strings.xml
  • wallet/res/values-nb/strings.xml
  • wallet/res/values-nl/strings-extra.xml
  • wallet/res/values-nl/strings.xml
  • wallet/res/values-pl/strings-extra.xml
  • wallet/res/values-pl/strings.xml
  • wallet/res/values-pt/strings-extra.xml
  • wallet/res/values-pt/strings.xml
  • wallet/res/values-ro/strings.xml
  • wallet/res/values-ru/strings-extra.xml
  • wallet/res/values-ru/strings.xml
  • wallet/res/values-sk/strings-extra.xml
  • wallet/res/values-sk/strings.xml
  • wallet/res/values-sl/strings.xml
  • wallet/res/values-sq/strings.xml
  • wallet/res/values-sr/strings.xml
  • wallet/res/values-sv/strings.xml
  • wallet/res/values-th/strings-extra.xml
  • wallet/res/values-th/strings.xml
  • wallet/res/values-tr/strings-extra.xml
  • wallet/res/values-tr/strings.xml
  • wallet/res/values-uk/strings-extra.xml
  • wallet/res/values-uk/strings.xml
  • wallet/res/values-vi/strings-extra.xml
  • wallet/res/values-vi/strings.xml
  • wallet/res/values-zh-rTW/strings-extra.xml
  • wallet/res/values-zh-rTW/strings.xml
  • wallet/res/values-zh/strings-extra.xml
  • wallet/res/values-zh/strings.xml
  • wallet/src/de/schildbach/wallet/WalletApplication.java
  • wallet/src/de/schildbach/wallet/payments/SendCoinsTaskRunner.kt
  • wallet/src/de/schildbach/wallet/service/WalletTransactionMetadataProvider.kt
  • wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt
  • wallet/src/de/schildbach/wallet/ui/compose_views/ComposeBottomSheet.kt
  • wallet/src/de/schildbach/wallet/ui/dashpay/ContactsFragment.kt
💤 Files with no reviewable changes (20)
  • wallet/res/values-da/strings.xml
  • gradle.properties
  • wallet/res/values-ca/strings.xml
  • wallet/res/values-sq/strings.xml
  • wallet/res/values-vi/strings-extra.xml
  • wallet/res/values-vi/strings.xml
  • wallet/res/values-ro/strings.xml
  • wallet/res/values-sl/strings.xml
  • features/exploredash/src/main/java/org/dash/wallet/features/exploredash/utils/SavingsFormatting.kt
  • wallet/res/values-bg/strings.xml
  • wallet/res/values-tr/strings.xml
  • wallet/res/values-cs/strings.xml
  • wallet/res/values-th/strings.xml
  • wallet/res/values-sv/strings.xml
  • wallet/res/values-hu/strings.xml
  • wallet/res/values-sr/strings.xml
  • wallet/res/values-nb/strings.xml
  • wallet/res/values-ar/strings.xml
  • wallet/res/values-th/strings-extra.xml
  • wallet/res/values-fi/strings.xml

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt (1)

1958-1961: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Only unlock checkMutex when this coroutine actually acquired it.

If lock acquisition times out at Line 1958, this coroutine can still call unlock() at Line 2099 just because the mutex is locked by someone else. That breaks checkService() vs cleanup serialization and can reintroduce concurrent lifecycle races.

Suggested fix
+            var checkMutexHeld = false
             try {
                 ...
                 val mutexAcquired = withTimeoutOrNull(5_000) {
                     checkMutex.lock()
+                    checkMutexHeld = true
                     true
                 } != null
                 ...
             } finally {
                 ...
-                if (checkMutex.isLocked) {
+                if (checkMutexHeld) {
                     checkMutex.unlock()
                 }
                 ...
             }

Also applies to: 2099-2101

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt` around
lines 1958 - 1961, The coroutine uses withTimeoutOrNull { checkMutex.lock();
true } to attempt acquiring checkMutex but unconditionally calls
checkMutex.unlock() later, which may unlock someone else's lock; modify the code
around the withTimeoutOrNull lock attempt to record acquisition (e.g., a boolean
mutexAcquired) and only call checkMutex.unlock() if that flag is true, and wrap
the work that requires the lock in a try/finally so unlock happens in finally
only when mutexAcquired is true; reference symbols: checkMutex,
withTimeoutOrNull, lock(), unlock(), and the checkService()/cleanup paths that
assume mutual exclusion.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@wallet/test/de/schildbach/wallet/payments/SendCoinsTaskRunnerBIP70Test.kt`:
- Around line 92-93: The test setup fails because the lateinit property
identityRepo is never initialized before being passed into SendCoinsTaskRunner
in setUp(); initialize identityRepo (and similarly platformRepo if needed) in
the setUp() method prior to constructing SendCoinsTaskRunner so the
UninitializedPropertyAccessException is avoided, e.g., assign a mock or test
instance to identityRepo inside setUp() before calling the constructor that uses
identityRepo (look for identityRepo and SendCoinsTaskRunner initialization in
setUp()).

---

Outside diff comments:
In `@wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt`:
- Around line 1958-1961: The coroutine uses withTimeoutOrNull {
checkMutex.lock(); true } to attempt acquiring checkMutex but unconditionally
calls checkMutex.unlock() later, which may unlock someone else's lock; modify
the code around the withTimeoutOrNull lock attempt to record acquisition (e.g.,
a boolean mutexAcquired) and only call checkMutex.unlock() if that flag is true,
and wrap the work that requires the lock in a try/finally so unlock happens in
finally only when mutexAcquired is true; reference symbols: checkMutex,
withTimeoutOrNull, lock(), unlock(), and the checkService()/cleanup paths that
assume mutual exclusion.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 573ffdea-6db3-4d5f-b21c-66d20766bab6

📥 Commits

Reviewing files that changed from the base of the PR and between 34d6b62 and 8defaf1.

📒 Files selected for processing (6)
  • build.gradle
  • integrations/maya/src/main/res/values-id/strings-maya.xml
  • wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt
  • wallet/test/de/schildbach/wallet/payments/SendCoinsTaskRunnerBIP70Test.kt
  • wallet/test/de/schildbach/wallet/util/services/SendCoinsTaskRunnerTest.kt
  • wallet/test/de/schildbach/wallet/util/viewModels/MainViewModelTest.kt
✅ Files skipped from review due to trivial changes (1)
  • integrations/maya/src/main/res/values-id/strings-maya.xml
🚧 Files skipped from review as they are similar to previous changes (1)
  • build.gradle

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt`:
- Around line 1883-1886: The duplicate onDestroy path incorrectly lets the
coroutine's finally block run and clear isCleaningUp / complete cleanupDeferred
even when this coroutine wasn't the owner; fix by ensuring only the coroutine
that successfully set isCleaningUp to true performs cleanup and clears the
flag/completes cleanupDeferred — for example, capture the result of
isCleaningUp.compareAndSet(false, true) into a local (e.g., isOwner) and either
place the try/finally inside the successful-compare branch or guard the finally
with if (isOwner) so only the owner coroutine calls isCleaningUp.set(false) and
cleanupDeferred.complete(...); refer to isCleaningUp, onDestroy, and
cleanupDeferred to locate and update the logic.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 33753099-723e-4729-8509-e7972ef5daaf

📥 Commits

Reviewing files that changed from the base of the PR and between 85c93e7 and 14cc7d0.

📒 Files selected for processing (2)
  • wallet/build.gradle
  • wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Caution

Inline review comments failed to post. This is likely due to GitHub's internal server error or limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt`:
- Around line 1883-1886: The duplicate onDestroy path incorrectly lets the
coroutine's finally block run and clear isCleaningUp / complete cleanupDeferred
even when this coroutine wasn't the owner; fix by ensuring only the coroutine
that successfully set isCleaningUp to true performs cleanup and clears the
flag/completes cleanupDeferred — for example, capture the result of
isCleaningUp.compareAndSet(false, true) into a local (e.g., isOwner) and either
place the try/finally inside the successful-compare branch or guard the finally
with if (isOwner) so only the owner coroutine calls isCleaningUp.set(false) and
cleanupDeferred.complete(...); refer to isCleaningUp, onDestroy, and
cleanupDeferred to locate and update the logic.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 33753099-723e-4729-8509-e7972ef5daaf

📥 Commits

Reviewing files that changed from the base of the PR and between 85c93e7 and 14cc7d0.

📒 Files selected for processing (2)
  • wallet/build.gradle
  • wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt
🛑 Comments failed to post (1)
wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt (1)

1883-1886: ⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Duplicate onDestroy() path incorrectly signals cleanup completion

Line 1886 returns from the coroutine, but finally still runs and unconditionally clears isCleaningUp and completes cleanupDeferred (Line 2010-2011). That lets a new onCreate() continue before the active cleanup finishes.

Proposed fix
 serviceScope.launch {
+    var ownsCleanup = false
     try {
         log.info("The onCreateCompleted is active: {}", onCreateCompleted.isActive)
         onCreateCompleted.await() // wait until onCreate is finished
         log.info("The check() mutex is locked: {}", checkMutex.isLocked)
-        // Prevent multiple cleanup operations using atomic flag
-        if (!isCleaningUp.compareAndSet(false, true)) {
+        // Prevent multiple cleanup operations using atomic flag
+        ownsCleanup = isCleaningUp.compareAndSet(false, true)
+        if (!ownsCleanup) {
             log.info("Another onDestroy() is already running cleanup, skipping duplicate cleanup")
             return@launch
         }
@@
     } finally {
         log.info("serviceJob cancelled after " + (System.currentTimeMillis() - serviceCreatedAt) / 1000 / 60 + " minutes")
         serviceJob.cancel()
         if (checkMutex.isLocked) {
             checkMutex.unlock()
         }
-        isCleaningUp.set(false)
-        cleanupDeferred?.complete(Unit)
+        if (ownsCleanup) {
+            isCleaningUp.set(false)
+            cleanupDeferred?.complete(Unit)
+        }
         // Cancel the cleanup monitor since cleanup is done
         cleanupMonitorJob.cancel()
     }
 }

Also applies to: 2010-2011

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt` around
lines 1883 - 1886, The duplicate onDestroy path incorrectly lets the coroutine's
finally block run and clear isCleaningUp / complete cleanupDeferred even when
this coroutine wasn't the owner; fix by ensuring only the coroutine that
successfully set isCleaningUp to true performs cleanup and clears the
flag/completes cleanupDeferred — for example, capture the result of
isCleaningUp.compareAndSet(false, true) into a local (e.g., isOwner) and either
place the try/finally inside the successful-compare branch or guard the finally
with if (isOwner) so only the owner coroutine calls isCleaningUp.set(false) and
cleanupDeferred.complete(...); refer to isCleaningUp, onDestroy, and
cleanupDeferred to locate and update the logic.

- initialize the identityRepo mock in setUp() (was left uninitialized,
  causing UninitializedPropertyAccessException)
- construct a dashj Context before reading the test wallet, fixing
  "You must construct a Context object before using dashj!"
- unmock SecurityGuard static in tearDown and raise the unit-test heap
  to 2g to avoid OutOfMemoryError from per-test accumulation

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
wallet/test/de/schildbach/wallet/payments/SendCoinsTaskRunnerBIP70Test.kt (1)

118-118: 💤 Low value

Consider removing commented-out code.

These commented lines are remnants from when wallet was mocked. Since the wallet is now read from a real test file (lines 123–125), these comments are obsolete and can be removed for cleaner code.

♻️ Proposed cleanup

Remove line 118:

-        // wallet = mockk(relaxed = true)

Remove line 129:

-        // every { wallet.params } returns networkParams

Also applies to: 129-129

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wallet/test/de/schildbach/wallet/payments/SendCoinsTaskRunnerBIP70Test.kt` at
line 118, Remove the obsolete commented-out mock setup for wallet in
SendCoinsTaskRunnerBIP70Test (e.g., the "// wallet = mockk(relaxed = true)" line
and the other commented line around the same area), since the test now loads a
real wallet from the test file (references to wallet initialization at lines
where the real wallet is read); simply delete these commented lines to clean up
the test class and avoid stale code.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@wallet/test/de/schildbach/wallet/payments/SendCoinsTaskRunnerBIP70Test.kt`:
- Line 118: Remove the obsolete commented-out mock setup for wallet in
SendCoinsTaskRunnerBIP70Test (e.g., the "// wallet = mockk(relaxed = true)" line
and the other commented line around the same area), since the test now loads a
real wallet from the test file (references to wallet initialization at lines
where the real wallet is read); simply delete these commented lines to clean up
the test class and avoid stale code.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 77c24c8d-719a-412a-af33-5f3d355bfaeb

📥 Commits

Reviewing files that changed from the base of the PR and between 14cc7d0 and 872d62a.

📒 Files selected for processing (2)
  • wallet/build.gradle
  • wallet/test/de/schildbach/wallet/payments/SendCoinsTaskRunnerBIP70Test.kt
🚧 Files skipped from review as they are similar to previous changes (1)
  • wallet/build.gradle

appsFlyerLib.init(BuildConfig.APPSFLYER_ID, null, this);
appsFlyerLib.setAppInviteOneLink(BuildConfig.APPSFLYER_TEMPLATE_ID);
appsFlyerLib.setDebugLog(BuildConfig.DEBUG);
appsFlyerLib.setLogLevel(com.appsflyer.AFLogger.LogLevel.VERBOSE);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Too wide logging com.appsflyer.AFLogger.LogLevel.VERBOSE ...

@HashEngineering
HashEngineering merged commit 07f49be into master Jun 9, 2026
2 of 3 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Jun 17, 2026
1 of 3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants