-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update tx list with observeTransactions, improve contact support (
#1331) * feat: update tx list with observeTransactions * fix: improve WalletBalanceObserver * fix: remove update functions from TransactionRowView * fix: use TransactionRowViewList * fix: improve TX details * fix: more improvements to MainViewModel * fix: problems showing Tx details and going to home screen afterwards * fix: always submit a new list for the UI * fix: add reset listener * fix: batch updates * fix: replace batch updates method and only process tx confidence changes for the past hour of tx's * fix: update dashj to 21.1.5-SNAPSHOT * chore: refactor telephony manager usage * chore: upgrade gradle & AGP * fix: optimize contact support report and change wifi warning(#1333) * feat: add ContactSupportDialogFragment and ViewModel * feat: use ContactSupportDialogFragment * fix: improve wallet dump * fix: sort logFiles by most recent date first, then limit to 20MB * fix: disable auto logout when creating report * chore: remove ReportIssueDialogBuilder * fix: update wifi warning for mixing fees (#1334) * fix: mixing icon and row view id type * chore: upgrade kotlin & ksp to fix deadlock * feat: performance, uncoupling metadata & contacts * fix: confirmation dialog UI with contact * fix: observing contacts bugs * fix: send to contact from send tab * fix: sticky info panel on EnterAmountFragment * fix: more proguard rules * fix: log date format attempted fix * fix: attempting to fix log date format * fix: add logback to proguard * fix: proper isComplete check for CrowdNode tx set * fix: change the way topup tx observed for CrowdNode * fix: build error - missing file * fix: proguard fixes * fix: check if identity is null in observeContacts --------- Co-authored-by: Andrei Ashikhmin <[email protected]>
- Loading branch information
1 parent
dd8dd7b
commit 2bbfb45
Showing
66 changed files
with
2,005 additions
and
1,135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
common/src/main/java/org/dash/wallet/common/transactions/TransactionObserver.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.dash.wallet.common.transactions | ||
|
||
import kotlinx.coroutines.suspendCancellableCoroutine | ||
import org.bitcoinj.core.Transaction | ||
import org.bitcoinj.core.TransactionConfidence | ||
import org.bitcoinj.utils.Threading | ||
import org.dash.wallet.common.transactions.filters.TransactionFilter | ||
import kotlin.coroutines.resume | ||
|
||
suspend fun Transaction.waitToMatchFilters(vararg filters: TransactionFilter) { | ||
return suspendCancellableCoroutine { continuation -> | ||
var transactionConfidenceListener: TransactionConfidence.Listener? = null | ||
transactionConfidenceListener = TransactionConfidence.Listener { _, _ -> | ||
if (filters.isEmpty() || filters.any { it.matches(this) }) { | ||
confidence.removeEventListener(transactionConfidenceListener) | ||
continuation.resume(Unit) | ||
} | ||
} | ||
|
||
// Check if already matches | ||
if (filters.isEmpty() || filters.any { it.matches(this) }) { | ||
continuation.resume(Unit) | ||
return@suspendCancellableCoroutine | ||
} | ||
|
||
this.confidence.addEventListener(Threading.USER_THREAD, transactionConfidenceListener) | ||
|
||
continuation.invokeOnCancellation { | ||
confidence.removeEventListener(transactionConfidenceListener) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
android.enableJetifier=true | ||
android.useAndroidX=true | ||
org.gradle.jvmargs=-Xmx4G | ||
org.gradle.daemon=true | ||
org.gradle.parallel=true | ||
kotlin.incremental=true | ||
android.defaults.buildfeatures.buildconfig=true | ||
android.nonTransitiveRClass=false | ||
android.nonFinalResIds=false |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#Mon Oct 02 18:25:36 ICT 2023 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.