Esempio n. 1
0
 public static void Warn(
     string message,
     [CallerFilePath] string file   = "",
     [CallerMemberName] string func = "",
     [CallerLineNumber] int line    = 0)
 {
     InternalLog.Warn(LogTag, message, file, func, line);
 }
Esempio n. 2
0
        private void ParseEngineArgs()
        {
            string packageId = Current.ApplicationInfo.PackageId;
            string tempPath  = $"/home/owner/share/tmp/sdk_tools/{packageId}.rpm";

            if (!File.Exists(tempPath))
            {
                return;
            }
            try
            {
                var lines = File.ReadAllText(tempPath).Trim().Split("\n");
                if (lines.Length > 0)
                {
                    EngineArgs.AddRange(lines);
                }
                File.Delete(tempPath);
            }
            catch (Exception ex)
            {
                InternalLog.Warn(LogTag, $"Error while processing a file:\n{ex}");
            }
        }
        private void ParseEngineArgs()
        {
            string appId    = Current.ApplicationInfo.ApplicationId;
            string tempPath = $"/home/owner/share/tmp/sdk_tools/{appId}.rpm";

            if (!File.Exists(tempPath))
            {
                return;
            }
            try
            {
                var lines = File.ReadAllText(tempPath).Trim().Split("\n");
                foreach (string line in lines)
                {
                    InternalLog.Info(LogTag, $"Enabled: {line}");
                    EngineArgs.Add(line);
                }
                File.Delete(tempPath);
            }
            catch (Exception ex)
            {
                InternalLog.Warn(LogTag, $"Error while processing a file: {ex}");
            }
        }