Disabling AppStartup silently breaks the library
Nek-12 opened this issue · 3 comments
Nek-12 commented
About this issue
- Follow Official Google guide on workmanager
- The guide says "If you do not use AppStartup in your project, you can disable it"
Note: I also use Koin for DI and it has its own custom init mechanism for workmanager, which is why I disabled AppStartup. - Disable AppStartup in the manifest
- Iconics no longer resolves icons for any of the default font typefaces when trying to use their string representation e.g. "gmr_near_me", but works when using .getIcon()
Side effects:
- Resolving fails silently, no warnings are given because icon(String) extension function uses ?.let { } which ignores unresolved typefaces and only reports icon resolution errors
- No warnings or error are given that appStartup is disabled.
Checklist
- Searched for similar issues
- Checked out the sample application
- Read the README
- Checked out the CHANGELOG
- Read the FAQ
- Checked out the MIGRATION GUIDE
- Spent more than 8 hours debugging this issue
Proposed solution:
- Mention AppStartup in the README
- Log typeface resolution errors in logcat
- Crash the app if init script has not been run properly. (Fail Early)
mikepenz commented
Thank you very much for the report @Nek-12
I'll add a note in the README to highlight the usage of jetpack startup
library
Nek-12 commented