From 2c7d0567fa7a2b342b16a5ecea5290aee32aaa77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Sun, 17 May 2015 00:10:14 -0700 Subject: Privatized MGLMapboxEvents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `-pauseMetricsCollection` and `-resumeMetricsCollection` were originally introduced to mitigate concerns around battery usage, but `MGLMapboxEvents` has since evolved to tread much lighter on the battery. There’s no longer any need for the client to call these methods directly. The iOS test project now includes MGLMapboxEvents.h explicitly to avoid having to package a header that will go unused. --- test/ios/MetricsTests.m | 1 - test/ios/ios-tests.xcodeproj/project.pbxproj | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'test/ios') diff --git a/test/ios/MetricsTests.m b/test/ios/MetricsTests.m index 179e7a1acb..5b1a7956ea 100644 --- a/test/ios/MetricsTests.m +++ b/test/ios/MetricsTests.m @@ -10,7 +10,6 @@ @interface MGLMapboxEvents (Testing) -+ (instancetype)sharedManager; - (NSString *)appBundleId; - (NSString *)token; - (BOOL)isPaused; diff --git a/test/ios/ios-tests.xcodeproj/project.pbxproj b/test/ios/ios-tests.xcodeproj/project.pbxproj index 50e12595f7..4f31a5b4a4 100644 --- a/test/ios/ios-tests.xcodeproj/project.pbxproj +++ b/test/ios/ios-tests.xcodeproj/project.pbxproj @@ -81,6 +81,7 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ + DACAD7111B08719F009119DC /* MGLMapboxEvents.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MGLMapboxEvents.h; path = ../../platform/ios/MGLMapboxEvents.h; sourceTree = SOURCE_ROOT; }; DD043323196DB9BC00E6F39D /* Mapbox GL Tests.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Mapbox GL Tests.app"; sourceTree = BUILT_PRODUCTS_DIR; }; DD04335F196DBBD500E6F39D /* MGLTAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MGLTAppDelegate.m; sourceTree = SOURCE_ROOT; }; DD043360196DBBD500E6F39D /* MGLTViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MGLTViewController.m; sourceTree = SOURCE_ROOT; }; @@ -270,6 +271,7 @@ isa = PBXGroup; children = ( DD0581031ACB661200B112C9 /* Headers */, + DACAD7111B08719F009119DC /* MGLMapboxEvents.h */, DD0581071ACB663200B112C9 /* libMapboxGL.a */, DD0581051ACB661C00B112C9 /* MapboxGL.bundle */, ); -- cgit v1.2.1