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 #26 from MatkovIvan/update-5.0.4
Browse files Browse the repository at this point in the history
Use device identifier as crash reporter key
  • Loading branch information
Benjamin Scholtysik (Reimold) authored Nov 22, 2017
2 parents 58ae93d + f782e97 commit a13f7a8
Show file tree
Hide file tree
Showing 35 changed files with 294 additions and 248 deletions.
4 changes: 2 additions & 2 deletions ExampleGame/Assets/HockeyAppUnityAndroid/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.hockeyapp.unity"
android:versionCode="17"
android:versionName="5.0.0" >
android:versionCode="18"
android:versionName="5.0.1" >

<uses-sdk
android:minSdkVersion="15"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Version: 5.0.0
* Version: 5.0.1
*/

using UnityEngine;
Expand Down Expand Up @@ -263,6 +263,22 @@ protected String GetModel ()
return model;
}

/// <summary>
/// The unique identifier for device, not dependent on package or device.
/// </summary>
/// <returns>The unique identifier for device, not dependent on package or device.</returns>
protected String GetDeviceIdentifier ()
{
string deviceIdentifier = null;

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

return deviceIdentifier;
}

/// <summary>
/// Collect all header fields for the custom exception report.
/// </summary>
Expand All @@ -271,7 +287,7 @@ protected virtual List<string> GetLogHeaders ()
{
List<string> list = new List<string> ();

#if (UNITY_ANDROID && !UNITY_EDITOR)
#if (UNITY_ANDROID && !UNITY_EDITOR)

list.Add("Package: " + packageID);

Expand All @@ -291,10 +307,13 @@ protected virtual List<string> GetLogHeaders ()
string model = GetModel();
list.Add("Model: " + model);

string deviceIdentifier = GetDeviceIdentifier();
list.Add("CrashReporter Key: " + deviceIdentifier);

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

return list;
return list;
}

/// <summary>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified ExampleGame/Assets/TestScene.unity
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/AudioManager.asset
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/ClusterInputManager.asset
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/DynamicsManager.asset
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/EditorBuildSettings.asset
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/EditorSettings.asset
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/GraphicsSettings.asset
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/InputManager.asset
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/NavMeshAreas.asset
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/NetworkManager.asset
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/Physics2DSettings.asset
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/ProjectSettings.asset
Binary file not shown.
2 changes: 1 addition & 1 deletion ExampleGame/ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
m_EditorVersion: 5.6.3f1
m_EditorVersion: 2017.1.0f3
Binary file modified ExampleGame/ProjectSettings/QualitySettings.asset
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/TagManager.asset
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/TimeManager.asset
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/UnityConnectSettings.asset
Binary file not shown.
2 changes: 1 addition & 1 deletion HockeyAppUnityPlugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.android.tools.build:gradle:3.0.1'
}
}

Expand Down
4 changes: 2 additions & 2 deletions HockeyAppUnityPlugin/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Jun 19 18:17:12 PDT 2017
#Wed Nov 22 12:44:27 MSK 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
3 changes: 1 addition & 2 deletions HockeyAppUnityPlugin/hockeysdk-unity/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion 26
buildToolsVersion "26.0.1"

defaultConfig {
minSdkVersion 15
Expand All @@ -25,5 +24,5 @@ repositories {
}

dependencies {
compile(name:'HockeySDK-5.0.2', ext:'aar')
compile(name:'HockeySDK-5.0.4', ext:'aar')
}
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit a13f7a8

Please sign in to comment.