openwallet-foundation / bifold-wallet

Aries Mobile Agent React Native - Part of the Aries Bifold effort to provide SSI capabilities in a production ready app.
Apache License 2.0
136 stars 134 forks source link

fix: use DI for OCA resolver #1140

Closed jleach closed 1 month ago

jleach commented 1 month ago

Summary of Changes

This pull request includes changes to use dependency injection for the OCA resolver and fix a missing import. The OCA resolver is now injected using the utility token utility.oca-resolver. This improves code modularity and makes it easier to manage dependencies.

To use this technique:

  const container = useContainer()
  const bundleResolver = container.resolve(TOKENS.UTIL_OCA_RESOLVER)

Related Issues

N/A.

Pull Request Checklist

Tick all boxes below to demonstrate that you have completed the respective task. If the item does not apply to your this PR check it anyway to make it apparent that there's nothing to do.

If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!

Pro Tip 🤓

PR template adapted from the Python attrs project.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud