92ca046681
- Apps can specify task stack depth and preferred memory placement in their manifests. - App identifiers are validated against length and character requirements. - Crash diagnostics now show the crash cause, reason, fault address, call stack, and program-counter details, with logs saved for review. - App closing is more consistent across built-in screens. There's now a dedicated function, and the old _emit() function is made private. - Crash diagnostics no longer display a QR code without a call stack. - Improved memory allocation for unrestricted requests.
16 lines
384 B
C++
16 lines
384 B
C++
#include <app/manifest.h>
|
|
#include <app/private/metadata_parsing_internal.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
extern "C" {
|
|
|
|
bool app_id_is_valid(const char* id) {
|
|
auto size = strlen(id);
|
|
return size >= 5 && size <= APP_ID_LENGTH && app_metadata_validate_string(id, [](char c) {
|
|
return std::isalnum(static_cast<unsigned char>(c)) != 0 || c == '.';
|
|
});
|
|
}
|
|
|
|
}
|