We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fae9091 + 4e24f7d commit 00c409bCopy full SHA for 00c409b
src/Files.App/Helpers/Application/AppLifecycleHelper.cs
@@ -29,12 +29,12 @@ public static class AppLifecycleHelper
29
/// <summary>
30
/// Gets the value that provides application environment or branch name.
31
/// </summary>
32
- public static AppEnvironment AppEnvironment { get; } =
33
-#if DEBUG
34
- AppEnvironment.Dev;
35
-#else
36
- AppEnvironment.cd_app_env_placeholder; // This is replaced to an appropriate enum value by a CD pipeline
37
-#endif
+ public static AppEnvironment AppEnvironment =>
+ Enum.TryParse("cd_app_env_placeholder", true, out AppEnvironment appEnvironment))
+ ? appEnvironment;
+ : AppEnvironment.Dev;
+ }
38
39
40
/// Gets application package version.
0 commit comments