This repository has been archived by the owner on Jul 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 687
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 'remotes/origin/dev' into hedger/toochai…
…n_29 # Conflicts: # scripts/toolchain/fbtenv.sh
- Loading branch information
Showing
13 changed files
with
333 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,32 @@ | ||
name: 'Reindex' | ||
name: 'Post-release hooks' | ||
|
||
on: | ||
release: | ||
types: [prereleased,released] | ||
types: [prereleased, released] | ||
|
||
jobs: | ||
reindex: | ||
name: 'Reindex updates' | ||
name: 'Post-release hooks' | ||
runs-on: [self-hosted, FlipperZeroShell] | ||
steps: | ||
- name: Trigger reindex | ||
- name: 'Checkout code' | ||
uses: actions/checkout@v4 | ||
|
||
- name: 'Trigger reindex' | ||
run: | | ||
curl --fail -L -H "Token: ${{ secrets.INDEXER_TOKEN }}" \ | ||
"${{ secrets.INDEXER_URL }}"/firmware/reindex | ||
"${{ secrets.INDEXER_URL }}"/firmware/reindex; | ||
- name: 'Send release notification' | ||
if: ${{ github.event.action == 'released' }} | ||
run: | | ||
echo '${{ secrets.FIREBASE_TOKEN }}' > firebase-token.json; | ||
python3 -m pip install firebase-admin==6.4.0; | ||
python3 scripts/send_firebase_notification.py \ | ||
"--version=${{ github.event.release.name }}" \ | ||
"--token=firebase-token.json"; | ||
- name: 'Remove firebase token' | ||
if: always() | ||
run: | | ||
rm -rf firebase-token.json; |
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,30 @@ | ||
#include "hid_scene.h" | ||
|
||
// Generate scene on_enter handlers array | ||
#define ADD_SCENE(prefix, name, id) prefix##_scene_##name##_on_enter, | ||
void (*const hid_on_enter_handlers[])(void*) = { | ||
#include "hid_scene_config.h" | ||
}; | ||
#undef ADD_SCENE | ||
|
||
// Generate scene on_event handlers array | ||
#define ADD_SCENE(prefix, name, id) prefix##_scene_##name##_on_event, | ||
bool (*const hid_on_event_handlers[])(void* context, SceneManagerEvent event) = { | ||
#include "hid_scene_config.h" | ||
}; | ||
#undef ADD_SCENE | ||
|
||
// Generate scene on_exit handlers array | ||
#define ADD_SCENE(prefix, name, id) prefix##_scene_##name##_on_exit, | ||
void (*const hid_on_exit_handlers[])(void* context) = { | ||
#include "hid_scene_config.h" | ||
}; | ||
#undef ADD_SCENE | ||
|
||
// Initialize scene handlers configuration structure | ||
const SceneManagerHandlers hid_scene_handlers = { | ||
.on_enter_handlers = hid_on_enter_handlers, | ||
.on_event_handlers = hid_on_event_handlers, | ||
.on_exit_handlers = hid_on_exit_handlers, | ||
.scene_num = HidSceneNum, | ||
}; |
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,29 @@ | ||
#pragma once | ||
|
||
#include <gui/scene_manager.h> | ||
|
||
// Generate scene id and total number | ||
#define ADD_SCENE(prefix, name, id) HidScene##id, | ||
typedef enum { | ||
#include "hid_scene_config.h" | ||
HidSceneNum, | ||
} HidScene; | ||
#undef ADD_SCENE | ||
|
||
extern const SceneManagerHandlers hid_scene_handlers; | ||
|
||
// Generate scene on_enter handlers declaration | ||
#define ADD_SCENE(prefix, name, id) void prefix##_scene_##name##_on_enter(void*); | ||
#include "hid_scene_config.h" | ||
#undef ADD_SCENE | ||
|
||
// Generate scene on_event handlers declaration | ||
#define ADD_SCENE(prefix, name, id) \ | ||
bool prefix##_scene_##name##_on_event(void* context, SceneManagerEvent event); | ||
#include "hid_scene_config.h" | ||
#undef ADD_SCENE | ||
|
||
// Generate scene on_exit handlers declaration | ||
#define ADD_SCENE(prefix, name, id) void prefix##_scene_##name##_on_exit(void* context); | ||
#include "hid_scene_config.h" | ||
#undef ADD_SCENE |
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,3 @@ | ||
ADD_SCENE(hid, main, Main) | ||
ADD_SCENE(hid, unpair, Unpair) | ||
ADD_SCENE(hid, exit_confirm, ExitConfirm) |
Oops, something went wrong.