Skip to content

Commit

Permalink
Fixes for 0.100.3
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lee committed Apr 5, 2024
1 parent 46fe33b commit 476c3c4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ App(
fap_icon="icons/boilerplate_10px.png",
fap_icon_assets="icons",
fap_category="Misc",
fap_version="1.0",
fap_version="1.1",
)
8 changes: 8 additions & 0 deletions boilerplate.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,19 @@ void boilerplate_app_free(Boilerplate* app) {
view_dispatcher_remove_view(app->view_dispatcher, BoilerplateViewIdMenu);
view_dispatcher_remove_view(app->view_dispatcher, BoilerplateViewIdScene1);
view_dispatcher_remove_view(app->view_dispatcher, BoilerplateViewIdScene2);
view_dispatcher_remove_view(app->view_dispatcher, BoilerplateViewIdScene3);
view_dispatcher_remove_view(app->view_dispatcher, BoilerplateViewIdSettings);
view_dispatcher_remove_view(app->view_dispatcher, BoilerplateViewIdStartscreen);
submenu_free(app->submenu);
variable_item_list_free(app->variable_item_list);
boilerplate_scene_1_free(app->boilerplate_scene_1);
boilerplate_scene_2_free(app->boilerplate_scene_2);
boilerplate_startscreen_free(app->boilerplate_startscreen);

view_dispatcher_free(app->view_dispatcher);

furi_record_close(RECORD_GUI);
furi_record_close(RECORD_NOTIFICATION);

app->gui = NULL;
app->notification = NULL;
Expand Down
1 change: 1 addition & 0 deletions boilerplate.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#define SUBGHZ_APP_EXTENSION ".sub"
#define SUBGHZ_APP_FOLDER ANY_PATH("subghz")
#define BOILERPLATE_VERSION "1.1"

typedef struct {
Gui* gui;
Expand Down
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1
- Add Version to Startscreen
- Fixed crash after furi_check on fw 0.100.3

## 1.0
- Added versioning
- Fixed icon dependency for full support of ufbt and custom firmware compilations
Expand Down
3 changes: 3 additions & 0 deletions views/boilerplate_startscreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ void boilerplate_startscreen_set_callback(

void boilerplate_startscreen_draw(Canvas* canvas, BoilerplateStartscreenModel* model) {
UNUSED(model);
char buffer[64];
canvas_clear(canvas);
canvas_set_color(canvas, ColorBlack);
canvas_set_font(canvas, FontPrimary);
canvas_draw_str_aligned(canvas, 64, 10, AlignCenter, AlignTop, "Start Screen");
canvas_set_font(canvas, FontSecondary);
canvas_draw_str_aligned(canvas, 64, 22, AlignCenter, AlignTop, "Explain your app");
canvas_draw_str_aligned(canvas, 64, 32, AlignCenter, AlignTop, "on this screen");
snprintf(buffer, sizeof(buffer), "Version: %s", BOILERPLATE_VERSION);
canvas_draw_str_aligned(canvas, 64, 42, AlignCenter, AlignTop, buffer);
elements_button_center(canvas, "Start");
}

Expand Down

0 comments on commit 476c3c4

Please sign in to comment.