Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support lazy initialization of the SDK #74

Merged
merged 8 commits into from
Mar 18, 2024
Prev Previous commit
Next Next commit
fix: test case fail for testOnAppForegrounded
xiaoweii committed Mar 13, 2024
commit 2f26d4761b1d3f7b965f19969b0ead0897f5b12c
Original file line number Diff line number Diff line change
@@ -121,6 +121,8 @@ public void testContextIsInValid() {
*/
@Test
public void testOnAppForegrounded() {
lifecycle = new LifecycleRegistry(mock(LifecycleOwner.class));
lifecycleManager.startLifecycleTracking(ApplicationProvider.getApplicationContext(), lifecycle);
when(sessionClient.initialSession()).thenReturn(true);
lifecycle.handleLifecycleEvent(Lifecycle.Event.ON_START);
verify(autoRecordEventClient).updateStartEngageTimestamp();