Add tags field to the apps table

This commit is contained in:
Evgeny
2025-05-03 07:56:35 +08:00
parent 4904a0050a
commit 296fbee028
4 changed files with 28 additions and 15 deletions

View File

@@ -1,3 +1,17 @@
### 5.5.4
* Added `icon` meta tag
* Added `private_mode` meta tag
* Added `calendar:enabled_calendar_ids()` method
### 5.5.1
* Added `calendar:is_holiday()` method
### 5.5.0
* Added `aio:add_todo()` method
### 5.3.5
* Added `ai` module

View File

@@ -26,6 +26,10 @@ The type of script is determined by the line (meta tag) at the beginning of the
# Changelog
### 5.7.1
* Added `tags` field to the app table
### 5.7.0
* Added `ui:show_image(uri)` method
@@ -40,20 +44,6 @@ The type of script is determined by the line (meta tag) at the beginning of the
* Added `ui:set_edit_mode_buttons()` method
* Added size argument to `widgets:request_updates()` method
### 5.5.4
* Added `icon` meta tag
* Added `private_mode` meta tag
* Added `calendar:enabled_calendar_ids()` method
### 5.5.1
* Added `calendar:is_holiday()` method
### 5.5.0
* Added `aio:add_todo()` method
[Full changelog](CHANGELOG.md)
# Widget scripts
@@ -469,6 +459,7 @@ The format of the apps table:
`hidden` - true if the application is hidden;
`suspended` - true if the application is suspended;
`category_id` - category ID;
`tags` - array of tags;
`badge` - number on the badge;
`icon` - icon of the application in the form of a link (can be used in the side menu scripts).
```

View File

@@ -2,7 +2,7 @@
all_apps = {}
function on_resume()
all_apps = apps:get_list("launch_count")
all_apps = apps:list("launch_count")
if (next(all_apps) == nil) then
ui:show_text("The list of apps is not ready yet")

8
samples/apps-sample2.lua Normal file
View File

@@ -0,0 +1,8 @@
-- Dumps app info table
app_pkg = "com.android.calendar"
function on_load()
local calendar_app = apps:app(app_pkg)
ui:show_text("%%txt%%"..serialize(calendar_app))
end