diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c962ef..1222c29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 9fb3bcd..5b86185 100644 --- a/README.md +++ b/README.md @@ -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). ``` diff --git a/samples/apps-sample.lua b/samples/apps-sample.lua index 193e3bc..a67e046 100644 --- a/samples/apps-sample.lua +++ b/samples/apps-sample.lua @@ -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") diff --git a/samples/apps-sample2.lua b/samples/apps-sample2.lua new file mode 100644 index 0000000..579cc90 --- /dev/null +++ b/samples/apps-sample2.lua @@ -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