Android: un-TP QT_ANDROID_PACKAGE_NAME and add a snippet

Fixes: QTBUG-126465
Change-Id: I04d95640ba05696879b1ce75902f916e4b03b6b3
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
(cherry picked from commit b30edf6fe3701c5de8d175bab6106922ec312267)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Assam Boudjelthia 2024-08-22 15:20:30 +03:00 committed by Qt Cherry-pick Bot
parent 03bf2cba3f
commit 6c3e5b08c4

View File

@ -256,12 +256,17 @@ CMake will attempt to use the latest installed version.
\summary {The app's package name.}
\cmakepropertysince 6.8
\preliminarycmakeproperty
\cmakepropertyandroidonly
Specifies the app's package name. This is usually a unique dot separated
name for the app, that will be used to identify the app on devices or in
the Play Store. For example, "org.qtproject.example.gallery".
the Play Store. For example, "org.qtproject.gallery".
\badcode
set_target_properties(${target} PROPERTIES
QT_ANDROID_PACKAGE_NAME "org.qtproject.gallery"
)
\endcode
The package name set by this property is passed to the \c build.gradle file
as a \c namespace property, instead of \c AndroidManifest.xml, since the