static void shutDown ( ) { ServerRequestQueue . shutDown ( ) ; PrefHelper . shutDown ( ) ; BranchUtil . shutDown ( ) ; DeviceInfo . shutDown ( ) ; // BranchStrongMatchHelper.shutDown(); // BranchViewHandler.shutDown(); // DeepLinkRoutingValidator.shutDown(); // InstallListener.shutDown(); // InstantAppUtil.shutDown(); // IntegrationValidator.shutDown(); // ShareLinkManager.shutDown(); // UniversalResourceAnalyser.shutDown(); // Release these contexts immediately. if ( branchReferral_ != null ) { branchReferral_ . context_ = null ; branchReferral_ . currentActivityReference_ = null ; } // Reset all of the statics. branchReferral_ = null ; customReferrableSettings_ = CUSTOM_REFERRABLE_SETTINGS . USE_DEFAULT ; bypassCurrentActivityIntentState_ = false ; disableInstantDeepLinking = false ; isActivityLifeCycleCallbackRegistered_ = false ; isAutoSessionMode_ = false ; isForcedSession_ = false ; isSimulatingInstalls_ = false ; checkInstallReferrer_ = true ; }
For Unit Testing we need to reset the Branch state