少年修仙传客户端代码仓库
lwb
2021-01-26 d674ff35935883afc837300597f14a261a3b5cba
9527 去掉bugly
1个文件已修改
44 ■■■■ 已修改文件
Utility/ExceptionCatcher.cs 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Utility/ExceptionCatcher.cs
@@ -7,29 +7,29 @@
{
    public static void Init()
    {
#if !UNITY_EDITOR
        BuglyAgent.ConfigDebugMode(false);
        BuglyAgent.ConfigAutoReportLogLevel(LogSeverity.LogException);
        // #if !UNITY_EDITOR
        // BuglyAgent.ConfigDebugMode(false);
        // BuglyAgent.ConfigAutoReportLogLevel(LogSeverity.LogException);
        var channel = VersionConfig.Get().appId;
        var versionInfo = StringUtility.Contact(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex, "_", VersionConfig.Get().buildTime);
        var deviceName = SystemInfo.deviceName;
        BuglyAgent.ConfigDefault(channel, versionInfo, deviceName, 0);
        // var channel = VersionConfig.Get().appId;
        // var versionInfo = StringUtility.Contact(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex, "_", VersionConfig.Get().buildTime);
        // var deviceName = SystemInfo.deviceName;
        // BuglyAgent.ConfigDefault(channel, versionInfo, deviceName, 0);
#if UNITY_ANDROID
        BuglyAgent.InitWithAppId("41ecae58ff");
#elif UNITY_IPHONE || UNITY_IOS
        BuglyAgent.InitWithAppId("1f891febfb");
#endif
        // #if UNITY_ANDROID
        //         BuglyAgent.InitWithAppId("41ecae58ff");
        // #elif UNITY_IPHONE || UNITY_IOS
        //         BuglyAgent.InitWithAppId("1f891febfb");
        // #endif
#endif
        // #endif
    }
    public static void Catch()
    {
#if !UNITY_EDITOR
        BuglyAgent.EnableExceptionHandler();
#endif
        // #if !UNITY_EDITOR
        //         BuglyAgent.EnableExceptionHandler();
        // #endif
    }
    public static void Abort()
@@ -39,16 +39,16 @@
    public static void ReportException(string name, System.Exception ex)
    {
#if !UNITY_EDITOR
        BuglyAgent.ReportException(name, ex.Message, ex.StackTrace);
#endif
        // #if !UNITY_EDITOR
        //         BuglyAgent.ReportException(name, ex.Message, ex.StackTrace);
        // #endif
    }
    public static void ReportException(string name, string message)
    {
#if !UNITY_EDITOR
        BuglyAgent.ReportException(name, message, "");
#endif
        // #if !UNITY_EDITOR
        //         BuglyAgent.ReportException(name, message, "");
        // #endif
    }