Open lvogt opened 7 months ago
Thanks for implementing this. Looks good and clean overall, but its too big to review or merge at this time by me, lot of things would need to be looked at in regards to android alarms and your cron design, not going to be possible before the next app updates.
I understand, take your time.
This implements a cron-like API which uses AlarmManager and WorkManager
WorkManager is used to keep phone awake during task execution, and to be able to handle constraints - including stopping the task if constraint is no longer met.
Until now this has been only tested in the emulator, testing on my actual phone is next on my list. So consider this PR a "draft" but I wanted to get this out to get some "earlier" feedback about the whole concept.
Part of this relies on https://github.com/termux/termux-app/pull/3821 PR for api-packages script: https://github.com/termux/termux-api-package/pull/182