Skip to content

Commit

Permalink
Fix SmokeTest app build for older Unity versions
Browse files Browse the repository at this point in the history
Tested for versions 5.6, 2017.3, 2018.2, 2019.1, 2019.2 [cl/277367077]
  • Loading branch information
cya-x authored Oct 30, 2019
1 parent 213f680 commit 2e64106
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 2e64106

Please sign in to comment.