From c5560664edeb1133b8122f11915adeae8a439348 Mon Sep 17 00:00:00 2001 From: Angga Permana <86430023+anggape@users.noreply.github.com> Date: Sun, 27 Aug 2023 14:12:46 +0700 Subject: [PATCH] Fix unable to run Raylib-cs.Android on debug mode (#193) * Call `RaylibSetAndroidCallback` before `OnCreate` * CI: pack `Raylib-cs.Android` package --- .github/workflows/build.yml | 3 +++ Raylib-cs.Android/RaylibActivity.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b3a3398..c1ee45a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -241,6 +241,9 @@ jobs: - name: Create NuGet Package run: dotnet pack Raylib-cs -c Release --output nuget + - name: Create NuGet Package + run: dotnet pack Raylib-cs.Android -c Release --output nuget + - name: Upload NuGet Package As Artifact uses: actions/upload-artifact@v3 with: diff --git a/Raylib-cs.Android/RaylibActivity.cs b/Raylib-cs.Android/RaylibActivity.cs index 14d7c54..848b9d8 100644 --- a/Raylib-cs.Android/RaylibActivity.cs +++ b/Raylib-cs.Android/RaylibActivity.cs @@ -6,8 +6,8 @@ public abstract class RaylibActivity : NativeActivity { protected override void OnCreate(Bundle? savedInstanceState) { - base.OnCreate(savedInstanceState); RaylibSetAndroidCallback(OnReady); + base.OnCreate(savedInstanceState); } protected abstract void OnReady();