33using System . Runtime . InteropServices ;
44using TapSDK . Core . Internal ;
55using System . Collections . Generic ;
6+ using TapSDK . Core . Internal . Log ;
67using UnityEngine ;
78
89namespace TapSDK . Core . Mobile
@@ -13,7 +14,7 @@ public class TapEventMobile : ITapEventPlatform
1314
1415 public TapEventMobile ( )
1516 {
16- Debug . Log ( "TapEventMobile constructor" ) ;
17+ TapLog . Log ( "TapEventMobile constructor" ) ;
1718 EngineBridgeInitializer . Initialize ( ) ;
1819 }
1920
@@ -24,7 +25,7 @@ public void Init(TapTapEventOptions eventOptions)
2425
2526 public void SetUserID ( string userID )
2627 {
27- Debug . Log ( "TapEventMobile SetUserID = " + userID ) ;
28+ TapLog . Log ( "TapEventMobile SetUserID = " + userID ) ;
2829 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
2930 . Method ( "setUserID" )
3031 . Args ( "userID" , userID )
@@ -33,7 +34,7 @@ public void SetUserID(string userID)
3334
3435 public void SetUserID ( string userID , string properties )
3536 {
36- Debug . Log ( "TapEventMobile SetUserID" + userID + properties ) ;
37+ TapLog . Log ( "TapEventMobile SetUserID" + userID + properties ) ;
3738 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
3839 . Method ( "setUserID" )
3940 . Args ( "userID" , userID )
@@ -43,7 +44,7 @@ public void SetUserID(string userID, string properties)
4344
4445 public void ClearUser ( )
4546 {
46- Debug . Log ( "TapEventMobile ClearUser" ) ;
47+ TapLog . Log ( "TapEventMobile ClearUser" ) ;
4748 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
4849 . Method ( "clearUser" )
4950 . CommandBuilder ( ) ) ;
@@ -54,13 +55,13 @@ public string GetDeviceId()
5455 string deviceId = Bridge . CallWithReturnValue ( EngineBridgeInitializer . GetBridgeServer ( )
5556 . Method ( "getDeviceId" )
5657 . CommandBuilder ( ) ) ;
57- Debug . Log ( "TapEventMobile GetDeviceId = " + deviceId ) ;
58+ TapLog . Log ( "TapEventMobile GetDeviceId = " + deviceId ) ;
5859 return deviceId ;
5960 }
6061
6162 public void LogEvent ( string name , string properties )
6263 {
63- Debug . Log ( "TapEventMobile LogEvent" + name + properties ) ;
64+ TapLog . Log ( "TapEventMobile LogEvent" + name + properties ) ;
6465 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
6566 . Method ( "logEvent" )
6667 . Args ( "name" , name )
@@ -70,7 +71,7 @@ public void LogEvent(string name, string properties)
7071
7172 public void DeviceInitialize ( string properties )
7273 {
73- Debug . Log ( "TapEventMobile DeviceInitialize" + properties ) ;
74+ TapLog . Log ( "TapEventMobile DeviceInitialize" + properties ) ;
7475#if UNITY_IOS
7576 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
7677 . Method ( "deviceInitialize" )
@@ -86,7 +87,7 @@ public void DeviceInitialize(string properties)
8687
8788 public void DeviceUpdate ( string properties )
8889 {
89- Debug . Log ( "TapEventMobile DeviceUpdate" + properties ) ;
90+ TapLog . Log ( "TapEventMobile DeviceUpdate" + properties ) ;
9091#if UNITY_IOS
9192 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
9293 . Method ( "deviceUpdate" )
@@ -102,7 +103,7 @@ public void DeviceUpdate(string properties)
102103
103104 public void DeviceAdd ( string properties )
104105 {
105- Debug . Log ( "TapEventMobile DeviceAdd" + properties ) ;
106+ TapLog . Log ( "TapEventMobile DeviceAdd" + properties ) ;
106107#if UNITY_IOS
107108 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
108109 . Method ( "deviceAdd" )
@@ -118,7 +119,7 @@ public void DeviceAdd(string properties)
118119
119120 public void UserInitialize ( string properties )
120121 {
121- Debug . Log ( "TapEventMobile UserInitialize" + properties ) ;
122+ TapLog . Log ( "TapEventMobile UserInitialize" + properties ) ;
122123#if UNITY_IOS
123124 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
124125 . Method ( "userInitialize" )
@@ -134,7 +135,7 @@ public void UserInitialize(string properties)
134135
135136 public void UserUpdate ( string properties )
136137 {
137- Debug . Log ( "TapEventMobile UserUpdate" + properties ) ;
138+ TapLog . Log ( "TapEventMobile UserUpdate" + properties ) ;
138139#if UNITY_IOS
139140 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
140141 . Method ( "userUpdate" )
@@ -150,7 +151,7 @@ public void UserUpdate(string properties)
150151
151152 public void UserAdd ( string properties )
152153 {
153- Debug . Log ( "TapEventMobile UserAdd" + properties ) ;
154+ TapLog . Log ( "TapEventMobile UserAdd" + properties ) ;
154155#if UNITY_IOS
155156 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
156157 . Method ( "userAdd" )
@@ -166,7 +167,7 @@ public void UserAdd(string properties)
166167
167168 public void AddCommonProperty ( string key , string value )
168169 {
169- Debug . Log ( "TapEventMobile AddCommonProperty" + key + value ) ;
170+ TapLog . Log ( "TapEventMobile AddCommonProperty" + key + value ) ;
170171#if UNITY_IOS
171172 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
172173 . Method ( "addCommonProperty" )
@@ -184,7 +185,7 @@ public void AddCommonProperty(string key, string value)
184185
185186 public void AddCommon ( string properties )
186187 {
187- Debug . Log ( "TapEventMobile AddCommon" + properties ) ;
188+ TapLog . Log ( "TapEventMobile AddCommon" + properties ) ;
188189#if UNITY_IOS
189190 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
190191 . Method ( "addCommon" )
@@ -200,7 +201,7 @@ public void AddCommon(string properties)
200201
201202 public void ClearCommonProperty ( string key )
202203 {
203- Debug . Log ( "TapEventMobile ClearCommonProperty" ) ;
204+ TapLog . Log ( "TapEventMobile ClearCommonProperty" ) ;
204205
205206#if UNITY_IOS
206207 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
@@ -217,7 +218,7 @@ public void ClearCommonProperty(string key)
217218
218219 public void ClearCommonProperties ( string [ ] keys )
219220 {
220- Debug . Log ( "TapEventMobile ClearCommonProperties" ) ;
221+ TapLog . Log ( "TapEventMobile ClearCommonProperties" ) ;
221222
222223#if UNITY_IOS
223224 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
@@ -234,7 +235,7 @@ public void ClearCommonProperties(string[] keys)
234235
235236 public void ClearAllCommonProperties ( )
236237 {
237- Debug . Log ( "TapEventMobile ClearAllCommonProperties" ) ;
238+ TapLog . Log ( "TapEventMobile ClearAllCommonProperties" ) ;
238239
239240 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
240241 . Method ( "clearAllCommonProperties" )
@@ -243,7 +244,7 @@ public void ClearAllCommonProperties()
243244
244245 public void LogChargeEvent ( string orderID , string productName , long amount , string currencyType , string paymentMethod , string properties )
245246 {
246- Debug . Log ( "TapEventMobile LogChargeEvent" + orderID ) ;
247+ TapLog . Log ( "TapEventMobile LogChargeEvent" + orderID ) ;
247248
248249 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
249250 . Method ( "logPurchasedEvent" )
@@ -258,7 +259,7 @@ public void LogChargeEvent(string orderID, string productName, long amount, stri
258259
259260 public void RegisterDynamicProperties ( Func < string > callback )
260261 {
261- Debug . Log ( "RegisterDynamicProperties called" + callback ) ;
262+ TapLog . Log ( "RegisterDynamicProperties called" + callback ) ;
262263#if UNITY_IOS
263264 IOSNativeWrapper . RegisterDynamicProperties ( callback ) ;
264265#else
@@ -268,7 +269,7 @@ public void RegisterDynamicProperties(Func<string> callback)
268269
269270 public void SetOAID ( string value )
270271 {
271- Debug . Log ( "TapEventMobile SetOAID" + value ) ;
272+ TapLog . Log ( "TapEventMobile SetOAID" + value ) ;
272273#if UNITY_ANDROID
273274 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
274275 . Method ( "setOAID" )
@@ -279,7 +280,7 @@ public void SetOAID(string value)
279280
280281 public void LogDeviceLoginEvent ( )
281282 {
282- Debug . Log ( "TapEventMobile LogDeviceLoginEvent" ) ;
283+ TapLog . Log ( "TapEventMobile LogDeviceLoginEvent" ) ;
283284#if UNITY_ANDROID
284285 Bridge . CallHandler ( EngineBridgeInitializer . GetBridgeServer ( )
285286 . Method ( "logDeviceLoginEvent" )
0 commit comments