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.
1 parent d4eee43 commit 4e24f7dCopy full SHA for 4e24f7d
src/Files.App/Helpers/Application/AppLifecycleHelper.cs
@@ -29,12 +29,16 @@ 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;
37
-#endif
+ public static AppEnvironment AppEnvironment
+ {
+ get
+ if (Enum.TryParse("cd_app_env_placeholder", true, out AppEnvironment appEnvironment))
+ return appEnvironment;
38
+ else
39
+ return AppEnvironment.Dev;
40
+ }
41
42
43
44
/// Gets application package version.
0 commit comments