add library to context containing library and name
Add "from_background" and "version" properties to application opened event.
On app foregrounded, check if 90 minutes has passed since last config download, and re-download. On application launch, this won't happen. There will be a normal flow of downloading source config.
how
Added CoreInputs Plugin to core so that library field can be added to context.
Added listener to ConfigDownloadService Plugin to listen to downloads. These listeners are attached with an optional replay argument. Replay specifies how many old events will be broadcasted to the listener. Making it 0 will make the listener listen to only future downloads.
Update the LifecycleObserver Plugin on android module to listen to config downloads. This plugin keeps track of successful download time in memory and checks if a predefined time has passed since last config download if app has been foregrounded.
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
Checklist:
[ ] Version upgraded (project, README, gradle, podspec etc)
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added unit tests for the code
[ ] I have made corresponding changes to the documentation
Fixes # (issue)
what
SDK-1351 and SDK-1531
This PR solves the following
how
Type of change
Checklist: