forked from vpnhood/VpnHood
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.cs
27 lines (25 loc) · 1.05 KB
/
App.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using Android.Runtime;
using VpnHood.Client.App.Droid.Common;
using VpnHood.Client.App.Droid.Properties;
using VpnHood.Client.App.Resources;
namespace VpnHood.Client.App.Droid;
[Application(
Label = "@string/app_name",
Icon = "@mipmap/appicon",
Banner = "@mipmap/banner", // for TV
NetworkSecurityConfig = "@xml/network_security_config", // required for localhost
SupportsRtl = true, AllowBackup = true)]
public class App(IntPtr javaReference, JniHandleOwnership transfer)
: VpnHoodAndroidApp(javaReference, transfer)
{
protected override AppOptions CreateAppOptions() => new() {
Resource = DefaultAppResource.Resource,
AccessKeys = AssemblyInfo.IsDebugMode ? [ClientOptions.SampleAccessKey] : [],
UpdateInfoUrl = AssemblyInfo.UpdateInfoUrl,
IsAddAccessKeySupported = true,
UpdaterService = AssemblyInfo.CreateUpdaterService(),
CultureService = AndroidAppAppCultureService.CreateIfSupported(),
UiService = new AndroidAppUiService(),
LogAnonymous = !AssemblyInfo.IsDebugMode
};
}