Ejemplo n.º 1
0
        protected DeviceInfo UpdateDeviceInfo()
        {
            DeviceInfo info = GetDeviceInfo();

            info.Update();
            return(info);
        }
Ejemplo n.º 2
0
 protected DeviceInfo UpdateDeviceInfo()
 {
     try {
         if (_deviceInfo == null)
         {
             _deviceInfo = new DeviceInfo();
         }
         _deviceInfo.Update();
         Log("Succesfully updated device info");
         return(_deviceInfo);
     } catch (System.Exception ex) {
         Log("Error during obtaining device info: " + ex.StackTrace.ToString());
     }
     return(null);
 }
Ejemplo n.º 3
0
            public CountlyCrashReport(CrashReport unityReport)
            {
                error      = unityReport;
                parameters = new Dictionary <string, string>()
                {
                    { "_os", "" },
                    { "_os_version", "" },
                    { "_manufacture", "" },
                    { "_device", "" },
                    { "_resolution", "" },
                    { "_app_version", "" },
                    { "_cpu", "" },
                    { "_opengl", "" },
                    { "_rem_current", "" },
                    { "_ram_total", "" },
                    { "_disk_current", "" },
                    { "_disk_total", "" },
                    { "_bat", "" },
                    { "_orientation", "" },
                    { "_root", "" },
                    { "_online", "" },
                    { "_muted", "" },
                    { "_background", "" },
                    { "_name", "" },
                    { "_error", "" },
                    { "_nonfatal", "" },
                    { "_logs", "" },
                    { "_run", "" }
                };
                DeviceInfo info = new DeviceInfo();

                info.Update();
                parameters["_os"]          = info.OSName;
                parameters["_os_version"]  = info.OSVersion;
                parameters["_app_version"] = CountlyManager.Instance.appVersion;
                parameters["_error"]       = error.text;
                parameters["_online"]      = Application.internetReachability.ToString();
                parameters["_opengl"]      = SystemInfo.graphicsDeviceVersion;
                parameters["_cpu"]         = SystemInfo.processorType;
                parameters["_device"]      = info.Device.ToString();
                parameters["_resolution"]  = info.Resolution;
                parameters["_ram_total"]   = SystemInfo.systemMemorySize.ToString();
                parameters["_run"]         = Time.realtimeSinceStartup.ToString();
                custom = new Dictionary <string, string>();
            }
 public CountlyCrashReport(string errorText)
 {
     parameters = new Dictionary<string, string>()
       {
     {"_os", ""},
     {"_os_version", ""},
     {"_manufacture", ""},
     {"_device", ""},
     {"_resolution", ""},
     {"_app_version", ""},
     {"_cpu", ""},
     {"_opengl", ""},
     {"_rem_current", ""},
     {"_ram_total", ""},
     {"_disk_current", ""},
     {"_disk_total", ""},
     {"_bat", ""},
     {"_orientation", ""},
     {"_root", ""},
     {"_online", ""},
     {"_muted", ""},
     {"_background", ""},
     {"_name", ""},
     {"_error", ""},
     {"_nonfatal", ""},
     {"_logs", ""},
     {"_run", ""}
       };
       DeviceInfo info = new DeviceInfo();
       info.Update();
       parameters["_os"] = info.OSName;
       parameters["_os_version"] = info.OSVersion;
       parameters["_app_version"] = CountlyManager.Instance.appVersion;
       parameters["_error"] = errorText;
       parameters["_online"] = Application.internetReachability.ToString();
       parameters["_opengl"] = SystemInfo.graphicsDeviceVersion;
       parameters["_cpu"] = SystemInfo.processorType;
       parameters["_device"] = info.Device.ToString();
       parameters["_resolution"] = info.Resolution;
       parameters["_ram_total"] = SystemInfo.systemMemorySize.ToString();
       parameters["_run"] = Time.realtimeSinceStartup.ToString();
       custom = new Dictionary<string, string>();
 }