- Refactor `AppManifest`: add new fields and rename existing ones - Parse and validate the manifest from an app that is being installed. - Remove deprecated `scoped()` from `Lock` - Create `Tactility/Paths.h` - App loading at boot now properly parses the manifest files of external apps - Properly lock both source and destination locations during app install - Remove LVGL path variants from `AppPaths` and `ServicePaths` - Removed `xPath` base classes for apps and services. There's now `AppPaths` and `ServicePaths`. - Renamed app and service paths: "data" and "system" paths are now "user data" and "assets"
24 lines
657 B
C++
24 lines
657 B
C++
#include <Tactility/app/AppManifest.h>
|
|
#include <Tactility/lvgl/Toolbar.h>
|
|
#include <lvgl.h>
|
|
|
|
using namespace tt::app;
|
|
|
|
class HelloWorldApp : public App {
|
|
|
|
void onShow(AppContext& context, lv_obj_t* parent) override {
|
|
lv_obj_t* toolbar = tt::lvgl::toolbar_create(parent, context);
|
|
lv_obj_align(toolbar, LV_ALIGN_TOP_MID, 0, 0);
|
|
|
|
lv_obj_t* label = lv_label_create(parent);
|
|
lv_label_set_text(label, "Hello, world!");
|
|
lv_obj_align(label, LV_ALIGN_CENTER, 0, 0);
|
|
}
|
|
};
|
|
|
|
extern const AppManifest hello_world_app = {
|
|
.appId = "HelloWorld",
|
|
.appName = "Hello World",
|
|
.createApp = create<HelloWorldApp>
|
|
};
|