forked from vpnhood/VpnHood
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
203 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
VpnHood.Apps/VpnHood.Client.App.Android.Client.Google/AppConfigs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using VpnHood.Client.App.Utils; | ||
|
||
// ReSharper disable StringLiteralTypo | ||
// ReSharper disable CommentTypo | ||
namespace VpnHood.Client.App.Droid.Client.Google; | ||
|
||
internal class AppConfigs : AppConfigsBase<AppConfigs> | ||
{ | ||
public string AppName { get; init; } = IsDebugMode ? "VpnHOOD! CLIENT (DEBUG)" : "VpnHood! CLIENT"; | ||
public Uri? UpdateInfoUrl { get; init; } = new("https://github.com/vpnhood/VpnHood/releases/latest/download/VpnHoodClient-android.json"); | ||
public int? SpaDefaultPort { get; init; } = IsDebugMode ? 9581 : 9580; | ||
public bool SpaListenToAllIps { get; init; } = IsDebugMode; | ||
|
||
// SampleAccessKey is a test access key, you should replace it with your own access key. | ||
// It is limited and can not be used in production. | ||
public string? DefaultAccessKey { get; init; } = IsDebugMode ? ClientOptions.SampleAccessKey : null; | ||
|
||
public static AppConfigs Load() | ||
{ | ||
var appConfigs = new AppConfigs(); | ||
appConfigs.Merge("AppSettings"); | ||
appConfigs.Merge("AppSettings_Environment"); | ||
return appConfigs; | ||
} | ||
|
||
#if DEBUG | ||
public static bool IsDebugMode => true; | ||
#else | ||
public static bool IsDebugMode => false; | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 0 additions & 2 deletions
2
VpnHood.Apps/VpnHood.Client.App.Android.Client.Google/_publish_apk.ps1
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
VpnHood.Apps/VpnHood.Client.App.Android.Client.Web/AppConfigs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using VpnHood.Client.App.Utils; | ||
|
||
// ReSharper disable StringLiteralTypo | ||
// ReSharper disable CommentTypo | ||
namespace VpnHood.Client.App.Droid.Client.Web; | ||
|
||
internal class AppConfigs : AppConfigsBase<AppConfigs> | ||
{ | ||
public string AppName { get; init; } = IsDebugMode ? "VpnHOOD! CLIENT (DEBUG)" : "VpnHood! CLIENT"; | ||
public Uri? UpdateInfoUrl { get; init; } = new ("https://github.com/vpnhood/VpnHood/releases/latest/download/VpnHoodClient-android-web.json"); | ||
public int? SpaDefaultPort { get; init; } = IsDebugMode ? 9581 : 9580; | ||
public bool SpaListenToAllIps { get; init; } = IsDebugMode; | ||
|
||
// SampleAccessKey is a test access key, you should replace it with your own access key. | ||
// It is limited and can not be used in production. | ||
public string? DefaultAccessKey { get; init; } = IsDebugMode ? ClientOptions.SampleAccessKey : null; | ||
|
||
public static AppConfigs Load() | ||
{ | ||
var appConfigs = new AppConfigs(); | ||
appConfigs.Merge("AppSettings"); | ||
appConfigs.Merge("AppSettings_Environment"); | ||
return appConfigs; | ||
} | ||
|
||
#if DEBUG | ||
public static bool IsDebugMode => true; | ||
#else | ||
public static bool IsDebugMode => false; | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.