Skip to content

Commit

Permalink
Merge pull request #2775 from playgameservices/aerialninja-patch-1
Browse files Browse the repository at this point in the history
Fix SmokeTest app build for older Unity versions
  • Loading branch information
olehkuznetsov authored Oct 30, 2019
2 parents 213f680 + 2e64106 commit 873b57b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/SmokeTest/Source/Assets/SmokeTest/NearbyGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace SmokeTest
using GooglePlayGames;
using GooglePlayGames.BasicApi.Nearby;
using UnityEngine;
#if UNITY_ANDROID
#if UNITY_ANDROID && UNITY_2019
using UnityEngine.Android;
#endif

Expand Down Expand Up @@ -72,7 +72,7 @@ internal NearbyGUI(MainGui owner)
mMessageLog = new List<string>();
mKnownEndpoints = new HashSet<string>();

#if UNITY_ANDROID
#if UNITY_ANDROID && UNITY_2019
Permission.RequestUserPermission(Permission.FineLocation);
Permission.RequestUserPermission(Permission.CoarseLocation);
#endif
Expand Down Expand Up @@ -513,4 +513,4 @@ public override string ToString()
}
}
}
}
}

0 comments on commit 873b57b

Please sign in to comment.