Files
Rubén Pérez Alonso 1de8d27ea8 Improve flexibility in Android custom builds (#12150)
* Add custom AndroidManifest.xml file

The default AndroidManifest.xml found in android/ but with the app name
changed to "Custom QGroundControl"

* Improve flexibility in Android custom builds

Modified the build system to prioritize files under custom/android/ over
android/ for Android deployment in custom builds.

If custom/android/ exists and contains files, these are overlaid onto
the default android/ files, creating a combined Android package
deployment template in the build directory. This enables customization
of any aspect of the Android deployment in custom builds without
modifying the upstream android/ directory. Additionally, any changes in
either directory will trigger the CMake configuration step in order to
update the combined directory.

This change also restores support for the custom Android icons under
custom/android/, which had been disabled during the transition to CMake.

Additional note:
New CMake properties for Android deployment (including
QT_ANDROID_APP_NAME, QT_ANDROID_APP_ICON, and QT_ANDROID_PACKAGE_NAME)
are being added to Qt, which will streamline the more basic aspects of
Android deployment customization even further. But this current solution
will probably remain useful for cases where more extensive customization
is required.
2024-11-29 15:27:49 -05:00
..