v0.14.0 - 2025-01-16
Commit history: v0.13.0...v0.14.0
Changelog
Added
-
Add dynamic shortcuts. Implemented by @fabian-thomas and @agnostic-apollo in #80. (
6253df51
,bf224475
) -
Add support for shared day/night theming based on
night-mode
termux.properties
value. (397359b9
) -
Add
SystemEventReceiver
that receives theACTION_BOOT_COMPLETED
andACTION_MY_PACKAGE_REPLACED
intents to refresh widgets. This should help fix issues on any potential devices that fail to send theAppWidgetManager.ACTION_APPWIDGET_UPDATE
intent that is normally sent by Android to the app for it to refresh its widgets, but do send other intents on boot or app updates and don't kill the app after app updates. (d480a8ae
) -
Refresh all widgets when main activity starts instead of having to press the
Refresh Widgets
button manually. (aed127d7
) -
Add support for refreshing all widgets in in-app button and passing
0
inam broadcast -n com.termux.widget/.TermuxWidgetProvider -a com.termux.widget.ACTION_REFRESH_WIDGET --ei appWidgetId <id>
broadcast. This also allows a way to fix occasional non-responsive widgets after app updates ifACTION_APPWIDGET_UPDATE
was not sent/received by Termux:Widget app. (497c1cfb
) -
Add monochrome icon. Implemented by @daywalk3r666 in #99 (
72fff0f5
) -
Add
workflow_dispatch
andcron
schedule for "00:15 on 1st of every 2nd month" togithub_action_build
workflow triggers. (222cab3a
) -
! Change
sha256sums
filename tochecksums-sha256.txt
that is generated for APKs built and uploaded to GitHub releases/actions with GitHub actions and log checksum file contents. This is done so that the checksums gets stored internally in GitHub action logs as well and if APK/checksum files attached to GitHub releases are modified manually by someone, this can be detected, at least until logs expire. (fa85579c
)
Changed
-
Rename
TermuxWidgetActivity
toTermuxWidgetMainActivity
. TheTermuxWidgetLauncherActivity
activity alias has been added forTermuxWidgetMainActivity
. This will allow disabling the launcher activity, but still allow the main activity to be launched from Termux app (by runningam start com.termux.widget/com.termux.widget.activities.TermuxWidgetMainActivity
) or from widget title in future. The launcher activity will also now be allowed to be enabled again without having to reinstall the app with theEnable Launcher Icon
button in the main activity if its currently disabled. (639483ad
,d4cfdb2c
) -
Refactor
TermuxCreateShortcutActivity
to move shortcut functions toShortcutFile
and change shortcut path behaviour.The
ShortcutFile
will now store the path instead of the file object.This commit will also now pass absolute path of shortcuts when creating intents for shortcuts and widgets instead of canonical path. This will allow path expansion to be done during execution instead of at creation and if underlying symlink destination changes, new destination will be executed. There will still be a security check during execution to check if shortcut is under allowed directories. The shortcut label will now also be generated from absolute path instead of canonical path as mentioned in #59.
Co-authored-by: Fabian Thomas [email protected].
Co-authored-by: agnostic-apollo [email protected].(
b67203aa
) -
Change the word
reload
torefresh
when refreshing widgets to be consistent. (a19b8edd
) -
! Add
-app
suffix to app name and add version name in APKs generated. (96c5d1e4
) -
! Use dot
.
as tags separator instead of dash-
forgithub
release source anddebug
build type in the apk version tag. This is done to be consistent with semver build metadata tags. For examplegithub-debug
will now begithub.debug
. (07cef6c3
) -
! Rename
app/build.gradle
environmental variables toTERMUX_WIDGET_APP__BUILD__
scope instead ofTERMUX_WIDGET_
.- Renamed
TERMUX_WIDGET_APP_VERSION_NAME
toTERMUX_WIDGET_APP__BUILD__APP_VERSION_NAME
. - Renamed
TERMUX_WIDGET_APK_VERSION_TAG
toTERMUX_WIDGET_APP__BUILD__APK_VERSION_TAG
.
- Renamed
-
Remove termux-emulator JNI libs from APK. (
750f981e
) -
Update suggested permissions for
.shortcuts/icons
. Implemented by @SuspectTyrannosaurus in #69. (a5e1f43b
)
Fixed
-
Show
Open Termux:Widget app to refresh widget
message instead ofNo files in ~/.shortcuts/
message when initial layout of widget is being shown so that it is not confused with shortcuts directory being empty.In this stuck state which may happen after app updates or if app process gets killed without being restarted by Android, the widgets must be refreshed by starting the Termux:Widget app or with the refresh button in the main activity.
If the widget was successfully refreshed/updated and shortcuts directory was empty, only then the
No files in ~/.shortcuts/
message will be shown.(
de8c1a63
) -
Fix issue where app main activity will be brought to front if it existed in recent apps stack and a shortcut was run from launcher. (
03c9cb77
) -
Remove replacement of '-' to ' ' in file names. (
ad155a6c
)
Check Installation for more info on termux-widget_<version>+github-debug.apk
files attached.