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

refactor: use react-native-quick-crypto, remove rn-nodify #1392

Merged
merged 6 commits into from
Dec 12, 2023

Conversation

pwltr
Copy link
Collaborator

@pwltr pwltr commented Nov 28, 2023

Description

Replaces crypto calls with react-native-quick-crypto which should offer way better performance since it's using JSI/C++. Allows us to remove rn-nodify and for Node core module polyfilling. Also replaces text-encoding with faster alternative fastestsmallesttextencoderdecoder. Renames .node-version file so it can be picked up by version managers.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (improving code without creating new functionality)

Tests

  • Detox test
  • Unit test
  • No test

QA Notes

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce during the Bitkit testing session. You can also leave a video of the PR in action.

package.json Outdated Show resolved Hide resolved
ios/Podfile.lock Outdated
Comment on lines 79 to 81
- MMKV (1.3.1):
- MMKVCore (~> 1.3.1)
- MMKVCore (1.3.1)
- MMKV (1.3.0):
- MMKVCore (~> 1.3.0)
- MMKVCore (1.3.0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm qurious why MMKV version changed? I don't have it on my local maching when I do pod install maybe you should try pod install --repo-update ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done, but now it updated it to newer versions. Not sure why it always downgrades some packages on my machine.

@pwltr pwltr force-pushed the rn-quick-crypto branch 2 times, most recently from ccc8705 to 6e360e8 Compare November 28, 2023 13:43
@pwltr pwltr merged commit a4e7d61 into master Dec 12, 2023
4 checks passed
@pwltr pwltr deleted the rn-quick-crypto branch December 12, 2023 10:47
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.

None yet

3 participants