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

Commit

Permalink
Merge branch 'feature/unity5-support' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Wendt committed Feb 16, 2015
2 parents 3a60507 + 0a4e3cf commit bfad1d5
Show file tree
Hide file tree
Showing 37 changed files with 261 additions and 31 deletions.
Binary file modified Documentation/01_add_plugin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Documentation/02_modify_manifest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Documentation/03_add_component.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Documentation/04_config_script.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Documentation/05_config_build_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions ExampleGame/Assets/HockeyAppUnityAndroid.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="net.hockeyapp.ExampleGameAndroid"
android:versionName="1.0.3"
android:versionCode="4"
android:versionName="1.0.4"
android:versionCode="5"
android:installLocation="preferExternal">
<supports-screens
android:smallScreens="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
*
* Author: Christoph Wendt
*
* Version: 1.0.3
* Version: 1.0.4
*
* Copyright (c) 2013-2014 HockeyApp, Bit Stadium GmbH.
* Copyright (c) 2013-2015 HockeyApp, Bit Stadium GmbH.
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person
Expand Down Expand Up @@ -277,7 +277,7 @@ protected virtual IEnumerator SendLogs(List<string> logs){
WWWForm postForm = CreateForm(log);
string lContent = postForm.headers["Content-Type"].ToString();
lContent = lContent.Replace("\"", "");
Hashtable headers = new Hashtable();
Dictionary<string,string> headers = new Dictionary<string,string>();
headers.Add("Content-Type", lContent);
WWW www = new WWW(url, postForm.data, headers);
yield return www;
Expand Down
53 changes: 53 additions & 0 deletions ExampleGame/Assets/HockeyAppUnityAndroid/HockeySDK-3.0.2.jar.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions ExampleGame/Assets/HockeyAppUnityAndroid/hockeyappunity.jar.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions ExampleGame/Assets/Plugins/Android.meta

This file was deleted.

4 changes: 0 additions & 4 deletions ExampleGame/Assets/Plugins/Android/HockeySDK-3.0.2.jar.meta

This file was deleted.

Binary file modified ExampleGame/Assets/TestScene.unity
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/GraphicsSettings.asset
Binary file not shown.
Binary file added ExampleGame/ProjectSettings/NavMeshAreas.asset
Binary file not shown.
Binary file modified ExampleGame/ProjectSettings/ProjectSettings.asset
Binary file not shown.
2 changes: 2 additions & 0 deletions ExampleGame/ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
m_EditorVersion: 5.0.0f1
m_StandardAssetsVersion: 0
4 changes: 4 additions & 0 deletions HockeyAppUnity/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.source=1.6
4 changes: 2 additions & 2 deletions HockeyAppUnity/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="4"
android:versionName="1.0.3" >
android:versionCode="5"
android:versionName="1.0.4" >

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="net.hockeyapp.ExampleGameAndroid"
android:versionName="1.0.3"
android:versionCode="4"
android:versionName="1.0.4"
android:versionCode="5"
android:installLocation="preferExternal">
<supports-screens
android:smallScreens="true"
Expand Down
4 changes: 4 additions & 0 deletions Plugins/HockeyAppUnityAndroid/AndroidManifest.xml.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
*
* Author: Christoph Wendt
*
* Version: 1.0.3
* Version: 1.0.4
*
* Copyright (c) 2013-2014 HockeyApp, Bit Stadium GmbH.
* Copyright (c) 2013-2015 HockeyApp, Bit Stadium GmbH.
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person
Expand Down Expand Up @@ -277,7 +277,7 @@ protected virtual IEnumerator SendLogs(List<string> logs){
WWWForm postForm = CreateForm(log);
string lContent = postForm.headers["Content-Type"].ToString();
lContent = lContent.Replace("\"", "");
Hashtable headers = new Hashtable();
Dictionary<string,string> headers = new Dictionary<string,string>();
headers.Add("Content-Type", lContent);
WWW www = new WWW(url, postForm.data, headers);
yield return www;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions Plugins/HockeyAppUnityAndroid/HockeySDK-3.0.2.jar.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions Plugins/HockeyAppUnityAndroid/hockeyappunity.jar.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@

The HockeyAppUnity-Android plugin implements support for using HockeyApp in your Unity-Android builds. It easily lets you keep track of crashes that have been caused by your scripts or native Java code.

## Requirements (Version 1.0.3)
## Requirements (Version 1.0.4)

* Unity 4.2 or newer (older versions might work, but we haven't tested them).
* Android 2.1or newer.
* Unity 5.0 or newer (SDK versions with Unity 4 support can be found at the [Unity Asset Store](https://www.assetstore.unity3d.com/en/?gclid=CO) or by switching to the appropriate release branch on GitHub).
* Android 2.1 or newer.

## Installation & Setup

The following steps illustrate how to integrate the HockeyAppUnity-Android plugin:

### 1) Import plugin
Copy the **Plugins** folder into the **Assets** directory of your Unity project
Copy the **HockeyAppUnityAndroid** folder into the **Assets** directory of your Unity project
Unity
![alt text](Documentation/01_add_plugin.png "Add plugins folders")
![alt text](Documentation/01_add_plugin.png "Add HockeyAppUnityAndroid folders")

### 2) Modify AndroidManifest.xml
Change the value for **package** inside the AndroidManifest.xml (*Assets/Plugins/Android*) to the package identifier of your project.
Change the value for **package** inside the AndroidManifest.xml (*Assets/HockeyAppUnityAndroid*) to the package identifier of your project.

![alt text](Documentation/02_modify_manifest.png "Add plugins folders")
![alt text](Documentation/02_modify_manifest.png "Modify manifest")

### 3) Create plugin-GameObject
Create an empty game object (*GameObject -> Create Empty*) and add the **HockeyAppAndroid.cs** as one of its components.
Expand All @@ -37,7 +37,7 @@ The **Auto Upload** option defines if the crash reporting feature should send cr
### 4) Configure build settings
You are now ready to build the project: Select **File -> Build Settings...** and switch to **Android** in the platform section. Check **Development Build** (see Build Settings section).

![alt text](Documentation/05_config_build_settings.png "Add plugins folders")
![alt text](Documentation/05_config_build_settings.png "Configure build settings")

That's it: Build your app / Android project as usual.

Expand Down

0 comments on commit bfad1d5

Please sign in to comment.