2020-06-09 19:03:55 +02:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using GameAnalyticsSDK;
|
|
|
|
using GameAnalyticsSDK.Utilities;
|
|
|
|
using TouchyTickets;
|
|
|
|
|
|
|
|
namespace iOS {
|
2020-06-14 01:18:12 +02:00
|
|
|
public class IosPlatform : Platform {
|
2020-06-09 19:03:55 +02:00
|
|
|
|
2020-06-14 01:18:12 +02:00
|
|
|
public override void SetupAds() {
|
|
|
|
throw new System.NotImplementedException();
|
|
|
|
}
|
|
|
|
|
|
|
|
public override void SetupAnalytics(Dictionary<string, object> json) {
|
2020-06-22 22:39:08 +02:00
|
|
|
GameAnalytics.SetAutoDetectAppVersion(true);
|
2020-06-09 19:03:55 +02:00
|
|
|
GameAnalytics.Initialize(GA_MiniJSON.JsonEncode(new Hashtable(json)));
|
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2020-06-29 16:14:08 +02:00
|
|
|
public override void SetKeepScreenOn(bool keep) {
|
|
|
|
throw new System.NotImplementedException();
|
|
|
|
}
|
|
|
|
|
2020-06-09 19:03:55 +02:00
|
|
|
}
|
|
|
|
}
|