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

feat: add jetpack compose #1280

Merged
merged 9 commits into from
Apr 23, 2024
Merged

feat: add jetpack compose #1280

merged 9 commits into from
Apr 23, 2024

Conversation

HashEngineering
Copy link
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

build.gradle Outdated Show resolved Hide resolved
Copy link
Member

@Syn-McJ Syn-McJ left a comment

Choose a reason for hiding this comment

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

ChatGPT generated code can use some fixes around toggle, but otherwise looks good

Comment on lines +77 to 78
@Deprecated("Deprecated in Java")
override fun onPreExecute() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

these were added after running the 1.8 to 1.9 migration tool.

@HashEngineering HashEngineering changed the title Feature compose feat: add jetpack compose Apr 19, 2024
@HashEngineering HashEngineering marked this pull request as ready for review April 22, 2024 22:37
Comment on lines +62 to +72
walletUriResultLauncher = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { result ->
var resultIntent: Intent? = null
if (result.resultCode == Activity.RESULT_OK) {
val data = result.data
val requestData = intent.data
val transactionHash = BitcoinIntegration.transactionHashFromResult(data)
resultIntent = WalletUri.createPaymentResult(requestData, transactionHash)
}
setResult(result.resultCode, resultIntent)
finish()
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

replaces deprecated onActiivtyResult

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is not used internally, but when apps externally request data using dashwallet://...

Copy link
Member

@Syn-McJ Syn-McJ left a comment

Choose a reason for hiding this comment

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

Looks good

@HashEngineering HashEngineering merged commit 99f0380 into master Apr 23, 2024
2 checks passed
@HashEngineering HashEngineering deleted the feature-compose branch April 30, 2024 13:43
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