The current code is ... a mess. resolveFileUrl and resolveFilePath do very similar things, except that one returns a path instead of a URL. resolveFileUrl also didn't include a qrc path for static builds, instead there was a similar ifdef before the call to it.
Compiles when included in an Android Debug build but when attempting to run an application I hit an immediate crash on startup with:
QQmlApplicationEngine failed to load component qrc:/qml/main.qml:8:1: Type Kirigami.ApplicationWindow unavailable qrc:/android_rcc_bundle/qml/org/kde/kirigami.2/ApplicationWindow.qml: No such file or directory
Trying an Android Release compile still fails on the pre-exisiting error of being unable to include <qrc_kirigami.cpp> in
#ifdef KIRIGAMI_BUILD_TYPE_STATIC #include <qrc_kirigami.cpp> #endif
So unfortunately nothing is better and one side of things is worse, from the perspective of Android + QMake :(