From 3e8d779310eb2847b1f32bcff330c12b20b3c54b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Spie=C3=9F?= Date: Wed, 13 Jan 2016 01:44:56 +0100 Subject: [PATCH] Remove deprecated appStoreEnvironment property --- Classes/BITHockeyManager.h | 12 ------------ Classes/BITHockeyManager.m | 10 +--------- docs/Changelog-template.md | 1 + 3 files changed, 2 insertions(+), 21 deletions(-) diff --git a/Classes/BITHockeyManager.h b/Classes/BITHockeyManager.h index dc6229eef0..c1f27316ab 100644 --- a/Classes/BITHockeyManager.h +++ b/Classes/BITHockeyManager.h @@ -421,18 +421,6 @@ @property (nonatomic, readonly) BITEnvironment appEnvironment; -/** - Flag that determines whether the application is installed and running - from an App Store installation. - - Returns _YES_ if the app is installed and running from the App Store - Returns _NO_ if the app is installed via debug, ad-hoc or enterprise distribution - - @deprecated Please use `appEnvironment` instead! - */ -@property (nonatomic, readonly, getter=isAppStoreEnvironment) BOOL appStoreEnvironment DEPRECATED_ATTRIBUTE; - - /** Returns the app installation specific anonymous UUID diff --git a/Classes/BITHockeyManager.m b/Classes/BITHockeyManager.m index 742287cb85..bf773c397b 100644 --- a/Classes/BITHockeyManager.m +++ b/Classes/BITHockeyManager.m @@ -162,9 +162,8 @@ bitstadium_info_t bitstadium_library_info __attribute__((section("__TEXT,__bit_h #if HOCKEYSDK_FEATURE_STORE_UPDATES _enableStoreUpdateManager = NO; #endif - _appEnvironment = BITEnvironmentOther; - _appStoreEnvironment = NO; + _appEnvironment = bit_currentAppEnvironment(); _startManagerIsInvoked = NO; _startUpdateManagerIsInvoked = NO; @@ -172,13 +171,6 @@ bitstadium_info_t bitstadium_library_info __attribute__((section("__TEXT,__bit_h _installString = bit_appAnonID(NO); _disableInstallTracking = NO; - _appStoreEnvironment = NO; - // check if we are really in an app store environment - _appEnvironment = bit_currentAppEnvironment(); - if (_appEnvironment == BITEnvironmentAppStore) { - _appStoreEnvironment = YES; - } - [self performSelector:@selector(validateStartManagerIsInvoked) withObject:nil afterDelay:0.0f]; } return self; diff --git a/docs/Changelog-template.md b/docs/Changelog-template.md index 6e22717572..a07917a32b 100644 --- a/docs/Changelog-template.md +++ b/docs/Changelog-template.md @@ -3,6 +3,7 @@ - [NEW] Added `BITTelemetryManager` to track users and sessions - [UPDATE] Remove previously deprecated UpdateManagerDelegate method `-viewControllerForUpdateManager:` - [UPDATE] Remove previously deprecated CrashManagerDelegate methods `-userNameForCrashManager:` and `-userEmailForCrashManager:` +- [UPDATE] Remove previously deprecated property `appStoreEnvironment` - [UPDATE] Remove previously deprecated misspelled `timeintervalCrashInLastSessionOccured` property - [UPDATE] Remove previously deprecated misspelled `BITFeedbackListViewCellPresentatationStyle` enum