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

Packaging bifold as a library #274

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

cvarjao
Copy link
Contributor

@cvarjao cvarjao commented Apr 4, 2022

Summary of Changes

  • isolating mobile app boilerplate in its own folder: This is effective a minimal template of a what a bifold-based app would need to have
    • move files from android to bifold-app/android
    • move files from ios to bifold-app/ios
    • move index.js to bifold-app/index.js
    • move App.tsx to bifold-app/App.tsx
  • introduce configuration Context
  • move all dependencies to peerDepedencies: This might need to be revisited in the future. Most of react native dependencies only works if it is a direct dependency of the project.
  • add react-native-builder-bob for packaging as a library
  • Change to Github action to reflect the folder changes

TODO

  • Remove yarn.lock file
  • Fix native build action in the next PR

Related Issues

Please reference here any issue #'s that are relevant to this PR, or simply enter "N/A" if this PR does not relate to any existing issues.

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.

  • All commits contain a DCO Signed-off-by line (we use the DCO GitHub app to enforce this);
  • Updated LICENSE-3RD-PARTY.md for any added dependencies or vendored components;
  • Updated documentation as needed for changed code and new or modified features;
  • Added sufficient tests so that overall code coverage is not reduced.

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 🤓

  • Read our contribution guide at least once; it will save you a few review cycles!
  • Your PR will likely not be reviewed until all the above boxes are checked and all automated tests have passed.

PR template adapted from the Python attrs project.

@cvarjao cvarjao changed the title As framework step 2 Packaging bifold as a library Apr 5, 2022
@cvarjao cvarjao requested review from jleach and amanji April 5, 2022 00:09
App/index.ts Outdated Show resolved Hide resolved
App/utils/configurationContext.tsx Outdated Show resolved Hide resolved
bifold-app/App.tsx Outdated Show resolved Hide resolved
bifold-app/App.tsx Outdated Show resolved Hide resolved
@amanji
Copy link
Contributor

amanji commented Apr 5, 2022

@cvarjao there's a yarn lockfile. Should that be removed?

@jleach
Copy link
Contributor

jleach commented Apr 6, 2022

@cvarjao Able to get the automated tests working? If you check the Action's logs they'll tell you what needs to be done.

@jleach jleach requested review from jleach and removed request for jleach April 6, 2022 15:37
@cvarjao cvarjao force-pushed the as-framework-step-2 branch 2 times, most recently from 322870b to 9b5d3ed Compare April 7, 2022 00:05
JamesKEbert
JamesKEbert previously approved these changes Apr 11, 2022
Copy link
Contributor

@JamesKEbert JamesKEbert left a comment

Choose a reason for hiding this comment

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

This looks good! I think I'd be interested in seeing if we could adjust the dependency issue as you mentioned, as it'd definitely make using it simpler/cleaner.

@cvarjao
Copy link
Contributor Author

cvarjao commented Apr 11, 2022

@JamesKEbert , I including a link about "linking of dependencies" for future reference:
react-native-community/cli#1347
There is an issue of ending up with different version of the dependency

Someone suggested a workaround/patch for this issue:
https://stackoverflow.com/a/64097197/3377438

@cvarjao cvarjao marked this pull request as ready for review April 13, 2022 19:04
@cvarjao cvarjao requested a review from a team as a code owner April 13, 2022 19:04
@cvarjao cvarjao requested a review from amanji April 13, 2022 19:04
jleach
jleach previously approved these changes Apr 13, 2022
Copy link
Contributor

@jleach jleach left a comment

Choose a reason for hiding this comment

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

Checked out, ran locally, works as expected.

.github/workflows/main.yaml Show resolved Hide resolved
@jleach jleach self-requested a review April 14, 2022 20:42
Signed-off-by: Clécio Varjão <[email protected]>

Move all dependencies to peerDependencies

Signed-off-by: Clécio Varjão <[email protected]>

Preparing bifold app fold

Signed-off-by: Clécio Varjão <[email protected]>

Packaging as NPM library

Signed-off-by: Clécio Varjão <[email protected]>

Switch back to use default .eslintignore
There committed files that may be ignored in addition to the ones in .gitignore

Signed-off-by: Clécio Varjão <[email protected]>

Fix GH action

Signed-off-by: Clécio Varjão <[email protected]>

reorg

Signed-off-by: Clécio Varjão <[email protected]>

Fix packaging

Signed-off-by: Clécio Varjão <[email protected]>

CLI

Signed-off-by: Clécio Varjão <[email protected]>

Fixing Metro/Dev flow

Signed-off-by: Clécio Varjão <[email protected]>

rename bifold-app, bifold-core to simply app, core

Signed-off-by: Clécio Varjão <[email protected]>

Fix GHA, update package lock

Signed-off-by: Clécio Varjão <[email protected]>
Copy link
Contributor

@jleach jleach left a comment

Choose a reason for hiding this comment

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

Tested as a group. Able to accept an connection, offer, and proof. LGTM.

@jleach jleach merged commit adb6f30 into openwallet-foundation:main Apr 14, 2022
@cvarjao cvarjao deleted the as-framework-step-2 branch January 19, 2023 02:27
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.

4 participants