forced exceptions to be sent with newlines in them
This commit is contained in:
parent
7270b8ffd5
commit
73631719ab
3 changed files with 4 additions and 7 deletions
|
@ -4,6 +4,7 @@ using Android.App;
|
||||||
using Android.Content;
|
using Android.Content;
|
||||||
using Android.Gms.Ads;
|
using Android.Gms.Ads;
|
||||||
using Android.Net;
|
using Android.Net;
|
||||||
|
using Android.Runtime;
|
||||||
using Android.Views;
|
using Android.Views;
|
||||||
using Android.Widget;
|
using Android.Widget;
|
||||||
using GameAnalyticsSDK;
|
using GameAnalyticsSDK;
|
||||||
|
@ -35,6 +36,7 @@ namespace Android {
|
||||||
public override void SetupAnalytics(Dictionary<string, object> json) {
|
public override void SetupAnalytics(Dictionary<string, object> json) {
|
||||||
GameAnalytics.SetAutoDetectAppVersion(true);
|
GameAnalytics.SetAutoDetectAppVersion(true);
|
||||||
GameAnalytics.Initialize(this.activity, GA_MiniJSON.JsonEncode(new Hashtable(json)));
|
GameAnalytics.Initialize(this.activity, GA_MiniJSON.JsonEncode(new Hashtable(json)));
|
||||||
|
AndroidEnvironment.UnhandledExceptionRaiser += (o, args) => GameAnalytics.NewErrorEvent(GAErrorSeverity.Critical, args.Exception.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void AddResourceEvent(bool sink, string currency, float amount, string itemType, string itemId) {
|
public override void AddResourceEvent(bool sink, string currency, float amount, string itemType, string itemId) {
|
||||||
|
|
|
@ -45,7 +45,6 @@ namespace TouchyTickets {
|
||||||
var settings = new Dictionary<string, object>();
|
var settings = new Dictionary<string, object>();
|
||||||
settings["InfoLog"] = true;
|
settings["InfoLog"] = true;
|
||||||
settings["VerboseLog"] = true;
|
settings["VerboseLog"] = true;
|
||||||
settings["SubmitErrors"] = true;
|
|
||||||
settings["ResourceCurrencies"] = new[] {"Tickets", "Stars"};
|
settings["ResourceCurrencies"] = new[] {"Tickets", "Stars"};
|
||||||
settings["ResourceItemTypes"] = new[] {"Attraction", "Restart", "Upgrade", "Modifier"};
|
settings["ResourceItemTypes"] = new[] {"Attraction", "Restart", "Upgrade", "Modifier"};
|
||||||
// ios comes first, then android. For now they're the same
|
// ios comes first, then android. For now they're the same
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using GameAnalyticsSDK;
|
|
||||||
using GameAnalyticsSDK.Utilities;
|
|
||||||
using TouchyTickets;
|
using TouchyTickets;
|
||||||
|
|
||||||
namespace iOS {
|
namespace iOS {
|
||||||
|
@ -12,12 +9,11 @@ namespace iOS {
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void SetupAnalytics(Dictionary<string, object> json) {
|
public override void SetupAnalytics(Dictionary<string, object> json) {
|
||||||
GameAnalytics.SetAutoDetectAppVersion(true);
|
throw new System.NotImplementedException();
|
||||||
GameAnalytics.Initialize(GA_MiniJSON.JsonEncode(new Hashtable(json)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void AddResourceEvent(bool sink, string currency, float amount, string itemType, string itemId) {
|
public override void AddResourceEvent(bool sink, string currency, float amount, string itemType, string itemId) {
|
||||||
GameAnalytics.NewResourceEvent(sink ? GAResourceFlowType.Sink : GAResourceFlowType.Source, currency, amount, itemType, itemId);
|
throw new System.NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void SetKeepScreenOn(bool keep) {
|
public override void SetKeepScreenOn(bool keep) {
|
||||||
|
|
Loading…
Reference in a new issue