Skip to content

Commit 4c91ce9

Browse files
author
ComputerElite
committed
change class names
1 parent 29fe38a commit 4c91ce9

6 files changed

Lines changed: 20 additions & 17 deletions

File tree

ComputerUtils/ComputerUtils.WebServer.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public void AddRouteFolderWithFiles(string path, string folderPath, bool ignoreC
192192
{
193193
string file = folderPath + ServerRequest.path.Substring(path.Length + 1).Replace("/", "\\");
194194
//Logger.Log(file);
195-
if (QPWebserver.DoesAssetExist(file)) ServerRequest.SendFile(file);
195+
if (QAVSWebserver.DoesAssetExist(file)) ServerRequest.SendFile(file);
196196
else ServerRequest.Send404();
197197
return true;
198198
}), true, ignoreCase, ignoreEnd);
@@ -442,22 +442,22 @@ public void SendString(string str, string contentType = "text/plain", int status
442442

443443
public void SendFile(string file, string contentType = "", int statusCode = 200, bool closeRequest = true, Dictionary<string, string> headers = null)
444444
{
445-
if (!QPWebserver.DoesAssetExist(file))
445+
if (!QAVSWebserver.DoesAssetExist(file))
446446
{
447447
Send404();
448448
return;
449449
}
450-
SendData(QPWebserver.GetAssetBytes(file), contentType == "" ? HttpServer.GetContentTpe(file) : contentType, Encoding.UTF8, statusCode, closeRequest, headers);
450+
SendData(QAVSWebserver.GetAssetBytes(file), contentType == "" ? HttpServer.GetContentTpe(file) : contentType, Encoding.UTF8, statusCode, closeRequest, headers);
451451
}
452452

453453
public void SendFile(string file, Dictionary<string, string> replace, string contentType = "", int statusCode = 200, bool closeRequest = true, Dictionary<string, string> headers = null)
454454
{
455-
if (!QPWebserver.DoesAssetExist(file))
455+
if (!QAVSWebserver.DoesAssetExist(file))
456456
{
457457
Send404();
458458
return;
459459
}
460-
string toSend = QPWebserver.GetAssetString(file);
460+
string toSend = QAVSWebserver.GetAssetString(file);
461461
foreach (KeyValuePair<string, string> key in replace) toSend = toSend.Replace(key.Key, key.Value);
462462
SendString(toSend, contentType == "" ? HttpServer.GetContentTpe(file) : contentType, statusCode, closeRequest, headers);
463463
}

Core/CoreService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class CoreService
1818
{
1919
public static AssetManager assetManager = null;
2020
public static WebView browser = null;
21-
public static QPWebserver qPWebserver = new QPWebserver();
21+
public static QAVSWebserver qPWebserver = new QAVSWebserver();
2222
public static CoreVars coreVars = new CoreVars();
2323
public static Version version = Assembly.GetExecutingAssembly().GetName().Version;
2424
public static Context context = null;

Properties/AndroidManifest.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.ComputerElite.questappversionswitcher" android:installLocation="auto">
33
<uses-sdk android:minSdkVersion="29" android:targetSdkVersion="29" />
4-
<uses-permission android:name="oculus.permission.handtracking"/>
5-
<uses-permission android:name="com.oculus.permission.HAND_TRACKING"/>
6-
<uses-feature android:name="oculus.software.handtracking" android:required="false"/>
7-
<application android:usesCleartextTraffic="true" android:requestLegacyExternalStorage="true" android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme">
8-
<provider android:authorities="com.ComputerElite.questappversionswitcher.provider" android:exported="false" android:grantUriPermissions="true" android:name="androidx.core.content.FileProvider">
9-
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths"/>
10-
</provider>
11-
</application>
4+
<uses-permission android:name="oculus.permission.handtracking" />
5+
<uses-permission android:name="com.oculus.permission.HAND_TRACKING" />
6+
<uses-feature android:name="oculus.software.handtracking" android:required="false" />
7+
<application android:usesCleartextTraffic="true" android:requestLegacyExternalStorage="true" android:allowBackup="true" android:icon="@mipmap/ic_launcher_foreground" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme">
8+
<provider android:authorities="com.ComputerElite.questappversionswitcher.provider" android:exported="false" android:grantUriPermissions="true" android:name="androidx.core.content.FileProvider">
9+
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" />
10+
</provider>
11+
</application>
1212
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
1313
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
1414
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

QuestAppVersionSwitcher.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@
129129
<ItemGroup>
130130
<AndroidResource Include="Resources\xml\provider_paths.xml" />
131131
</ItemGroup>
132+
<ItemGroup>
133+
<Content Include=".gitignore" />
134+
</ItemGroup>
132135
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
133136
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
134137
Other similar extension points exist, see Microsoft.Common.targets.

QuestAppVersionSwitcher.csproj.user

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<SelectedDevice>Oculus Quest</SelectedDevice>
5-
<ActiveDebugProfile>Oculus Quest</ActiveDebugProfile>
4+
<SelectedDevice>Samsung SM-A202F</SelectedDevice>
5+
<ActiveDebugProfile>Samsung SM-A202F</ActiveDebugProfile>
66
<DefaultDevice>pixel_2_pie_9_0_-_api_28</DefaultDevice>
77
<AndroidDesignerPreferredTheme>AppTheme</AndroidDesignerPreferredTheme>
88
<AndroidDesignerPreferredDevice>Nexus 4</AndroidDesignerPreferredDevice>

WebServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
namespace QuestAppVersionSwitcher
1414
{
15-
public class QPWebserver
15+
public class QAVSWebserver
1616
{
1717
HttpServer server = new HttpServer();
1818
public static readonly char[] ReservedChars = new char[] { '|', '\\', '?', '*', '<', '\'', ':', '>', '+', '[', ']', '/', '\'', ' ' };

0 commit comments

Comments
 (0)