Skip to content

Commit

Permalink
Merge pull request #128 from smoogipoo/fix-android-tests
Browse files Browse the repository at this point in the history
Fix android tests
  • Loading branch information
smoogipoo committed Aug 7, 2024
2 parents 26865ce + d260e73 commit b8b1aa1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SDL3-CS.Tests.Android/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Java.Lang;
using Org.Libsdl.App;
using Org.Libsdl.App;

namespace SDL.Tests.Android
{
Expand All @@ -8,6 +7,6 @@ public class MainActivity : SDLActivity
{
protected override string[] GetLibraries() => ["SDL3"];

protected override IRunnable CreateSDLMainRunnable() => new Runnable(Program.Main);
protected override void Main() => Program.Main();
}
}
15 changes: 15 additions & 0 deletions SDL3-CS.Tests.Android/SDL3-CS.Tests.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,19 @@
<ProjectReference Include="..\SDL3-CS.Android\SDL3-CS.Android.csproj"/>
</ItemGroup>

<ItemGroup>
<AndroidNativeLibrary Include="$(MSBuildThisFileDirectory)..\native\android\armeabi-v7a\libSDL3.so">
<Abi>armeabi-v7a</Abi>
</AndroidNativeLibrary>
<AndroidNativeLibrary Include="$(MSBuildThisFileDirectory)..\native\android\arm64-v8a\libSDL3.so">
<Abi>arm64-v8a</Abi>
</AndroidNativeLibrary>
<AndroidNativeLibrary Include="$(MSBuildThisFileDirectory)..\native\android\x86\libSDL3.so">
<Abi>x86</Abi>
</AndroidNativeLibrary>
<AndroidNativeLibrary Include="$(MSBuildThisFileDirectory)..\native\android\x86_64\libSDL3.so">
<Abi>x86_64</Abi>
</AndroidNativeLibrary>
</ItemGroup>

</Project>

0 comments on commit b8b1aa1

Please sign in to comment.