-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee144e4
commit 55d4908
Showing
9 changed files
with
92 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,16 +14,16 @@ It will allow you, whether you are developing on macOS, Windows or Linux to quic | |
|
||
* Install and run [Docker](https://www.docker.com/products/docker-desktop/). | ||
* Make sure you have an X11 server running : | ||
* On Ubuntu Linux, it should be running by default. | ||
* On macOS, install and launch [XQuartz](https://www.xquartz.org/) (make sure to go to XQuartz > Preferences > Security and check "Allow client connections"). | ||
* On Windows, install and launch [VcXsrv](https://sourceforge.net/projects/vcxsrv/) (make sure to configure it to disable access control). | ||
* On Ubuntu Linux, it should be running by default. | ||
* On macOS, install and launch [XQuartz](https://www.xquartz.org/) (make sure to go to XQuartz > Preferences > Security and check "Allow client connections"). | ||
* On Windows, install and launch [VcXsrv](https://sourceforge.net/projects/vcxsrv/) (make sure to configure it to disable access control). | ||
* Install [VScode](https://code.visualstudio.com/download) and add [Ledger's extension](https://marketplace.visualstudio.com/items?itemName=LedgerHQ.ledger-dev-tools). | ||
* Open a terminal and clone `app-boilerplate` with `git clone [email protected]:LedgerHQ/app-boilerplate.git`. | ||
* Open the `app-boilerplate` folder with VSCode. | ||
* Use Ledger extension's sidebar menu or open the tasks menu with `ctrl + shift + b` (`command + shift + b` on a Mac) to conveniently execute actions : | ||
* Build the app for the device model of your choice with `Build`. | ||
* Test your binary on [Speculos](https://github.com/LedgerHQ/speculos) with `Run with Speculos`. | ||
* You can also run functional tests, load the app on a physical device, and more. | ||
* Build the app for the device model of your choice with `Build`. | ||
* Test your binary on [Speculos](https://github.com/LedgerHQ/speculos) with `Run with Speculos`. | ||
* You can also run functional tests, load the app on a physical device, and more. | ||
|
||
:information_source: The terminal tab of VSCode will show you what commands the extension runs behind the scene. | ||
|
||
|
@@ -193,24 +193,25 @@ the process outputs HTML and LaTeX documentations in `doc/html` and `doc/latex` | |
|
||
The flow processed in [GitHub Actions](https://github.com/features/actions) is the following: | ||
|
||
- Ledger guidelines enforcer which verifies that an app is compliant with Ledger guidelines. The successful completion of this reusable workflow is a mandatory step for an app to be available on the Ledger application store. More information on the guidelines can be found in the repository [ledger-app-workflow](https://github.com/LedgerHQ/ledger-app-workflows) | ||
- Code formatting with [clang-format](http://clang.llvm.org/docs/ClangFormat.html) | ||
- Compilation of the application for all Ledger hardware in [ledger-app-builder](https://github.com/LedgerHQ/ledger-app-builder) | ||
- Unit tests of C functions with [cmocka](https://cmocka.org/) (see [unit-tests/](unit-tests/)) | ||
- End-to-end tests with [Speculos](https://github.com/LedgerHQ/speculos) emulator and [ragger](https://github.com/LedgerHQ/ragger) (see [tests/](tests/)) | ||
- Code coverage with [gcov](https://gcc.gnu.org/onlinedocs/gcc/Gcov.html)/[lcov](http://ltp.sourceforge.net/coverage/lcov.php) and upload to [codecov.io](https://about.codecov.io) | ||
- Documentation generation with [doxygen](https://www.doxygen.nl) | ||
* Ledger guidelines enforcer which verifies that an app is compliant with Ledger guidelines. The successful completion of this reusable workflow is a mandatory step for an app to be available on the Ledger application store. More information on the guidelines can be found in the repository [ledger-app-workflow](https://github.com/LedgerHQ/ledger-app-workflows) | ||
* Code formatting with [clang-format](http://clang.llvm.org/docs/ClangFormat.html) | ||
* Compilation of the application for all Ledger hardware in [ledger-app-builder](https://github.com/LedgerHQ/ledger-app-builder) | ||
* Unit tests of C functions with [cmocka](https://cmocka.org/) (see [unit-tests/](unit-tests/)) | ||
* End-to-end tests with [Speculos](https://github.com/LedgerHQ/speculos) emulator and [ragger](https://github.com/LedgerHQ/ragger) (see [tests/](tests/)) | ||
* Code coverage with [gcov](https://gcc.gnu.org/onlinedocs/gcc/Gcov.html)/[lcov](http://ltp.sourceforge.net/coverage/lcov.php) and upload to [codecov.io](https://about.codecov.io) | ||
* Documentation generation with [doxygen](https://www.doxygen.nl) | ||
|
||
It outputs 3 artifacts: | ||
- `compiled_app_binaries` within binary files of the build process for each device | ||
- `code-coverage` within HTML details of code coverage | ||
- `documentation` within HTML auto-generated documentation | ||
|
||
* `compiled_app_binaries` within binary files of the build process for each device | ||
* `code-coverage` within HTML details of code coverage | ||
* `documentation` within HTML auto-generated documentation | ||
|
||
## Are you developing an application for Ledger devices? | ||
|
||
If so, This boilerplate will help you get started. | ||
|
||
For a smooth and quick integration: | ||
|
||
- See the developers’ documentation on the [Developer Portal](https://developers.ledger.com/), and | ||
- [Go on Discord](https://developers.ledger.com/discord-pro/) to chat with developer support and the developer community. | ||
* See the developers’ documentation on the [Developer Portal](https://developers.ledger.com/), and | ||
* [Go on Discord](https://developers.ledger.com/discord-pro/) to chat with developer support and the developer community. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters