This library uses time from com.evernote.android.job.util.Clock instances, and defaults to Clock.DEFAULT which uses System.currentTimeMillis() - that can be inaccurate as user can change their device clock.
We're looking to use TrueTime (https://github.com/instacart/truetime-android), which has an API like TrueTimeRx.now() to get currentTimeMillis. Is there a way to use TrueTime with Android-Job?
There's a JobConfig#setClock(Clock) method, but with @VisibleForTesting scope. Is it the correct hook to implement this functionality?
Yes, that's the right hook, but it's not a supported API. You can try it, though. FYI, I also don't plan to expose this API as most people don't need it and this library will be deprecated sooner rather than later.
Sad that this library will be deprecated, as WorkManager doesn't have many features like exact jobs, daily jobs etc. 馃槥
Deprecated doesn't mean it stops working ;-) I'm pretty sure that we'll use both in our code base for a longer time.
Most helpful comment
Deprecated doesn't mean it stops working ;-) I'm pretty sure that we'll use both in our code base for a longer time.