This repository has been archived by the owner on Jul 15, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This introduce the ability to run the "Bot" in the React Native mobile tech stack.
There's 3 parts on this PR to take care : bot-speculos-proxy, bot-proxy-log and bot-react-native
bot-speculos-proxy
This part give the ability to speculos to be used as a service and can be host on an external server. It was created because speculos as we used it today, was only possible with node and docker.
You have to ran it with the CLI :
so to install it you will need to
Usage:
as
-t
is a token that you will need to provide on the envBOT_SPECULOS_PROXY_TOKEN
when you run the mobile app.bot-proxy-log
Is will store all the log of the bot into a proxy logger.
Same install as above.
Usage:
bot-react-native
This part is an react-native project with just ledger-live-common installed and all the minimal dependency he needs to make it run.
When you launch the app, it will try to run on theses settings from the .env:
So you will need to set an
.env
before running the project.install:
for iOS:
for android:
for the CI we are using Detox to make it ran, it's seems to work fine on iOS, we still have some issues with Android.
What left to do :
[] Try to export the Speculos As A Service on a Vercel, and used it as an API (have to see if it's doable first)
[] Make Android test work on CI
[] Make iOS work again on CI