.class public Lcom/helpshift/core/HSContext; .super Ljava/lang/Object; .source "SourceFile" # static fields .field public static installCallSuccessful:Ljava/util/concurrent/atomic/AtomicBoolean; .field public static instance:Lcom/helpshift/core/HSContext; # instance fields .field public analyticsEventDM:Lcom/helpshift/analytics/HSAnalyticsEventDM; .field public analyticsManager:Lcom/helpshift/analytics/HSWebchatAnalyticsManager; .field public chatResourceCacheManager:Lcom/helpshift/cache/HelpshiftResourceCacheManager; .field public configManager:Lcom/helpshift/config/HSConfigManager; .field public final context:Landroid/content/Context; .field public conversationPoller:Lcom/helpshift/poller/ConversationPoller; .field public device:Lcom/helpshift/platform/Device; .field public genericDataManager:Lcom/helpshift/storage/HSGenericDataManager; .field public helpcenterCacheEvictionManager:Lcom/helpshift/cache/HelpcenterCacheEvictionManager; .field public helpcenterResourceCacheManager:Lcom/helpshift/cache/HelpshiftResourceCacheManager; .field public hsEventProxy:Lcom/helpshift/chat/HSEventProxy; .field public hsThreadingService:Lcom/helpshift/concurrency/HSThreadingService; .field public httpTransport:Lcom/helpshift/network/HTTPTransport; .field public isSDKLoggingEnabled:Z .field public isSdkOpen:Z .field public isWebchatOpen:Z .field public isWebchatOpenedFromHelpcenter:Z .field public jsGenerator:Lcom/helpshift/core/HSJSGenerator; .field public final nativeToSdkxMigrator:Lcom/helpshift/migrator/NativeToSdkxMigrator; .field public notificationManager:Lcom/helpshift/notification/CoreNotificationManager; .field public persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; .field public pushTokenManager:Lcom/helpshift/notification/HSPushTokenManager; .field public requestUnreadMessageCountHandler:Lcom/helpshift/notification/RequestUnreadMessageCountHandler; .field public scheduledThreadPoolExecutor:Ljava/util/concurrent/ScheduledThreadPoolExecutor; .field public userManager:Lcom/helpshift/user/UserManager; # direct methods .method static constructor ()V .locals 2 .line 92 new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean; const/4 v1, 0x0 invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->(Z)V sput-object v0, Lcom/helpshift/core/HSContext;->installCallSuccessful:Ljava/util/concurrent/atomic/AtomicBoolean; return-void .end method .method public constructor (Landroid/content/Context;)V .locals 4 .line 104 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Lcom/helpshift/core/HSContext;->context:Landroid/content/Context; .line 106 new-instance v0, Lcom/helpshift/storage/HSPersistentStorage; new-instance v1, Lcom/helpshift/storage/SharedPreferencesStore; const-string v2, "__hs_lite_sdk_store" const/4 v3, 0x0 invoke-direct {v1, p1, v2, v3}, Lcom/helpshift/storage/SharedPreferencesStore;->(Landroid/content/Context;Ljava/lang/String;I)V invoke-direct {v0, v1}, Lcom/helpshift/storage/HSPersistentStorage;->(Lcom/helpshift/storage/ISharedPreferencesStore;)V iput-object v0, p0, Lcom/helpshift/core/HSContext;->persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; .line 109 new-instance v0, Lcom/helpshift/concurrency/HSWorkerThreader; const/4 v1, 0x2 invoke-static {v1}, Ljava/util/concurrent/Executors;->newFixedThreadPool(I)Ljava/util/concurrent/ExecutorService; move-result-object v1 invoke-direct {v0, v1}, Lcom/helpshift/concurrency/HSWorkerThreader;->(Ljava/util/concurrent/ExecutorService;)V .line 110 new-instance v1, Lcom/helpshift/concurrency/HSWorkerThreader; invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadExecutor()Ljava/util/concurrent/ExecutorService; move-result-object v2 invoke-direct {v1, v2}, Lcom/helpshift/concurrency/HSWorkerThreader;->(Ljava/util/concurrent/ExecutorService;)V .line 111 new-instance v2, Lcom/helpshift/concurrency/HSUIThreader; invoke-direct {v2}, Lcom/helpshift/concurrency/HSUIThreader;->()V .line 112 new-instance v3, Lcom/helpshift/concurrency/HSThreadingService; invoke-direct {v3, v0, v1, v2}, Lcom/helpshift/concurrency/HSThreadingService;->(Lcom/helpshift/concurrency/HSThreader;Lcom/helpshift/concurrency/HSThreader;Lcom/helpshift/concurrency/HSThreader;)V iput-object v3, p0, Lcom/helpshift/core/HSContext;->hsThreadingService:Lcom/helpshift/concurrency/HSThreadingService; .line 116 new-instance v0, Lcom/helpshift/migrator/NativeToSdkxMigrator; iget-object v1, p0, Lcom/helpshift/core/HSContext;->persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; invoke-direct {v0, p1, v1}, Lcom/helpshift/migrator/NativeToSdkxMigrator;->(Landroid/content/Context;Lcom/helpshift/storage/HSPersistentStorage;)V iput-object v0, p0, Lcom/helpshift/core/HSContext;->nativeToSdkxMigrator:Lcom/helpshift/migrator/NativeToSdkxMigrator; return-void .end method .method public static getInstance()Lcom/helpshift/core/HSContext; .locals 1 sget-object v0, Lcom/helpshift/core/HSContext;->instance:Lcom/helpshift/core/HSContext; return-object v0 .end method .method public static declared-synchronized initInstance(Landroid/content/Context;)V .locals 2 const-class v0, Lcom/helpshift/core/HSContext; monitor-enter v0 :try_start_0 sget-object v1, Lcom/helpshift/core/HSContext;->instance:Lcom/helpshift/core/HSContext; if-nez v1, :cond_0 .line 96 new-instance v1, Lcom/helpshift/core/HSContext; invoke-direct {v1, p0}, Lcom/helpshift/core/HSContext;->(Landroid/content/Context;)V sput-object v1, Lcom/helpshift/core/HSContext;->instance:Lcom/helpshift/core/HSContext; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception p0 goto :goto_1 .line 98 :cond_0 :goto_0 monitor-exit v0 return-void :goto_1 monitor-exit v0 throw p0 .end method .method public static verifyInstall()Z .locals 1 sget-object v0, Lcom/helpshift/core/HSContext;->installCallSuccessful:Ljava/util/concurrent/atomic/AtomicBoolean; .line 349 invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z move-result v0 if-eqz v0, :cond_0 const/4 v0, 0x1 return v0 :cond_0 const/4 v0, 0x0 return v0 .end method # virtual methods .method public getAnalyticsEventDM()Lcom/helpshift/analytics/HSAnalyticsEventDM; .locals 1 iget-object v0, p0, Lcom/helpshift/core/HSContext;->analyticsEventDM:Lcom/helpshift/analytics/HSAnalyticsEventDM; return-object v0 .end method .method public getChatResourceCacheManager()Lcom/helpshift/cache/HelpshiftResourceCacheManager; .locals 7 iget-object v0, p0, Lcom/helpshift/core/HSContext;->chatResourceCacheManager:Lcom/helpshift/cache/HelpshiftResourceCacheManager; if-nez v0, :cond_0 .line 225 new-instance v2, Lcom/helpshift/storage/SharedPreferencesStore; iget-object v0, p0, Lcom/helpshift/core/HSContext;->context:Landroid/content/Context; const-string v1, "__hs_chat_resource_cache" const/4 v3, 0x0 invoke-direct {v2, v0, v1, v3}, Lcom/helpshift/storage/SharedPreferencesStore;->(Landroid/content/Context;Ljava/lang/String;I)V .line 228 new-instance v3, Lcom/helpshift/cache/ChatResourceEvictStrategy; invoke-direct {v3}, Lcom/helpshift/cache/ChatResourceEvictStrategy;->()V sget-object v4, Lcom/helpshift/util/SdkURLs;->AWS_CACHE_URLS_CONFIG:Ljava/lang/String; const-string v5, "chat_cacheURLs" const-string v6, "webchat" move-object v1, p0 invoke-virtual/range {v1 .. v6}, Lcom/helpshift/core/HSContext;->getHelpshiftResourceCacheManager(Lcom/helpshift/storage/SharedPreferencesStore;Lcom/helpshift/cache/ResourceCacheEvictStrategy;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/helpshift/cache/HelpshiftResourceCacheManager; move-result-object v0 iput-object v0, p0, Lcom/helpshift/core/HSContext;->chatResourceCacheManager:Lcom/helpshift/cache/HelpshiftResourceCacheManager; :cond_0 iget-object v0, p0, Lcom/helpshift/core/HSContext;->chatResourceCacheManager:Lcom/helpshift/cache/HelpshiftResourceCacheManager; return-object v0 .end method .method public getConfigManager()Lcom/helpshift/config/HSConfigManager; .locals 1 iget-object v0, p0, Lcom/helpshift/core/HSContext;->configManager:Lcom/helpshift/config/HSConfigManager; return-object v0 .end method .method public getConversationPoller()Lcom/helpshift/poller/ConversationPoller; .locals 1 iget-object v0, p0, Lcom/helpshift/core/HSContext;->conversationPoller:Lcom/helpshift/poller/ConversationPoller; return-object v0 .end method .method public getDevice()Lcom/helpshift/platform/Device; .locals 1 iget-object v0, p0, Lcom/helpshift/core/HSContext;->device:Lcom/helpshift/platform/Device; return-object v0 .end method .method public getGenericDataManager()Lcom/helpshift/storage/HSGenericDataManager; .locals 1 iget-object v0, p0, Lcom/helpshift/core/HSContext;->genericDataManager:Lcom/helpshift/storage/HSGenericDataManager; return-object v0 .end method .method public getHelpcenterCacheEvictionManager()Lcom/helpshift/cache/HelpcenterCacheEvictionManager; .locals 4 iget-object v0, p0, Lcom/helpshift/core/HSContext;->helpcenterCacheEvictionManager:Lcom/helpshift/cache/HelpcenterCacheEvictionManager; if-nez v0, :cond_0 .line 253 new-instance v0, Lcom/helpshift/cache/HelpcenterCacheEvictionManager; iget-object v1, p0, Lcom/helpshift/core/HSContext;->persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; iget-object v2, p0, Lcom/helpshift/core/HSContext;->context:Landroid/content/Context; .line 254 invoke-virtual {v2}, Landroid/content/Context;->getCacheDir()Ljava/io/File; move-result-object v2 invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String; move-result-object v2 const-string v3, "helpcenter" invoke-direct {v0, v1, v2, v3}, Lcom/helpshift/cache/HelpcenterCacheEvictionManager;->(Lcom/helpshift/storage/HSPersistentStorage;Ljava/lang/String;Ljava/lang/String;)V iput-object v0, p0, Lcom/helpshift/core/HSContext;->helpcenterCacheEvictionManager:Lcom/helpshift/cache/HelpcenterCacheEvictionManager; :cond_0 iget-object v0, p0, Lcom/helpshift/core/HSContext;->helpcenterCacheEvictionManager:Lcom/helpshift/cache/HelpcenterCacheEvictionManager; return-object v0 .end method .method public getHelpcenterResourceCacheManager()Lcom/helpshift/cache/HelpshiftResourceCacheManager; .locals 7 iget-object v0, p0, Lcom/helpshift/core/HSContext;->helpcenterResourceCacheManager:Lcom/helpshift/cache/HelpshiftResourceCacheManager; if-nez v0, :cond_0 .line 239 new-instance v2, Lcom/helpshift/storage/SharedPreferencesStore; iget-object v0, p0, Lcom/helpshift/core/HSContext;->context:Landroid/content/Context; const-string v1, "__hs_helpcenter_resource_cache" const/4 v3, 0x0 invoke-direct {v2, v0, v1, v3}, Lcom/helpshift/storage/SharedPreferencesStore;->(Landroid/content/Context;Ljava/lang/String;I)V .line 242 new-instance v3, Lcom/helpshift/cache/HCResourceCacheEvictStrategy; invoke-direct {v3}, Lcom/helpshift/cache/HCResourceCacheEvictStrategy;->()V sget-object v4, Lcom/helpshift/util/SdkURLs;->HC_CACHE_URLS_CONFIG:Ljava/lang/String; const-string v5, "helpcenter_cacheURLs" const-string v6, "helpcenter" move-object v1, p0 invoke-virtual/range {v1 .. v6}, Lcom/helpshift/core/HSContext;->getHelpshiftResourceCacheManager(Lcom/helpshift/storage/SharedPreferencesStore;Lcom/helpshift/cache/ResourceCacheEvictStrategy;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/helpshift/cache/HelpshiftResourceCacheManager; move-result-object v0 iput-object v0, p0, Lcom/helpshift/core/HSContext;->helpcenterResourceCacheManager:Lcom/helpshift/cache/HelpshiftResourceCacheManager; :cond_0 iget-object v0, p0, Lcom/helpshift/core/HSContext;->helpcenterResourceCacheManager:Lcom/helpshift/cache/HelpshiftResourceCacheManager; return-object v0 .end method .method public final getHelpshiftResourceCacheManager(Lcom/helpshift/storage/SharedPreferencesStore;Lcom/helpshift/cache/ResourceCacheEvictStrategy;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/helpshift/cache/HelpshiftResourceCacheManager; .locals 9 .line 265 new-instance v2, Lcom/helpshift/network/HSDownloaderNetwork; new-instance v0, Lcom/helpshift/network/URLConnectionProvider; invoke-direct {v0}, Lcom/helpshift/network/URLConnectionProvider;->()V invoke-direct {v2, v0}, Lcom/helpshift/network/HSDownloaderNetwork;->(Lcom/helpshift/network/URLConnectionProvider;)V .line 266 new-instance v8, Lcom/helpshift/cache/HelpshiftResourceCacheManager; iget-object v0, p0, Lcom/helpshift/core/HSContext;->context:Landroid/content/Context; .line 269 invoke-virtual {v0}, Landroid/content/Context;->getCacheDir()Ljava/io/File; move-result-object v0 invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String; move-result-object v4 move-object v0, v8 move-object v1, p1 move-object v3, p2 move-object v5, p3 move-object v6, p4 move-object v7, p5 invoke-direct/range {v0 .. v7}, Lcom/helpshift/cache/HelpshiftResourceCacheManager;->(Lcom/helpshift/storage/ISharedPreferencesStore;Lcom/helpshift/network/HSDownloaderNetwork;Lcom/helpshift/cache/ResourceCacheEvictStrategy;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V return-object v8 .end method .method public getHsEventProxy()Lcom/helpshift/chat/HSEventProxy; .locals 1 iget-object v0, p0, Lcom/helpshift/core/HSContext;->hsEventProxy:Lcom/helpshift/chat/HSEventProxy; return-object v0 .end method .method public getHsThreadingService()Lcom/helpshift/concurrency/HSThreadingService; .locals 1 iget-object v0, p0, Lcom/helpshift/core/HSContext;->hsThreadingService:Lcom/helpshift/concurrency/HSThreadingService; return-object v0 .end method .method public getJsGenerator()Lcom/helpshift/core/HSJSGenerator; .locals 1 iget-object v0, p0, Lcom/helpshift/core/HSContext;->jsGenerator:Lcom/helpshift/core/HSJSGenerator; return-object v0 .end method .method public getNativeToSdkxMigrator()Lcom/helpshift/migrator/NativeToSdkxMigrator; .locals 1 iget-object v0, p0, Lcom/helpshift/core/HSContext;->nativeToSdkxMigrator:Lcom/helpshift/migrator/NativeToSdkxMigrator; return-object v0 .end method .method public getNotificationManager()Lcom/helpshift/notification/CoreNotificationManager; .locals 1 iget-object v0, p0, Lcom/helpshift/core/HSContext;->notificationManager:Lcom/helpshift/notification/CoreNotificationManager; return-object v0 .end method .method public getPersistentStorage()Lcom/helpshift/storage/HSPersistentStorage; .locals 1 iget-object v0, p0, Lcom/helpshift/core/HSContext;->persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; return-object v0 .end method .method public getRequestUnreadMessageCountHandler()Lcom/helpshift/notification/RequestUnreadMessageCountHandler; .locals 1 iget-object v0, p0, Lcom/helpshift/core/HSContext;->requestUnreadMessageCountHandler:Lcom/helpshift/notification/RequestUnreadMessageCountHandler; return-object v0 .end method .method public getUserManager()Lcom/helpshift/user/UserManager; .locals 1 iget-object v0, p0, Lcom/helpshift/core/HSContext;->userManager:Lcom/helpshift/user/UserManager; return-object v0 .end method .method public getWebchatAnalyticsManager()Lcom/helpshift/analytics/HSWebchatAnalyticsManager; .locals 1 iget-object v0, p0, Lcom/helpshift/core/HSContext;->analyticsManager:Lcom/helpshift/analytics/HSWebchatAnalyticsManager; return-object v0 .end method .method public initialiseComponents(Landroid/content/Context;)V .locals 17 move-object/from16 v0, p0 move-object/from16 v1, p1 .line 122 new-instance v2, Ljava/util/concurrent/ScheduledThreadPoolExecutor; new-instance v3, Lcom/helpshift/core/HSContext$1; invoke-direct {v3, v0}, Lcom/helpshift/core/HSContext$1;->(Lcom/helpshift/core/HSContext;)V const/4 v4, 0x1 invoke-direct {v2, v4, v3}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->(ILjava/util/concurrent/ThreadFactory;)V iput-object v2, v0, Lcom/helpshift/core/HSContext;->scheduledThreadPoolExecutor:Ljava/util/concurrent/ScheduledThreadPoolExecutor; .line 129 new-instance v2, Lcom/helpshift/core/AndroidDevice; iget-object v3, v0, Lcom/helpshift/core/HSContext;->persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; invoke-direct {v2, v1, v3}, Lcom/helpshift/core/AndroidDevice;->(Landroid/content/Context;Lcom/helpshift/storage/HSPersistentStorage;)V iput-object v2, v0, Lcom/helpshift/core/HSContext;->device:Lcom/helpshift/platform/Device; .line 131 new-instance v3, Lcom/helpshift/notification/HSNotificationManager; iget-object v4, v0, Lcom/helpshift/core/HSContext;->persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; iget-object v5, v0, Lcom/helpshift/core/HSContext;->hsThreadingService:Lcom/helpshift/concurrency/HSThreadingService; invoke-direct {v3, v1, v2, v4, v5}, Lcom/helpshift/notification/HSNotificationManager;->(Landroid/content/Context;Lcom/helpshift/platform/Device;Lcom/helpshift/storage/HSPersistentStorage;Lcom/helpshift/concurrency/HSThreadingService;)V iput-object v3, v0, Lcom/helpshift/core/HSContext;->notificationManager:Lcom/helpshift/notification/CoreNotificationManager; .line 133 new-instance v1, Lcom/helpshift/storage/HSGenericDataManager; iget-object v2, v0, Lcom/helpshift/core/HSContext;->persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; invoke-direct {v1, v2}, Lcom/helpshift/storage/HSGenericDataManager;->(Lcom/helpshift/storage/HSPersistentStorage;)V iput-object v1, v0, Lcom/helpshift/core/HSContext;->genericDataManager:Lcom/helpshift/storage/HSGenericDataManager; .line 135 new-instance v1, Lcom/helpshift/network/HSHttpTransport; invoke-direct {v1}, Lcom/helpshift/network/HSHttpTransport;->()V iput-object v1, v0, Lcom/helpshift/core/HSContext;->httpTransport:Lcom/helpshift/network/HTTPTransport; .line 137 new-instance v1, Lcom/helpshift/analytics/HSWebchatAnalyticsManager; iget-object v2, v0, Lcom/helpshift/core/HSContext;->persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; iget-object v3, v0, Lcom/helpshift/core/HSContext;->device:Lcom/helpshift/platform/Device; invoke-direct {v1, v2, v3}, Lcom/helpshift/analytics/HSWebchatAnalyticsManager;->(Lcom/helpshift/storage/HSPersistentStorage;Lcom/helpshift/platform/Device;)V iput-object v1, v0, Lcom/helpshift/core/HSContext;->analyticsManager:Lcom/helpshift/analytics/HSWebchatAnalyticsManager; .line 140 new-instance v8, Lcom/helpshift/chat/HSEventProxy; iget-object v1, v0, Lcom/helpshift/core/HSContext;->hsThreadingService:Lcom/helpshift/concurrency/HSThreadingService; invoke-direct {v8, v1}, Lcom/helpshift/chat/HSEventProxy;->(Lcom/helpshift/concurrency/HSThreadingService;)V iput-object v8, v0, Lcom/helpshift/core/HSContext;->hsEventProxy:Lcom/helpshift/chat/HSEventProxy; .line 142 new-instance v1, Lcom/helpshift/notification/HSPushTokenManager; iget-object v5, v0, Lcom/helpshift/core/HSContext;->device:Lcom/helpshift/platform/Device; iget-object v6, v0, Lcom/helpshift/core/HSContext;->persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; iget-object v7, v0, Lcom/helpshift/core/HSContext;->hsThreadingService:Lcom/helpshift/concurrency/HSThreadingService; iget-object v9, v0, Lcom/helpshift/core/HSContext;->httpTransport:Lcom/helpshift/network/HTTPTransport; iget-object v10, v0, Lcom/helpshift/core/HSContext;->genericDataManager:Lcom/helpshift/storage/HSGenericDataManager; move-object v4, v1 invoke-direct/range {v4 .. v10}, Lcom/helpshift/notification/HSPushTokenManager;->(Lcom/helpshift/platform/Device;Lcom/helpshift/storage/HSPersistentStorage;Lcom/helpshift/concurrency/HSThreadingService;Lcom/helpshift/chat/HSEventProxy;Lcom/helpshift/network/HTTPTransport;Lcom/helpshift/storage/HSGenericDataManager;)V iput-object v1, v0, Lcom/helpshift/core/HSContext;->pushTokenManager:Lcom/helpshift/notification/HSPushTokenManager; .line 149 new-instance v8, Lcom/helpshift/user/UserManager; iget-object v3, v0, Lcom/helpshift/core/HSContext;->persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; iget-object v5, v0, Lcom/helpshift/core/HSContext;->genericDataManager:Lcom/helpshift/storage/HSGenericDataManager; iget-object v6, v0, Lcom/helpshift/core/HSContext;->hsThreadingService:Lcom/helpshift/concurrency/HSThreadingService; iget-object v7, v0, Lcom/helpshift/core/HSContext;->notificationManager:Lcom/helpshift/notification/CoreNotificationManager; move-object v2, v8 invoke-direct/range {v2 .. v7}, Lcom/helpshift/user/UserManager;->(Lcom/helpshift/storage/HSPersistentStorage;Lcom/helpshift/notification/HSPushTokenManager;Lcom/helpshift/storage/HSGenericDataManager;Lcom/helpshift/concurrency/HSThreadingService;Lcom/helpshift/notification/CoreNotificationManager;)V iput-object v8, v0, Lcom/helpshift/core/HSContext;->userManager:Lcom/helpshift/user/UserManager; .line 155 new-instance v1, Lcom/helpshift/config/HSConfigManager; iget-object v2, v0, Lcom/helpshift/core/HSContext;->persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; iget-object v3, v0, Lcom/helpshift/core/HSContext;->analyticsManager:Lcom/helpshift/analytics/HSWebchatAnalyticsManager; iget-object v4, v0, Lcom/helpshift/core/HSContext;->device:Lcom/helpshift/platform/Device; invoke-direct {v1, v2, v3, v4, v8}, Lcom/helpshift/config/HSConfigManager;->(Lcom/helpshift/storage/HSPersistentStorage;Lcom/helpshift/analytics/HSWebchatAnalyticsManager;Lcom/helpshift/platform/Device;Lcom/helpshift/user/UserManager;)V iput-object v1, v0, Lcom/helpshift/core/HSContext;->configManager:Lcom/helpshift/config/HSConfigManager; .line 157 new-instance v1, Lcom/helpshift/poller/FetchNotificationUpdate; iget-object v10, v0, Lcom/helpshift/core/HSContext;->device:Lcom/helpshift/platform/Device; iget-object v11, v0, Lcom/helpshift/core/HSContext;->persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; iget-object v12, v0, Lcom/helpshift/core/HSContext;->genericDataManager:Lcom/helpshift/storage/HSGenericDataManager; iget-object v13, v0, Lcom/helpshift/core/HSContext;->userManager:Lcom/helpshift/user/UserManager; iget-object v14, v0, Lcom/helpshift/core/HSContext;->notificationManager:Lcom/helpshift/notification/CoreNotificationManager; iget-object v15, v0, Lcom/helpshift/core/HSContext;->httpTransport:Lcom/helpshift/network/HTTPTransport; iget-object v2, v0, Lcom/helpshift/core/HSContext;->hsEventProxy:Lcom/helpshift/chat/HSEventProxy; move-object v9, v1 move-object/from16 v16, v2 invoke-direct/range {v9 .. v16}, Lcom/helpshift/poller/FetchNotificationUpdate;->(Lcom/helpshift/platform/Device;Lcom/helpshift/storage/HSPersistentStorage;Lcom/helpshift/storage/HSGenericDataManager;Lcom/helpshift/user/UserManager;Lcom/helpshift/notification/CoreNotificationManager;Lcom/helpshift/network/HTTPTransport;Lcom/helpshift/chat/HSEventProxy;)V .line 165 new-instance v2, Lcom/helpshift/poller/ExponentialBackoff; const/16 v3, 0x1388 const v4, 0xea60 invoke-direct {v2, v3, v4}, Lcom/helpshift/poller/ExponentialBackoff;->(II)V .line 168 new-instance v3, Lcom/helpshift/poller/PollerController; iget-object v4, v0, Lcom/helpshift/core/HSContext;->userManager:Lcom/helpshift/user/UserManager; iget-object v5, v0, Lcom/helpshift/core/HSContext;->scheduledThreadPoolExecutor:Ljava/util/concurrent/ScheduledThreadPoolExecutor; invoke-direct {v3, v1, v4, v2, v5}, Lcom/helpshift/poller/PollerController;->(Lcom/helpshift/poller/FetchNotificationUpdate;Lcom/helpshift/user/UserManager;Lcom/helpshift/poller/ExponentialBackoff;Ljava/util/concurrent/ScheduledThreadPoolExecutor;)V .line 173 new-instance v2, Lcom/helpshift/poller/ConversationPoller; iget-object v4, v0, Lcom/helpshift/core/HSContext;->userManager:Lcom/helpshift/user/UserManager; invoke-direct {v2, v3, v4}, Lcom/helpshift/poller/ConversationPoller;->(Lcom/helpshift/poller/PollerController;Lcom/helpshift/user/UserManager;)V iput-object v2, v0, Lcom/helpshift/core/HSContext;->conversationPoller:Lcom/helpshift/poller/ConversationPoller; iget-object v3, v0, Lcom/helpshift/core/HSContext;->userManager:Lcom/helpshift/user/UserManager; .line 175 invoke-virtual {v3, v2}, Lcom/helpshift/user/UserManager;->setConversationPoller(Lcom/helpshift/poller/ConversationPoller;)V iget-object v2, v0, Lcom/helpshift/core/HSContext;->userManager:Lcom/helpshift/user/UserManager; .line 176 invoke-virtual {v2, v1}, Lcom/helpshift/user/UserManager;->setFetchNotificationUpdateFunction(Lcom/helpshift/poller/FetchNotificationUpdate;)V .line 178 new-instance v2, Lcom/helpshift/analytics/HSAnalyticsEventDM; iget-object v4, v0, Lcom/helpshift/core/HSContext;->device:Lcom/helpshift/platform/Device; iget-object v5, v0, Lcom/helpshift/core/HSContext;->userManager:Lcom/helpshift/user/UserManager; iget-object v6, v0, Lcom/helpshift/core/HSContext;->persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; iget-object v7, v0, Lcom/helpshift/core/HSContext;->analyticsManager:Lcom/helpshift/analytics/HSWebchatAnalyticsManager; iget-object v8, v0, Lcom/helpshift/core/HSContext;->hsThreadingService:Lcom/helpshift/concurrency/HSThreadingService; iget-object v9, v0, Lcom/helpshift/core/HSContext;->httpTransport:Lcom/helpshift/network/HTTPTransport; move-object v3, v2 invoke-direct/range {v3 .. v9}, Lcom/helpshift/analytics/HSAnalyticsEventDM;->(Lcom/helpshift/platform/Device;Lcom/helpshift/user/UserManager;Lcom/helpshift/storage/HSPersistentStorage;Lcom/helpshift/analytics/HSWebchatAnalyticsManager;Lcom/helpshift/concurrency/HSThreadingService;Lcom/helpshift/network/HTTPTransport;)V iput-object v2, v0, Lcom/helpshift/core/HSContext;->analyticsEventDM:Lcom/helpshift/analytics/HSAnalyticsEventDM; .line 185 new-instance v2, Lcom/helpshift/core/HSJSGenerator; iget-object v3, v0, Lcom/helpshift/core/HSContext;->configManager:Lcom/helpshift/config/HSConfigManager; invoke-direct {v2, v3}, Lcom/helpshift/core/HSJSGenerator;->(Lcom/helpshift/config/HSConfigManager;)V iput-object v2, v0, Lcom/helpshift/core/HSContext;->jsGenerator:Lcom/helpshift/core/HSJSGenerator; .line 187 new-instance v2, Lcom/helpshift/notification/RequestUnreadMessageCountHandler; iget-object v10, v0, Lcom/helpshift/core/HSContext;->persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; iget-object v12, v0, Lcom/helpshift/core/HSContext;->userManager:Lcom/helpshift/user/UserManager; iget-object v13, v0, Lcom/helpshift/core/HSContext;->hsEventProxy:Lcom/helpshift/chat/HSEventProxy; iget-object v14, v0, Lcom/helpshift/core/HSContext;->hsThreadingService:Lcom/helpshift/concurrency/HSThreadingService; move-object v9, v2 move-object v11, v1 invoke-direct/range {v9 .. v14}, Lcom/helpshift/notification/RequestUnreadMessageCountHandler;->(Lcom/helpshift/storage/HSPersistentStorage;Lcom/helpshift/poller/FetchNotificationUpdate;Lcom/helpshift/user/UserManager;Lcom/helpshift/chat/HSEventProxy;Lcom/helpshift/concurrency/HSThreadingService;)V iput-object v2, v0, Lcom/helpshift/core/HSContext;->requestUnreadMessageCountHandler:Lcom/helpshift/notification/RequestUnreadMessageCountHandler; return-void .end method .method public isIsWebchatOpenedFromHelpcenter()Z .locals 1 iget-boolean v0, p0, Lcom/helpshift/core/HSContext;->isWebchatOpenedFromHelpcenter:Z return v0 .end method .method public isSDKLoggingEnabled()Z .locals 1 iget-boolean v0, p0, Lcom/helpshift/core/HSContext;->isSDKLoggingEnabled:Z return v0 .end method .method public isSdkOpen()Z .locals 1 iget-boolean v0, p0, Lcom/helpshift/core/HSContext;->isSdkOpen:Z return v0 .end method .method public isWebchatUIOpen()Z .locals 1 iget-boolean v0, p0, Lcom/helpshift/core/HSContext;->isWebchatOpen:Z return v0 .end method .method public sendMigrationFailureLogs()V .locals 7 .line 276 new-instance v6, Lcom/helpshift/migrator/MigrationFailureLogProvider; iget-object v1, p0, Lcom/helpshift/core/HSContext;->context:Landroid/content/Context; iget-object v2, p0, Lcom/helpshift/core/HSContext;->httpTransport:Lcom/helpshift/network/HTTPTransport; iget-object v3, p0, Lcom/helpshift/core/HSContext;->persistentStorage:Lcom/helpshift/storage/HSPersistentStorage; iget-object v4, p0, Lcom/helpshift/core/HSContext;->device:Lcom/helpshift/platform/Device; iget-object v5, p0, Lcom/helpshift/core/HSContext;->hsThreadingService:Lcom/helpshift/concurrency/HSThreadingService; move-object v0, v6 invoke-direct/range {v0 .. v5}, Lcom/helpshift/migrator/MigrationFailureLogProvider;->(Landroid/content/Context;Lcom/helpshift/network/HTTPTransport;Lcom/helpshift/storage/HSPersistentStorage;Lcom/helpshift/platform/Device;Lcom/helpshift/concurrency/HSThreadingService;)V .line 280 invoke-virtual {v6}, Lcom/helpshift/migrator/MigrationFailureLogProvider;->sendMigrationFailureLogs()V return-void .end method .method public setIsWebchatOpenedFromHelpcenter(Z)V .locals 0 iput-boolean p1, p0, Lcom/helpshift/core/HSContext;->isWebchatOpenedFromHelpcenter:Z return-void .end method .method public setSDKLoggingEnabled(Z)V .locals 0 iput-boolean p1, p0, Lcom/helpshift/core/HSContext;->isSDKLoggingEnabled:Z return-void .end method .method public setSdkIsOpen(Z)V .locals 0 iput-boolean p1, p0, Lcom/helpshift/core/HSContext;->isSdkOpen:Z return-void .end method .method public setWebchatUIIsOpen(Z)V .locals 0 iput-boolean p1, p0, Lcom/helpshift/core/HSContext;->isWebchatOpen:Z return-void .end method