Skip to content

Commit 9a57b19

Browse files
committed
Merge remote-tracking branch 'OFW/dev' into dev [ci skip]
2 parents a72c523 + 1eb57ba commit 9a57b19

File tree

6 files changed

+27
-14
lines changed

6 files changed

+27
-14
lines changed

applications/services/cli/application.fam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ App(
2222
entry_point="cli_vcp_srv",
2323
stack_size=1024,
2424
order=10,
25-
sdk_headers=["cli_vcp.h"],
25+
sdk_headers=["cli_vcp.h", "cli.h"],
2626
sources=["cli_vcp.c"],
2727
)
2828

applications/services/cli/cli.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#pragma once
2+
3+
/*
4+
* Compatibility header for ease of porting existing apps.
5+
* In short:
6+
* Cli* is replaced with with CliRegistry*
7+
* cli_* functions are replaced with cli_registry_* functions
8+
* (i.e., cli_add_command() is now cli_registry_add_command())
9+
*/
10+
11+
#include <toolbox/cli/cli_registry.h>
12+
13+
#define RECORD_CLI "cli"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#pragma once
22

3+
#include "cli.h"
34
#include <toolbox/cli/cli_command.h>
45
#include <toolbox/cli/cli_registry.h>
56

6-
#define RECORD_CLI "cli"
7-
#define CLI_APPID "cli"
7+
#define CLI_APPID "cli"
88

99
void cli_main_commands_init(CliRegistry* registry);

scripts/fbt/appmanifest.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _validate_app_params(self, *args, **kw):
158158
f"App {kw.get('appid')} cannot have fal_embedded set"
159159
)
160160

161-
if apptype in AppBuildset.dist_app_types:
161+
if apptype in AppBuildset.DIST_APP_TYPES:
162162
# For distributing .fap's resources, there's "fap_file_assets"
163163
for app_property in ("resources",):
164164
if kw.get(app_property):
@@ -261,14 +261,12 @@ class AppBuildset:
261261
FlipperAppType.DEBUG: True,
262262
FlipperAppType.MENUEXTERNAL: False,
263263
}
264-
265-
@classmethod
266-
@property
267-
def dist_app_types(cls):
268-
"""Applications that are installed on SD card"""
269-
return list(
270-
entry[0] for entry in cls.EXTERNAL_APP_TYPES_MAP.items() if entry[1]
271-
)
264+
DIST_APP_TYPES = list(
265+
# Applications that are installed on SD card
266+
entry[0]
267+
for entry in EXTERNAL_APP_TYPES_MAP.items()
268+
if entry[1]
269+
)
272270

273271
@staticmethod
274272
def print_writer(message):

targets/f18/api_symbols.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
entry,status,name,type,params
2-
Version,+,85.0,,
2+
Version,+,86.0,,
33
Header,+,applications/services/bt/bt_service/bt.h,,
44
Header,+,applications/services/bt/bt_service/bt_keys_storage.h,,
5+
Header,+,applications/services/cli/cli.h,,
56
Header,+,applications/services/cli/cli_vcp.h,,
67
Header,+,applications/services/dialogs/dialogs.h,,
78
Header,+,applications/services/dolphin/dolphin.h,,

targets/f7/api_symbols.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
entry,status,name,type,params
2-
Version,+,85.0,,
2+
Version,+,86.0,,
33
Header,+,applications/drivers/subghz/cc1101_ext/cc1101_ext_interconnect.h,,
44
Header,+,applications/services/bt/bt_service/bt.h,,
55
Header,+,applications/services/bt/bt_service/bt_keys_storage.h,,
6+
Header,+,applications/services/cli/cli.h,,
67
Header,+,applications/services/cli/cli_vcp.h,,
78
Header,+,applications/services/dialogs/dialogs.h,,
89
Header,+,applications/services/dolphin/dolphin.h,,

0 commit comments

Comments
 (0)