From 834e97ce46c9e322ad6d5b7fc9bf5709ce11a401 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 31 Jan 2023 11:55:45 +0100 Subject: [PATCH] Add android manifest and java files to example These files should not change the outcome of the build process, but are merely added to better support the CMake and Android integration in Qt Creator. Also those files were previously listed in the OTHER_FILES section of the qmake project files. Change-Id: Id3d403130ee8800ed6b0877f9f1c3dd1f28b46b7 Reviewed-by: Assam Boudjelthia --- examples/corelib/permissions/CMakeLists.txt | 1 + examples/corelib/platform/androidnotifier/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/examples/corelib/permissions/CMakeLists.txt b/examples/corelib/permissions/CMakeLists.txt index 075420e5dea..39a207b1cec 100644 --- a/examples/corelib/permissions/CMakeLists.txt +++ b/examples/corelib/permissions/CMakeLists.txt @@ -17,6 +17,7 @@ qt_standard_project_setup() qt_add_executable(permissions MANUAL_FINALIZATION main.cpp + android/AndroidManifest.xml ) set_target_properties(permissions PROPERTIES diff --git a/examples/corelib/platform/androidnotifier/CMakeLists.txt b/examples/corelib/platform/androidnotifier/CMakeLists.txt index e05afc29014..e5271edd799 100644 --- a/examples/corelib/platform/androidnotifier/CMakeLists.txt +++ b/examples/corelib/platform/androidnotifier/CMakeLists.txt @@ -23,6 +23,8 @@ qt_add_executable(androidnotifier main.cpp notificationclient.cpp notificationclient.h + android/src/org/qtproject/example/androidnotifier/NotificationClient.java + android/AndroidManifest.xml ) target_link_libraries(androidnotifier PRIVATE