2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-04-03 11:09:40 -04:00

Fix unable to run Raylib-cs.Android on debug mode (#193)

* Call `RaylibSetAndroidCallback` before `OnCreate`
* CI: pack `Raylib-cs.Android` package
This commit is contained in:
Angga Permana 2023-08-27 14:12:46 +07:00 committed by GitHub
parent 9b7bcec250
commit c5560664ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -241,6 +241,9 @@ jobs:
- name: Create NuGet Package - name: Create NuGet Package
run: dotnet pack Raylib-cs -c Release --output nuget 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 - name: Upload NuGet Package As Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:

View File

@ -6,8 +6,8 @@ public abstract class RaylibActivity : NativeActivity
{ {
protected override void OnCreate(Bundle? savedInstanceState) protected override void OnCreate(Bundle? savedInstanceState)
{ {
base.OnCreate(savedInstanceState);
RaylibSetAndroidCallback(OnReady); RaylibSetAndroidCallback(OnReady);
base.OnCreate(savedInstanceState);
} }
protected abstract void OnReady(); protected abstract void OnReady();