-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactor navcontroller tracking plugin teardown (#70)
* feat: add shutdown method * refactor: add shutdown check in public apis * test: add test in RudderStackDataplanePluginTest * feat: add shutdown button in sample app * refactor: make isAnalyticsShutdown setter private * refactor: move stop function to teardown * refactor: refactor shutdown logic * refactor: return empty string for shutdown in getAnonymousId * test: update MessageQueueTest and RudderStackDataplanePluginTest * refactor: move the removeLifecycleObserver calls to respective plugins * test: update tests regarding teardown * refactor: change shutdown logic * chore: add comment for ensureActive * refactor: remove coroutine call from teardown of RudderStackDataplanePlugin * refactor: remove unncessary super.teardown call * refactor: add shutdown check for reset * chore: add comment for removing VisibleForTesting * refactor: add analytics shutdown check in reset * refactor: add analytics shutdown check in session APIs * feat: add initialize sdk button the analyticsJob needs to be declared as a global private variable since it is used inside the secondary contructor * chore: add todo for analyticsJob * test: update MessageQueueTest to remove VisibleForTesting from MessageQueue * refactor: revert write key and data plane url * refactor: refactor NavControllerTrackingPlugin teardown to remove activity observers * test: update NavControllerActivityObserverTest * test: update NavControllerTrackingPluginTest --------- Co-authored-by: Vishal Gupta <[email protected]>
- Loading branch information
Showing
4 changed files
with
105 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters