changes for qt6-Android

- QT += gui
- QT += androidextras ==> only for Qt5
- QAndroidJniEnvironment ==> QJniEnvironment
- QAndroidJniObject ==> QJniObject
- QtAndroid::runOnAndroidThread ==> Qt5
- QNativeInterface::QAndroidApplication::runOnAndroidMainThread ==> Qt6

Signed-off-by: Jonathan Bagg <drwho@infidigm.net>
This commit is contained in:
mariuszmaximus
2023-11-20 18:58:51 +01:00
committed by Jonathan Bagg
parent a2b907b95f
commit 9fbb8dcbc1
3 changed files with 35 additions and 2 deletions

View File

@@ -122,7 +122,10 @@ ubports: {
}
android: {
QT += androidextras
lessThan(QT_MAJOR_VERSION, 6) {
QT += androidextras
}
QT += gui
HEADERS += $$PWD/qzeroconf.h $$PWD/androidnsd_p.h
SOURCES += $$PWD/androidnsd.cpp
DISTFILES += $$PWD/QZeroConfNsdManager.java