diff --git a/Classes/BITHockeyManager.h b/Classes/BITHockeyManager.h index 1d7ebebd0c..0b1ba0de11 100644 --- a/Classes/BITHockeyManager.h +++ b/Classes/BITHockeyManager.h @@ -51,6 +51,9 @@ #if HOCKEYSDK_FEATURE_AUTHENTICATOR @class BITAuthenticator; #endif +#if HOCKEYSDK_FEATURE_TELEMETRY +@class BITTelemetryManager; +#endif /** The HockeySDK manager. Responsible for setup and management of all components @@ -370,6 +373,16 @@ #endif +#if HOCKEYSDK_FEATURE_TELEMETRY + +/** + Reference to the initialized BITTelemetryManager module + + Returns the BITTelemetryManager instance initialized by BITHockeyManager + */ +@property (nonatomic, strong, readonly) BITTelemetryManager *telemetryManager; + +#endif ///----------------------------------------------------------------------------- /// @name Environment diff --git a/Classes/HockeySDKFeatureConfig.h b/Classes/HockeySDKFeatureConfig.h index f7b32e4953..1874a2b7fd 100644 --- a/Classes/HockeySDKFeatureConfig.h +++ b/Classes/HockeySDKFeatureConfig.h @@ -79,5 +79,13 @@ # define HOCKEYSDK_FEATURE_UPDATES 1 #endif /* HOCKEYSDK_FEATURE_UPDATES */ +/** + * If true, include support for auto collecting telemetry data such as sessions and user + * + * _Default_: Enabled + */ +#ifndef HOCKEYSDK_FEATURE_TELEMETRY +# define HOCKEYSDK_FEATURE_TELEMETRY 1 +#endif /* HOCKEYSDK_FEATURE_TELEMETRY */ #endif /* HockeySDK_HockeySDKFeatureConfig_h */