-
Notifications
You must be signed in to change notification settings - Fork 51
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(js): use buffer instead of text-decoder #170
feat(js): use buffer instead of text-decoder #170
Conversation
c0311e2
to
f9b8666
Compare
Looks like the workflow needs to switch to node 18 |
@@ -1,4 +0,0 @@ | |||
# This is a placeholder file to prevent node-pre-gyp from installing the | |||
# aries-askar binary when cloning this repository. It won't be published to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should not be removed I think?
Otherwise when you run yarn install it will automatically download the binaries, which you may not want
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the React Native Example to be used without building it locally it is required now. It is not optimal, agreed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it'd fail if we increase the native binary version. As the CI will then try to install the native binary, but it doesn't exist yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Being required to build it locally doesn't seem like a bad thing to me, is there a reason we don't want to do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main reason right now is that cross
only allows to be ran on a Linux host which would make building the application for Android on macOS or Windows impossible. With a better example app we could add something where you specify the platform and you can choose to only build the application for iOS which would make it work on macOS.
I'm trying to test this out but haven't gotten very far yet. A few things I've noticed (trying the ios build):
At the moment I'm stuck on this error. I think I need to build the iOS framework and put it somewhere, maybe under /ios? Edit: It looks like I can bypass this issue by running |
Hmmm, maybe I should not have added the example app just yet. Setting it up where it is easy to change the askar libraries and build it will require some more effort. I think for now the best we can do is just to remove the example app and create a PR later with it which will include a simple script which can build the libraries and place them in the correct location. |
3842c16
to
9fef5c4
Compare
Signed-off-by: Berend Sliedrecht <blu3beri@proton.me>
9fef5c4
to
6033fa9
Compare
I removed the example application as it was not ready to be merged. Will need to do some research for how we can properly set this up. |
Signed-off-by: Berend Sliedrecht <blu3beri@proton.me>
@genaris any idea what is going on here? https://github.com/hyperledger/aries-askar/actions/runs/6089025819/job/16534903694 seems to refer to your patched version of the library. |
I think there is an issue when yarn tries to resolve types for In this PR, the entry for |
Update on this: I've added type definitions to the packages in order to attempt types clashing. Changes in nodejs' I've tested it locally (build, check-types, test, etc.) from a clean checkout and seems to work fine. Hope this can help to unblock this PR! |
6aa2141
to
a6a022c
Compare
Signed-off-by: Berend Sliedrecht <blu3beri@proton.me>
a6a022c
to
6c6f73c
Compare
…e-buffer feat(js): use buffer instead of text-decoder
This is by no means a perfect app for testing and if we would rather wait for a better testing app I can remove it from this PR and create it later.
Ideally I would like to move to use
pnpm
as it makes dealing with workspaces a whole lot easier. And create some way to "quickly" (still need to compile askar like 6 times...) use custom askar builds.