SDL2 Android Example
Read article at blog: https://georgik.rocks/tag/sdl2/
- the code is assembled of several pieces available on GitHub
The project is compatible with Gradle 5 & 6. For older version based on Gradle 4 and Android Experimental Plugin, check out branch gradle-4-using-android-experimental-plugin.
Android build Tools are set to v28.0.0 in file settings.gradle. Make sure to download those tools via Android Studio.
- libSDL2_png - derrived from https://github.com/julienr/libpng-android
- applied patch - https://github.com/julienr/libpng-android/issues/6
- renamed to SDL2_png, because of problem with png library in API level 19 - http://georgik.rocks/sdl2-for-android-api-level-19/
- libSDL2_jpeg - derrived from https://www.libsdl.org/projects/SDL_image/libs/
- renamed to SDL2_jpeg from jpeg, because of library name collision in Android https://stackoverflow.com/questions/11613040/why-does-jpeg-decompress-create-crash-without-error-message