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(rn): add alpha react native signer impl #1128

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

moldy530
Copy link
Collaborator

@moldy530 moldy530 commented Nov 4, 2024

Pull Request Checklist


PR-Codex overview

This PR introduces significant updates to the @account-kit/react-native-signer library, including new configuration files, enhancements to the example app, and various adjustments for compatibility with React Native's new architecture.

Detailed summary

  • Added .watchmanconfig files to multiple directories.
  • Updated jest.config.js for testing configuration.
  • Enhanced babel.config.js for Babel presets.
  • Introduced new icons and splash screens for the example app.
  • Improved AndroidManifest.xml with permissions and configurations.
  • Updated AppDelegate and bridging files for iOS compatibility.
  • Added TurboModule support for improved performance.
  • Configured CI workflows for linting, testing, and building.
  • Enhanced the README with installation and usage instructions.
  • Added local storage polyfill in mmkv-localstorage-polyfill.ts.

The following files were skipped due to too many changes: account-kit/rn-signer/.github/workflows/ci.yml, account-kit/rn-signer/src/client.ts, account-kit/rn-signer/android/build.gradle, account-kit/rn-signer/example/ios/ReactNativeSignerExample/LaunchScreen.storyboard, account-kit/rn-signer/example/android/app/build.gradle, account-kit/rn-signer/android/src/main/java/com/accountkit/reactnativesigner/NativeTEKStamperModule.kt, account-kit/rn-signer/example/android/gradlew, account-kit/rn-signer/example/ios/ReactNativeSignerExample.xcodeproj/project.pbxproj, yarn.lock

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Nov 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-sdk-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2024 10:56pm
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2024 10:56pm

Copy link
Collaborator Author

moldy530 commented Nov 4, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

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 was auto-generated. I'll look to consolidate this file with the one we already have so we can make sure this and the one below run in CI correctly

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 was also auto generated, I'll look to merge this with the main one we have

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

NOTE: we're not actually building on iOS, but this was autogenerated

Copy link
Collaborator Author

moldy530 commented Nov 4, 2024

Most of this was autogenerated by create-react-native-library

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 the Spec for the stamper as defined in the Eng Spec

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need a pod file for example? I guess if we want to pull complied versions of our library in? Also did RN suggest doing a pod file over using swift package manager? I imagine we'd have to support both.

Side note not work blocking on this until we start to support iOS.

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 was all autogenerated by the rn library tool. we should definitely migrate this stuff to swift when we build out iOS and use the right package manager

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it intentional to do an objective c app or are we trying to do swift? I'd suggest we do swift for the iOS app. Happy to not inlucde this or add a todo to move this to swift if it's blocking.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not intentional at all, this is all from the react lib cli

Copy link
Collaborator

Choose a reason for hiding this comment

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

Note to us we'll want to do a storyboard less iOS app for simplicity and to simplify contribution.

Copy link
Collaborator Author

All of the CI failures are fixed upstream in #1134 and #1144

# Pull Request Checklist

- [ ] Did you add new tests and confirm existing tests pass? (`yarn test`)
- [ ] Did you update relevant docs? (docs are found in the `site` folder, and guidelines for updating/adding docs can be found in the [contribution guide](https://github.com/alchemyplatform/aa-sdk/blob/main/CONTRIBUTING.md))
- [x] Do your commits follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard?
- [x] Does your PR title also follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard?
- [x] If you have a breaking change, is it [correctly reflected in your commit message](https://www.conventionalcommits.org/en/v1.0.0/#examples)? (e.g. `feat!: breaking change`)
- [x] Did you run lint (`yarn lint:check`) and fix any issues? (`yarn lint:write`)
- [x] Did you follow the [contribution guidelines](https://github.com/alchemyplatform/aa-sdk/blob/main/CONTRIBUTING.md)?
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.

3 participants