Remove experimental android setup
This commit is contained in:
parent
ad12b6fd8c
commit
63a62e0f6a
8 changed files with 0 additions and 81 deletions
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<application android:allowBackup="true" android:icon="@mipmap/appicon"
|
|
||||||
android:label="@string/app_name" android:roundIcon="@mipmap/appicon_round"
|
|
||||||
android:supportsRtl="true">
|
|
||||||
</application>
|
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
|
||||||
</manifest>
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<OutputType>Exe</OutputType>
|
|
||||||
<TargetFrameworks>net6.0-android;net7.0-android</TargetFrameworks>
|
|
||||||
<RootNamespace>Examples.Android</RootNamespace>
|
|
||||||
<Nullable>enable</Nullable>
|
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
|
|
||||||
<ApplicationId>com.raylibcs.android</ApplicationId>
|
|
||||||
<ApplicationVersion>1</ApplicationVersion>
|
|
||||||
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Using Include="Raylib_cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="../Raylib-cs/Raylib-cs.csproj" />
|
|
||||||
<ProjectReference Include="../Examples/Examples.csproj" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<Import Project="../Raylib-cs/Build.props" />
|
|
||||||
|
|
||||||
</Project>
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
namespace Examples.Android;
|
|
||||||
|
|
||||||
public abstract class RaylibActivity : NativeActivity
|
|
||||||
{
|
|
||||||
protected override void OnCreate(Bundle? savedInstanceState)
|
|
||||||
{
|
|
||||||
RaylibSetAndroidCallback(OnReady);
|
|
||||||
base.OnCreate(savedInstanceState);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected abstract void OnReady();
|
|
||||||
|
|
||||||
[DllImport(Raylib.NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
|
||||||
private static extern void RaylibSetAndroidCallback(Action callback);
|
|
||||||
}
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
diff --git a/src/rcore.c b/src/rcore.c
|
|
||||||
index eae4951..4400b22 100644
|
|
||||||
--- a/src/rcore.c
|
|
||||||
+++ b/src/rcore.c
|
|
||||||
@@ -1,3 +1,22 @@
|
|
||||||
+#if defined (PLATFORM_ANDROID)
|
|
||||||
+#include <stdlib.h>
|
|
||||||
+
|
|
||||||
+typedef void (*RaylibAndroidCallback)();
|
|
||||||
+static RaylibAndroidCallback _androidCallback = NULL;
|
|
||||||
+
|
|
||||||
+void RaylibSetAndroidCallback(RaylibAndroidCallback callback) {
|
|
||||||
+ _androidCallback = callback;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+int main(int argc, char *argv[]) {
|
|
||||||
+ (void)argc;
|
|
||||||
+ (void)argv;
|
|
||||||
+ while (_androidCallback == NULL) {
|
|
||||||
+ }
|
|
||||||
+ _androidCallback();
|
|
||||||
+}
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
/**********************************************************************************************
|
|
||||||
*
|
|
||||||
* rcore - Basic functions to manage windows, OpenGL context and input on multiple platforms
|
|
||||||
Loading…
Reference in a new issue