-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add trade process domain #153
Add trade process domain #153
Conversation
…s created in presenterScope are cancelled when view gets detached
We should set that flag from the run configuration, but not sure how that works in Android (in Bisq 2 we pass it as JVM argument). Also reduce the devModeDelayInMs which is just to mimic a delay at clearnet.
Hey Henrik! Thanks for this huge contrib. Just a heads up, I cannot test it (details below). In the meantime I'll start code-reviewing Android NodeIt won't build error is
But a repository is passed instead? ClientsI can't do anything because it seems the profile functionality got broken? Every trading functionality of even trying to see the profile clicking in the avatar gives crashes like this
|
Ups was a last minute change yesterday. Fixed with recent commit.
Be sure to have both mobile and backend on latest verison, clean and build all and publish all. Maybe restart Fleet. I had some issues in Android Studio when doing bigger changes.
|
028dc7e
to
031e5c9
Compare
I am adding commits with refactoring and readme updates. Some areas are work in progress... those changes are pure refactorings, so no need to review those in depth. Once I am complete with that I will post it, but no need to block review or merge. |
3302191
to
6407553
Compare
First tests on
There is sometimes a random error UI crash (UI turns completely blank) , not sure if its related but I found this exception on the logs. IT's not always reproducible, will keep trying to repro
|
Also getting this when closing a transaction
|
defd43c
to
a80b06e
Compare
a80b06e
to
9b8b966
Compare
finally figured it out, no more white screens when closing the trade workflow |
9b8b966
to
a30de03
Compare
looks like the trade flow presenter calls go back 4 times simultaneously when the trade is completed
|
…and not empty string if not set on LN.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
Tested and working on the 3 apps, some small issues were encountered and fixed along the way as described in GH logs in this branch.
Awesome work Henrik, excited for the next ones 🎉
val contract: BisqEasyContract = Mappings.BisqEasyContractMapping.toBisq2Model(value.bisqEasyTradeModel.contract) | ||
mediationRequestService.requestMediation(channel, contract) | ||
} | ||
return Result.success(Unit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add error handling(try/catch) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mediation is WIP
...ndroidMain/kotlin/network/bisq/mobile/android/node/service/offers/NodeOffersServiceFacade.kt
Show resolved
Hide resolved
iosClient/Podfile.lock
Outdated
@@ -18,4 +18,4 @@ SPEC CHECKSUMS: | |||
|
|||
PODFILE CHECKSUM: 431d52ef58584308462794999ebead56142b0160 | |||
|
|||
COCOAPODS: 1.16.2 | |||
COCOAPODS: 1.15.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this downgrade needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, was uninteded from merge
shared/domain/src/commonMain/kotlin/network/bisq/mobile/domain/data/model/Settings.kt
Show resolved
Hide resolved
...sq/mobile/domain/data/replicated/chat/bisq_easy/open_trades/BisqEasyOpenTradeChannelModel.kt
Show resolved
Hide resolved
...omain/src/commonMain/kotlin/network/bisq/mobile/domain/service/offers/OffersServiceFacade.kt
Show resolved
Hide resolved
shared/domain/src/commonMain/kotlin/network/bisq/mobile/domain/utils/ExceptionUtils.kt
Show resolved
Hide resolved
fun Throwable.getRootCause(): Throwable { | ||
var rootCause: Throwable = this | ||
while (rootCause.cause != null && rootCause.cause != rootCause) { | ||
rootCause = rootCause.cause!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rootCause.cause?.let { rootCause = it } to avoid !!
usage
No description provided.