-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate public utils from private utils appropriately (#913)
* Separated public utils from private utils * Made SEGAnalyticsUtils public. * Fixed header includes. Co-authored-by: Brandon Sneed <brandon.sneed@segment.com>
- Loading branch information
Showing
8 changed files
with
373 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
// Logging | ||
|
||
void SEGSetShowDebugLogs(BOOL showDebugLogs); | ||
void SEGLog(NSString *format, ...); | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#import "SEGAnalyticsUtils.h" | ||
#import "SEGAnalytics.h" | ||
|
||
static BOOL kAnalyticsLoggerShowLogs = NO; | ||
|
||
// Logging | ||
|
||
void SEGSetShowDebugLogs(BOOL showDebugLogs) | ||
{ | ||
kAnalyticsLoggerShowLogs = showDebugLogs; | ||
} | ||
|
||
void SEGLog(NSString *format, ...) | ||
{ | ||
if (!kAnalyticsLoggerShowLogs) | ||
return; | ||
|
||
va_list args; | ||
va_start(args, format); | ||
NSLogv(format, args); | ||
va_end(args); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.