Skip to content

Commit 9837d36

Browse files
committed
Updated android settings
1 parent 5a0a545 commit 9837d36

9 files changed

Lines changed: 39 additions & 9 deletions

File tree

HttpGamepadInput/AppShell.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
66
xmlns:views="clr-namespace:HttpGamepadInput.Views"
77
Shell.FlyoutBehavior="Flyout"
8-
Shell.NavBarIsVisible="False"
98
Title="Gamepad Input via HTTP">
109

1110
<FlyoutItem Title="Gamepads">

HttpGamepadInput/HttpGamepadInput.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@
5858
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
5959
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)"/>
6060
</ItemGroup>
61-
61+
62+
<ItemGroup>
63+
<AndroidResource Include="Platforms\Android\Resources\xml\network_security_config.xml" />
64+
</ItemGroup>
65+
6266
<ItemGroup>
6367
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)"/>
6468
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0"/>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.5.2.0
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HttpGamepadInput", "HttpGamepadInput.csproj", "{C7EC958B-5077-E8F0-0358-2AA8B171A55D}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{C7EC958B-5077-E8F0-0358-2AA8B171A55D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{C7EC958B-5077-E8F0-0358-2AA8B171A55D}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{C7EC958B-5077-E8F0-0358-2AA8B171A55D}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{C7EC958B-5077-E8F0-0358-2AA8B171A55D}.Release|Any CPU.Build.0 = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(SolutionProperties) = preSolution
19+
HideSolutionNode = FALSE
20+
EndGlobalSection
21+
GlobalSection(ExtensibilityGlobals) = postSolution
22+
SolutionGuid = {F644B55B-BE59-4FE0-8C01-E76FF82E3AC9}
23+
EndGlobalSection
24+
EndGlobal
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3-
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"></application>
3+
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true" android:networkSecurityConfig="@xml/network_security_config"></application>
44
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
55
<uses-permission android:name="android.permission.INTERNET" />
66
</manifest>

HttpGamepadInput/Platforms/Android/MainActivity.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ namespace HttpGamepadInput;
66

77
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop,
88
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode |
9-
ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
9+
ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density,
10+
ScreenOrientation = ScreenOrientation.Landscape)]
1011
public class MainActivity : MauiAppCompatActivity
1112
{
1213
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<network-security-config>
3+
<base-config cleartextTrafficPermitted="true" />
4+
</network-security-config>

HttpGamepadInput/Platforms/iOS/Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
</array>
1616
<key>UISupportedInterfaceOrientations</key>
1717
<array>
18-
<string>UIInterfaceOrientationPortrait</string>
18+
<!-- <string>UIInterfaceOrientationPortrait</string> -->
1919
<string>UIInterfaceOrientationLandscapeLeft</string>
2020
<string>UIInterfaceOrientationLandscapeRight</string>
2121
</array>
2222
<key>UISupportedInterfaceOrientations~ipad</key>
2323
<array>
24-
<string>UIInterfaceOrientationPortrait</string>
25-
<string>UIInterfaceOrientationPortraitUpsideDown</string>
24+
<!-- <string>UIInterfaceOrientationPortrait</string>
25+
<string>UIInterfaceOrientationPortraitUpsideDown</string> -->
2626
<string>UIInterfaceOrientationLandscapeLeft</string>
2727
<string>UIInterfaceOrientationLandscapeRight</string>
2828
</array>

HttpGamepadInput/Views/MainPage.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
xmlns:base="clr-namespace:HttpGamepadInput.BaseClasses"
66
x:Class="HttpGamepadInput.Views.MainPage"
77
Background="White"
8-
Shell.NavBarIsVisible="False"
98
x:DataType="viewModels:GamepadViewModel">
109

1110
<ContentPage.BindingContext>

HttpGamepadInput/Views/SettingsPage.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
44
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
55
xmlns:viewModels="clr-namespace:HttpGamepadInput.ViewModels"
6-
Shell.NavBarIsVisible="False"
76
x:Class="HttpGamepadInput.Views.SettingsPage"
87
x:DataType="viewModels:SettingsViewModel">
98

0 commit comments

Comments
 (0)