Skip to content

v0.52.0

Latest
Compare
Choose a tag to compare
@agnostic-apollo agnostic-apollo released this 22 May 22:50
· 1 commit to master since this release
7e225c9

v0.52.0 - 2025-05-22 10:50

Commit history: v0.51.0...v0.52.0

Changelog

Fixed

  • Bump termux-shared to da3a0ac4e2. Related commit termux/termux-app@4de0caac. Related commit termux/termux-app@da3a0ac4. Related commit 28bc8c85. (a3a231e6)

  • JobSchedulerAPI: Fix ResultReturner.returnData() being called multiple times for different printing since 51a02f4 and 61262f7 throwing Connection refused exceptions for calls after the first one instead of printing, and also refactor actions out to functions and change action output format.

    The ResultReturner.returnData() will be called once for each action.

    The schedule job action will not print all pending jobs at end and only the pending job that was scheduled if successful. Users should use termux-job-scheduler -p to get all pending jobs.

    The termux-job-scheduler --p action will print No jobs found instead of No pending jobs if no pending job exists.

    The termux-job-scheduler --cancel-all action will now print all jobs to be cancelled, or No jobs found found.

    The job description will use 4 spaces instead of a tab after the path.

    Closes #762, Closes #773.

    (6fbf61aa)

  • Fix termux-notification --icon not working for release builds as icon drawables were being removed by resource shrinker possibly related to 6ef2618.

    Use standard Android API to get resource id for drawable icon instead of using reflection into drawable class. Additionally use String.format() so that resource shrinker does not remove icons used by NotificationAPI for release builds.

    Closes #483.

    (1639e73f)

  • Fix termux-notification actions not updating or conflicting between notifications due to same request code being used for the PendingIntent of all actions and also specify PendingIntent.FLAG_IMMUTABLE to prevent any modification.

    Closes #677, Closes #764.

    (7c1759a3)

  • BatteryStatusAPI: Output double value instead of string for temperature field with value rounded up to 1 decimal place. (97b41002)

  • Manually add stack trace of caller function that called ResultReturner.returnData() to exception messages as exceptions thrown inside Runnable lambda thread will not include it by default. (922f3585)

  • Fix disabling obfuscation added in 6ef2618 caused due to wrong proguard file being used.

    This caused Termux classes like ReportInfo to be obfuscated making stacktraces harder to read.

    Related commit termux/termux-app@da3a0ac4.

    (28bc8c85)

  • Explicitly specify PendingIntent.FLAG_MUTABLE flag for PendingIntent passed to NfcAdapter.enableForegroundDispatch(). (5040a66f)

  • Check if NfcAdapter is available and not null in NfcActivity.onResume() in addition to onCreate() before calling its methods otherwise would trigger a NullPointerException. (4ba140dd)

  • Fix termux-nfc -t x resulting in error notification being shown as method was not returned from after sending error resulting in ResultReturner.returnData() being called twice. (c986fb09)