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.Gms.Ads;
|
||||
using Android.Net;
|
||||
using Android.Runtime;
|
||||
using Android.Views;
|
||||
using Android.Widget;
|
||||
using GameAnalyticsSDK;
|
||||
|
@ -35,6 +36,7 @@ namespace Android {
|
|||
public override void SetupAnalytics(Dictionary<string, object> json) {
|
||||
GameAnalytics.SetAutoDetectAppVersion(true);
|
||||
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) {
|
||||
|
|
|
@ -45,7 +45,6 @@ namespace TouchyTickets {
|
|||
var settings = new Dictionary<string, object>();
|
||||
settings["InfoLog"] = true;
|
||||
settings["VerboseLog"] = true;
|
||||
settings["SubmitErrors"] = true;
|
||||
settings["ResourceCurrencies"] = new[] {"Tickets", "Stars"};
|
||||
settings["ResourceItemTypes"] = new[] {"Attraction", "Restart", "Upgrade", "Modifier"};
|
||||
// ios comes first, then android. For now they're the same
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using GameAnalyticsSDK;
|
||||
using GameAnalyticsSDK.Utilities;
|
||||
using TouchyTickets;
|
||||
|
||||
namespace iOS {
|
||||
|
@ -12,12 +9,11 @@ namespace iOS {
|
|||
}
|
||||
|
||||
public override void SetupAnalytics(Dictionary<string, object> json) {
|
||||
GameAnalytics.SetAutoDetectAppVersion(true);
|
||||
GameAnalytics.Initialize(GA_MiniJSON.JsonEncode(new Hashtable(json)));
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue