From 6c3e5b08c4b3263f9ee06a7ce4c8ae13c90c7494 Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Thu, 22 Aug 2024 15:20:30 +0300 Subject: [PATCH] Android: un-TP QT_ANDROID_PACKAGE_NAME and add a snippet Fixes: QTBUG-126465 Change-Id: I04d95640ba05696879b1ce75902f916e4b03b6b3 Reviewed-by: Alexey Edelev (cherry picked from commit b30edf6fe3701c5de8d175bab6106922ec312267) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/doc/src/cmake/cmake-properties.qdoc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/corelib/doc/src/cmake/cmake-properties.qdoc b/src/corelib/doc/src/cmake/cmake-properties.qdoc index ed4ed218481..1195f2784c3 100644 --- a/src/corelib/doc/src/cmake/cmake-properties.qdoc +++ b/src/corelib/doc/src/cmake/cmake-properties.qdoc @@ -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