forked from flipperdevices/flipperzero-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/release-candidate' into release
- Loading branch information
Showing
644 changed files
with
13,478 additions
and
2,654 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: 'Unit tests' | ||
|
||
on: | ||
pull_request: | ||
|
||
env: | ||
TARGETS: f7 | ||
DEFAULT_TARGET: f7 | ||
|
||
jobs: | ||
main: | ||
runs-on: [self-hosted, FlipperZeroTest] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: 'Get flipper from device manager (mock)' | ||
id: device | ||
run: | | ||
echo "flipper=/dev/ttyACM0" >> $GITHUB_OUTPUT | ||
- name: 'Compile unit tests firmware' | ||
id: compile | ||
run: | | ||
FBT_TOOLCHAIN_PATH=/opt ./fbt flash OPENOCD_ADAPTER_SERIAL=2A0906016415303030303032 FIRMWARE_APP_SET=unit_tests FORCE=1 | ||
- name: 'Wait for flipper to finish updating' | ||
id: connect | ||
if: steps.compile.outcome == 'success' | ||
run: | | ||
python3 ./scripts/testing/await_flipper.py ${{steps.device.outputs.flipper}} | ||
- name: 'Format flipper SD card' | ||
id: format | ||
if: steps.connect.outcome == 'success' | ||
run: | | ||
./scripts/storage.py -p ${{steps.device.outputs.flipper}} format_ext | ||
- name: 'Copy assets and unit tests data to flipper' | ||
id: copy | ||
if: steps.format.outcome == 'success' | ||
run: | | ||
./scripts/storage.py -p ${{steps.device.outputs.flipper}} send assets/resources /ext | ||
./scripts/storage.py -p ${{steps.device.outputs.flipper}} send assets/unit_tests /ext/unit_tests | ||
- name: 'Run units and validate results' | ||
if: steps.copy.outcome == 'success' | ||
run: | | ||
python3 ./scripts/testing/units.py ${{steps.device.outputs.flipper}} |
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 |
---|---|---|
|
@@ -8,4 +8,5 @@ App( | |
stack_size=2 * 1024, | ||
order=150, | ||
fap_category="Debug", | ||
fap_icon_assets="icons", | ||
) |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Application icons | ||
To use icons, do the following: | ||
* add a line to the application manifest: `fap_icon_assets="folder"`, where `folder` points to the folder where your icons are located | ||
* add `#include "application_id_icons.h"` to the application code, where `application_id` is the appid from the manifest | ||
* every icon in the folder will be available as a `I_icon_name` variable, where `icon_name` is the name of the icon file without the extension | ||
|
||
## Example | ||
We have an application with the following manifest: | ||
``` | ||
App( | ||
appid="example_images", | ||
... | ||
fap_icon_assets="images", | ||
) | ||
``` | ||
|
||
So the icons are in the `images` folder and will be available in the generated `example_images_icons.h` file. | ||
|
||
The example code is located in `example_images_main.c` and contains the following line: | ||
``` | ||
#include "example_images_icons.h" | ||
``` | ||
|
||
Image `dolphin_71x25.png` is available as `I_dolphin_71x25`. |
Oops, something went wrong.