diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2017-06-23 18:30:09 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 18:30:09 -0600 |
commit | d078ba64da3a844d266a28a849690355434e7021 (patch) | |
tree | 157560f40a27ea62e44f96308a8943d2b0872935 /Xamarin.Forms.ControlGallery.Android/TestCloudService.cs | |
parent | eb2a2177b3761efbc9b6563d4621ab4a19300837 (diff) | |
download | xamarin-forms-d078ba64da3a844d266a28a849690355434e7021.tar.gz xamarin-forms-d078ba64da3a844d266a28a849690355434e7021.tar.bz2 xamarin-forms-d078ba64da3a844d266a28a849690355434e7021.zip |
ControlGallery Android Activity cleanup (#1011)
* Split up the various forms of Activity1 so the code is manageable
* Update access to Insights key for FormsApplicationActivity
* Remove conditional compilation symbol
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 |