From 2e641065f77d68d6e5adbb09800594fb61077542 Mon Sep 17 00:00:00 2001 From: aerialninja <47418430+aerialninja@users.noreply.github.com> Date: Wed, 30 Oct 2019 10:56:24 +0000 Subject: [PATCH] Fix SmokeTest app build for older Unity versions Tested for versions 5.6, 2017.3, 2018.2, 2019.1, 2019.2 [cl/277367077] --- samples/SmokeTest/Source/Assets/SmokeTest/NearbyGUI.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/SmokeTest/Source/Assets/SmokeTest/NearbyGUI.cs b/samples/SmokeTest/Source/Assets/SmokeTest/NearbyGUI.cs index 5722c67a4..8f9f6ca4f 100644 --- a/samples/SmokeTest/Source/Assets/SmokeTest/NearbyGUI.cs +++ b/samples/SmokeTest/Source/Assets/SmokeTest/NearbyGUI.cs @@ -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 @@ -72,7 +72,7 @@ internal NearbyGUI(MainGui owner) mMessageLog = new List(); mKnownEndpoints = new HashSet(); -#if UNITY_ANDROID +#if UNITY_ANDROID && UNITY_2019 Permission.RequestUserPermission(Permission.FineLocation); Permission.RequestUserPermission(Permission.CoarseLocation); #endif @@ -513,4 +513,4 @@ public override string ToString() } } } -} \ No newline at end of file +}