Skip to content

Commit fcefc16

Browse files
author
ComputerElite
committed
no pls
1 parent ff58f71 commit fcefc16

4 files changed

Lines changed: 69 additions & 6 deletions

File tree

MainActivity.cs

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,86 @@
44
using Android.OS;
55
using Android.Runtime;
66
using Android.Webkit;
7+
using AndroidX.Activity.Result;
8+
using AndroidX.Activity.Result.Contract;
79
using AndroidX.AppCompat.App;
810
using AndroidX.Core.App;
911
using AndroidX.Core.Content;
1012
using ComputerUtils.Android;
1113
using ComputerUtils.Android.Logging;
1214
using Google.Android.Material.Snackbar;
15+
using Java.Interop;
1316
using QuestAppVersionSwitcher.Core;
17+
using System;
1418

1519
namespace QuestAppVersionSwitcher
1620
{
21+
public class ActivityCallback : Java.Lang.Object, IActivityResultCallback
22+
{
23+
public IntPtr Handle => throw new NotImplementedException();
24+
25+
public int JniIdentityHashCode => throw new NotImplementedException();
26+
27+
public JniObjectReference PeerReference => throw new NotImplementedException();
28+
29+
public JniPeerMembers JniPeerMembers => throw new NotImplementedException();
30+
31+
public JniManagedPeerStates JniManagedPeerState => throw new NotImplementedException();
32+
33+
public void Dispose()
34+
{
35+
throw new NotImplementedException();
36+
}
37+
38+
public void Disposed()
39+
{
40+
throw new NotImplementedException();
41+
}
42+
43+
public void DisposeUnlessReferenced()
44+
{
45+
throw new NotImplementedException();
46+
}
47+
48+
public void Finalized()
49+
{
50+
throw new NotImplementedException();
51+
}
52+
53+
public void OnActivityResult(Java.Lang.Object result)
54+
{
55+
throw new NotImplementedException();
56+
}
57+
58+
public void SetJniIdentityHashCode(int value)
59+
{
60+
throw new NotImplementedException();
61+
}
62+
63+
public void SetJniManagedPeerState(JniManagedPeerStates value)
64+
{
65+
throw new NotImplementedException();
66+
}
67+
68+
public void SetPeerReference(JniObjectReference reference)
69+
{
70+
throw new NotImplementedException();
71+
}
72+
73+
public void UnregisterFromRuntime()
74+
{
75+
throw new NotImplementedException();
76+
}
77+
}
78+
1779
[Activity(Theme = "@style/AppTheme", MainLauncher = true)]
1880
public class MainActivity : AppCompatActivity
1981
{
2082
WebView webView;
2183
protected override void OnCreate(Bundle savedInstanceState)
2284
{
2385
Android.Webkit.WebView.SetWebContentsDebuggingEnabled(true);
86+
AndroidCore.launcher = RegisterForActivityResult(new ActivityResultContracts.StartActivityForResult(), new ActivityCallback());
2487
base.OnCreate(savedInstanceState);
2588
Xamarin.Essentials.Platform.Init(this, savedInstanceState);
2689
// Set our view from the "main" layout resource

Properties/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.3.1" package="com.ComputerElite.questappversionswitcher" android:installLocation="preferExternal" android:versionCode="13">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.3.2" package="com.ComputerElite.questappversionswitcher" android:installLocation="preferExternal" android:versionCode="14">
33
<uses-sdk android:minSdkVersion="28" android:targetSdkVersion="29" />
44
<uses-permission android:name="oculus.permission.handtracking" />
55
<uses-permission android:name="com.oculus.permission.HAND_TRACKING" />

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
// Minor Version
2323
// Build Number
2424
// Revision
25-
[assembly: AssemblyVersion("1.3.1.0")]
26-
[assembly: AssemblyFileVersion("1.3.1.0")]
25+
[assembly: AssemblyVersion("1.3.2.0")]
26+
[assembly: AssemblyFileVersion("1.3.2.0")]
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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>Pixel_5_API_30</SelectedDevice>
5+
<ActiveDebugProfile>Pixel_5_API_30</ActiveDebugProfile>
66
<DefaultDevice>Pixel_5_API_30</DefaultDevice>
77
<AndroidDesignerPreferredTheme>AppTheme</AndroidDesignerPreferredTheme>
88
<AndroidDesignerPreferredDevice>Nexus 4</AndroidDesignerPreferredDevice>
9-
<SelectedPlatformGroup>PhysicalDevice</SelectedPlatformGroup>
9+
<SelectedPlatformGroup>Emulator</SelectedPlatformGroup>
1010
</PropertyGroup>
1111
</Project>

0 commit comments

Comments
 (0)