Skip to content

Commit

Permalink
fix call AppMetrica in Editor
Browse files Browse the repository at this point in the history
#1
0ce86d63f8d49e4ec472904305640746482d73c5
  • Loading branch information
NesterovichAlexey committed Apr 25, 2024
1 parent 146fbaf commit a1e6d8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Runtime/AppMetrica.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -30,9 +30,9 @@ public static class AppMetrica {
private static readonly IDictionary<string, IReporter> Reporters = new Dictionary<string, IReporter>();

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();
Expand Down

0 comments on commit a1e6d8d

Please sign in to comment.