Преглед изворни кода

1.去掉后台保活 尝试修复闪退第二次

huangxiaodong пре 1 година
родитељ
комит
1692161de6
1 измењених фајлова са 5 додато и 3 уклоњено
  1. 5 3
      创维盒子/双子星云手机/AppDelegate/AppDelegate.m

+ 5 - 3
创维盒子/双子星云手机/AppDelegate/AppDelegate.m

@@ -85,12 +85,14 @@
     
     
     //启动后台保活
-    [AudioSessionObject shareManager];
+    //[AudioSessionObject shareManager];
     [self MonitorNetworkChangesFun];
     
+#ifdef DEBUG
     [[PLeakSniffer sharedInstance] installLeakSniffer];
-    
-    //[Bugly startWithAppId:@"179559a521"];
+#else
+    [Bugly startWithAppId:@"179559a521"];
+#endif
     
     
     [[UIDevice currentDevice] setBatteryMonitoringEnabled:YES];