I’m have build my app using SDL 2.0.8 to app bundle format and publish it to google play for internal testing where bundletool creates different apks automatically.
The proc getMainSharedObject does not changed after SDL 2.0.8 (I’ve checked last sources and I see it)
protected String getMainSharedObject() {
String library;
String[] libraries = SDLActivity.mSingleton.getLibraries();
if (libraries.length > 0) {
library = “lib” + libraries[libraries.length - 1] + “.so”;
} else {
library = “libmain.so”;
}
//return library;
// http://hg.libsdl.org/SDL/rev/d9e69bf4c6d4
return getContext().getApplicationInfo().nativeLibraryDir + “/” + library;
}
After installing and starting app it crashes and i see logs
D:\Repos\Projects\DotLines\proj.android>call adb -s 1bc4e471 logcat | findstr /i sdl
07-23 17:51:50.938 10407 10407 V SDL : Device: beryllium
07-23 17:51:50.938 10407 10407 V SDL : Model: POCOPHONE F1
07-23 17:51:50.938 10407 10407 V SDL : onCreate()
07-23 17:51:50.944 10407 10407 D SDL : Relinker library load success: c++_shared
07-23 17:51:50.946 10407 10407 D SDL : Relinker library load success: SDL2
07-23 17:51:50.949 10407 10407 D SDL : Relinker library load success: SDL2_image
07-23 17:51:50.954 10407 10407 D SDL : Relinker library load success: main
07-23 17:51:50.972 10407 10407 V SDL : onResume()
07-23 17:51:50.975 10407 10407 D SDL : onResume MainActivity()
07-23 17:51:50.975 10407 10407 D SDL : signInSilently()
07-23 17:51:51.016 10407 10407 V SDL : surfaceCreated()
07-23 17:51:51.016 10407 10407 V SDL : surfaceChanged()
07-23 17:51:51.016 10407 10407 V SDL : pixel format RGB_565
07-23 17:51:51.018 10407 10407 V SDL : Window size: 1080x2026
07-23 17:51:51.020 10407 10464 V SDL : Running main function SDL_main from library /data/app/org.akk0rdsdk.dotlines-Ziozq08gee58-ie5RaPGBA==/lib/arm64/libmain.so
07-23 17:51:51.021 10407 10464 E SDL : nativeRunMain(): Couldn't load library /data/app/org.akk0rdsdk.dotlines-Ziozq08gee58-ie5RaPGBA==/lib/arm64/libmain.so
07-23 17:51:51.021 10407 10464 V SDL : Finished main function
07-23 17:51:51.084 10407 10407 V SDL : onWindowFocusChanged(): true
07-23 17:51:51.087 10407 10407 V SDL : onPause()
07-23 17:51:51.123 10407 10407 V SDL : onWindowFocusChanged(): false
07-23 17:51:51.133 10407 10407 V SDL : surfaceDestroyed()
07-23 17:51:51.709 10407 10407 D SDL : signInSilently(): success
07-23 17:51:51.709 10407 10407 D SDL : onConnected(): connected to Google APIs
07-23 17:51:51.858 10407 10407 V SDL : onDestroy()