Skip to content

Commit 015df3a

Browse files
CodeHexkattrali
authored andcommitted
Update example project for Unity 5+ (#27)
1 parent 5a9eb0a commit 015df3a

File tree

273 files changed

+12661
-1506
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+12661
-1506
lines changed

example/Assets/Buttons.unity

420 Bytes
Binary file not shown.

example/Assets/NotifyButtonScript.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class NotifyButtonScript : MonoBehaviour {
2323
public static void BuildIos(){
2424
string[] levels = {"Assets/Buttons.unity"};
2525
BuildPipeline.BuildPlayer(levels, "bugsnag-unity-ios",
26-
BuildTarget.iPhone, BuildOptions.AutoRunPlayer);
26+
BuildTarget.iOS, BuildOptions.AutoRunPlayer);
2727
}
2828

2929
// Build a folder containing unity3d file and html file
@@ -38,13 +38,13 @@ public static void BuildAndroid(){
3838
// Use this for initialization
3939
void Start () {
4040
Bugsnag.Context = null;
41-
Bugsnag.UserId = null;
4241
Bugsnag.ReleaseStage = null;
4342
Bugsnag.AddToTab (null, null, null);
44-
Bugsnag.AddToTab ("this", "null", null);
43+
Bugsnag.AddToTab ("My Data", "myKey", "myValue");
4544
Bugsnag.ClearTab (null);
46-
Bugsnag.UserId = "four";
45+
Bugsnag.SetUser ("user-id", "User Name", "[email protected]");
4746
Bugsnag.ReleaseStage = "staging";
47+
Bugsnag.AppVersion = "1.2.3-alpha";
4848
}
4949

5050
// Update is called once per frame

example/Assets/Plugins.meta

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/Assets/Plugins/Android.meta

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-49.6 KB
Binary file not shown.

example/Assets/Plugins/Android/bugsnag-android-3.2.5.jar.meta

Lines changed: 0 additions & 4 deletions
This file was deleted.
-49.5 KB
Binary file not shown.
52.8 KB
Binary file not shown.

example/Assets/Plugins/Android/bugsnag-android-release.aar.meta

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/Assets/Plugins/OSX.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)