Skip to content
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

[ABW-2893] use dapp_definition instead of dapp_definitions for component resolution #782

Merged
merged 3 commits into from
Feb 1, 2024

Conversation

jakub-rdx
Copy link
Contributor

Description

Our current main branch already works, but:

  • code on main tries to read dapp_definitions and use dapp_definition as a fallback. I changed it so that we use dapp_definition, similar as iOS does.

How to test

  1. Use WEFT finance dapp to lend some XRD with google play app - bug present.
  2. Use this build to do the same - verify Using dApps section is present

PR submission checklist

  • I have tested that using dapps section is shown when component has dapp_definition set

@jakub-rdx jakub-rdx marked this pull request as draft January 31, 2024 15:55
@jakub-rdx jakub-rdx changed the title use dapp_definition instead of dapp_definitions for component resolution [ABW-2893] use dapp_definition instead of dapp_definitions for component resolution Feb 1, 2024
@jakub-rdx jakub-rdx marked this pull request as ready for review February 1, 2024 08:33
Copy link
Contributor

@micbakos-rdx micbakos-rdx left a comment

Choose a reason for hiding this comment

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

Nice one, I would just remove the unused property.

@@ -31,6 +32,9 @@ data class DApp(
val definitionAddresses: List<String>
Copy link
Contributor

Choose a reason for hiding this comment

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

@jakub-rdx I think this will be unused. Why not replacing

val definitionAddress: String?
    get() = metadata.dAppDefinition()

Having two methods slightly renamed will be confusing in the future.

Copy link

sonarcloud bot commented Feb 1, 2024

@jakub-rdx jakub-rdx merged commit 1111128 into main Feb 1, 2024
9 checks passed
@jakub-rdx jakub-rdx deleted the fix/ABW-2893-dapp-definition-fix branch February 1, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants