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
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
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