Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #25 from bmourat/fix/crash-logs-creation
Browse files Browse the repository at this point in the history
Fixed crash logs creation
  • Loading branch information
Benjamin Scholtysik (Reimold) authored Oct 25, 2017
2 parents cd88df9 + 5ea9aa3 commit 58ae93d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,22 +263,6 @@ protected String GetModel ()
return model;
}

/// <summary>
/// The device's model manufacturer name.
/// </summary>
/// <returns>The device's model manufacturer name.</returns>
protected String GetCrashReporterKey ()
{
string crashReporterKey = null;

#if (UNITY_ANDROID && !UNITY_EDITOR)
AndroidJavaClass jc = new AndroidJavaClass("net.hockeyapp.unity.HockeyUnityPlugin");
crashReporterKey = jc.CallStatic<string>("getCrashReporterKey");
#endif

return crashReporterKey;
}

/// <summary>
/// Collect all header fields for the custom exception report.
/// </summary>
Expand Down Expand Up @@ -307,9 +291,6 @@ protected virtual List<string> GetLogHeaders ()
string model = GetModel();
list.Add("Model: " + model);

string crashReporterKey = GetCrashReporterKey();
list.Add("CrashReporter Key: " + crashReporterKey);

list.Add("Date: " + DateTime.UtcNow.ToString("ddd MMM dd HH:mm:ss {}zzzz yyyy").Replace("{}", "GMT"));
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,22 +263,6 @@ protected String GetModel ()
return model;
}

/// <summary>
/// The device's model manufacturer name.
/// </summary>
/// <returns>The device's model manufacturer name.</returns>
protected String GetCrashReporterKey ()
{
string crashReporterKey = null;

#if (UNITY_ANDROID && !UNITY_EDITOR)
AndroidJavaClass jc = new AndroidJavaClass("net.hockeyapp.unity.HockeyUnityPlugin");
crashReporterKey = jc.CallStatic<string>("getCrashReporterKey");
#endif

return crashReporterKey;
}

/// <summary>
/// Collect all header fields for the custom exception report.
/// </summary>
Expand Down Expand Up @@ -307,9 +291,6 @@ protected virtual List<string> GetLogHeaders ()
string model = GetModel();
list.Add("Model: " + model);

string crashReporterKey = GetCrashReporterKey();
list.Add("CrashReporter Key: " + crashReporterKey);

list.Add("Date: " + DateTime.UtcNow.ToString("ddd MMM dd HH:mm:ss {}zzzz yyyy").Replace("{}", "GMT"));
#endif

Expand Down

0 comments on commit 58ae93d

Please sign in to comment.