rudderlabs / rudder-sdk-android

Android SDK for RudderStack - the Customer Data Platform for Developers.
https://www.rudderstack.com
Other
18 stars 29 forks source link

feat: sdk 712 work manager support #414

Closed itsdebs closed 5 months ago

itsdebs commented 6 months ago

Fixes # (issue)

What

Moved Work Manager to be a separate library. Configuration isPeriodicFlushEnabled needs to be true to turn on Work manager. Default time is 15 minutes. This is not configurable. (We can make this configurable based on discussion)

How to implement

class SampleWorkManagerAnalyticsFactory : WorkManagerAnalyticsFactory {
    override fun createAnalytics(application: Application): Analytics {
        return RudderAnalyticsUtils.createAnalyticsInstance(application)
    }
}

Why

Type of change

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud