diff --git a/Runtime/AppMetrica.cs b/Runtime/AppMetrica.cs index 703af3f..e5fd0b7 100644 --- a/Runtime/AppMetrica.cs +++ b/Runtime/AppMetrica.cs @@ -8,9 +8,9 @@ using UnityEngine; using Object = UnityEngine.Object; -#if UNITY_ANDROID +#if UNITY_ANDROID && !UNITY_EDITOR using Io.AppMetrica.Native.Android; -#elif UNITY_IPHONE || UNITY_IOS +#elif (UNITY_IPHONE || UNITY_IOS) && !UNITY_EDITOR using Io.AppMetrica.Native.Ios; #else using Io.AppMetrica.Native.Dummy; @@ -30,9 +30,9 @@ public static class AppMetrica { private static readonly IDictionary Reporters = new Dictionary(); static AppMetrica() { -#if UNITY_ANDROID +#if UNITY_ANDROID && !UNITY_EDITOR Native = new AppMetricaAndroid(); -#elif UNITY_IPHONE || UNITY_IOS +#elif (UNITY_IPHONE || UNITY_IOS) && !UNITY_EDITOR Native = new AppMetricaIos(); #else Native = new AppMetricaDummy();