Explorar o código

Properly guard use of FLEX in the example project with #if DEBUG

Ryan Olson %!s(int64=11) %!d(string=hai) anos
pai
achega
4e167f02fb
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Example/UICatalog/AAPLAppDelegate.m

+ 5 - 0
Example/UICatalog/AAPLAppDelegate.m

@@ -46,7 +46,10 @@
 */
 
 #import "AAPLAppDelegate.h"
+
+#if DEBUG
 #import "FLEXManager.h"
+#endif
 
 @interface AAPLAppDelegate () <NSURLConnectionDataDelegate, NSURLSessionDataDelegate>
 
@@ -59,9 +62,11 @@
 
 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {
+#if DEBUG
     [[FLEXManager sharedManager] setNetworkDebuggingEnabled:YES];
     [self sendExampleNetworkRequests];
     self.repeatingLogExampleTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(sendExampleLogMessage) userInfo:nil repeats:YES];
+#endif
     return YES;
 }