Breaking change clients must provide a DelegatingWorkerFactory for the library to inject its own factory into, otherwise network recovery will not work
ConfigurationException will be thrown if the DelegatingWorkerFactory is not found on the application.
public class MyApplication extends Application implements Configuration.Provider {
private final Configuration workManagerConfig = new Configuration.Builder()
.setWorkerFactory(new DelegatingWorkerFactory())
.build();
@Override
public Configuration getWorkManagerConfiguration() {
return workManagerConfig;
}
}
This functionality has been used in production for about 6 months without issue from my my side 🌻
Moves away from https://github.com/evernote/android-job in favour of
WorkManager
#521Breaking change clients must provide a
DelegatingWorkerFactory
for the library to inject its own factory into, otherwise network recovery will not workConfigurationException
will be thrown if theDelegatingWorkerFactory
is not found on the application.This functionality has been used in production for about 6 months without issue from my my side 🌻