Skip to content

Commit

Permalink
Fix and update documentation
Browse files Browse the repository at this point in the history
Fixed missing colon typo in template for minimal app example
Updated reference to Apps enum after file move
  • Loading branch information
idealemu authored and JF002 committed Mar 14, 2024
1 parent 4d86a3c commit 9aa0bc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/code/Apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ namespace Pinetime {
}

template <>
struct AppTraits<Apps:MyApp> {
struct AppTraits<Apps::MyApp> {
static constexpr Apps app = Apps::MyApp;
static constexpr const char* icon = Screens::Symbol::myApp;
static Screens::Screens* Create(AppController& controllers) {
Expand Down Expand Up @@ -176,7 +176,7 @@ Now we have our very own app, but InfiniTime does not know about it yet.
The first step is to include your `MyApp.cpp` (or any new cpp files for that matter)
in the compilation by adding it to [CMakeLists.txt](/CMakeLists.txt).
The next step to making it launch-able is to give your app an id.
To do this, add an entry in the enum class `Pinetime::Applications::Apps` ([displayapp/Apps.h](/src/displayapp/Apps.h)).
To do this, add an entry in the enum class `Pinetime::Applications::Apps` ([displayapp/apps/Apps.h](/src/displayapp/apps/Apps.h.in)).
Name this entry after your app. Add `#include "displayapp/screens/MyApp.h"`
to the file [displayapp/DisplayApp.cpp](/src/displayapp/DisplayApp.cpp).

Expand Down

0 comments on commit 9aa0bc8

Please sign in to comment.