From bc9b69d23bb948a9477083580ebf8ccdc073da02 Mon Sep 17 00:00:00 2001 From: Naomi Pentrel <5212232+npentrel@users.noreply.github.com> Date: Sat, 1 Jun 2024 11:58:27 +0200 Subject: [PATCH] Remove fixes that work around buggy behaviour --- docs/tildagon-apps/development.md | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/docs/tildagon-apps/development.md b/docs/tildagon-apps/development.md index 7d28510..56caa54 100644 --- a/docs/tildagon-apps/development.md +++ b/docs/tildagon-apps/development.md @@ -36,12 +36,6 @@ class ExampleApp(app.App): __app_export__ = ExampleApp ``` -If you place this code in a file called `app.py`, you may also need to add a separate file called `__init__.py` containing this line: - -```python -from .app import ExampleApp -``` - To test the app, you can use the [simulator](./simulate.md) or [use `mpremote` to copy the app onto your real-life badge](#use-mpremote-to-test-an-app-on-your-badge). Once you're ready with development, you can [publish it](./publish.md) to the [app store](https://apps.badge.emfcamp.org/). ## The `App` class @@ -426,13 +420,12 @@ You can also create your own user interfaces using the [`ctx` graphics library]( You can test your app on-device, without publishing it, using [`mpremote`](https://docs.micropython.org/en/latest/reference/mpremote.html). -1. Create a `metadata.json` file in your app's directory. This is necessary **only** during development. Remove this file before publishing your app to the app store. You may also need to specify a `callable` -- this should be the same as the name of your app's main class. +1. Create a `metadata.json` file in your app's directory. This is necessary **only** during development. Remove this file before publishing your app to the app store. ```json { "name": "", - "path": "apps..app", - "callable": "ExampleApp" + "path": "apps..app" } ``` @@ -441,8 +434,7 @@ You can test your app on-device, without publishing it, using [`mpremote`](https ```json { "name": "The OG Snake app", - "path": "apps.snake.app", - "callable": "SnakeApp" + "path": "apps.snake.app" } ```