diff options
Diffstat (limited to 'Xamarin.Forms.ControlGallery.Android/TestCloudService.cs')
-rw-r--r-- | Xamarin.Forms.ControlGallery.Android/TestCloudService.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Xamarin.Forms.ControlGallery.Android/TestCloudService.cs b/Xamarin.Forms.ControlGallery.Android/TestCloudService.cs new file mode 100644 index 00000000..7a2fe050 --- /dev/null +++ b/Xamarin.Forms.ControlGallery.Android/TestCloudService.cs @@ -0,0 +1,24 @@ +using Xamarin.Forms.Controls; + +namespace Xamarin.Forms.ControlGallery.Android +{ + public class TestCloudService : ITestCloudService + { + public bool IsOnTestCloud () + { + var isInTestCloud = System.Environment.GetEnvironmentVariable ("XAMARIN_TEST_CLOUD"); + + return isInTestCloud != null && isInTestCloud.Equals ("1"); + } + + public string GetTestCloudDeviceName () + { + return System.Environment.GetEnvironmentVariable ("XTC_DEVICE_NAME"); + } + + public string GetTestCloudDevice () + { + return System.Environment.GetEnvironmentVariable ("XTC_DEVICE"); + } + } +}
\ No newline at end of file |