Refactor android notification example to fit in qtbase. The example demonstrates how to use JNI and work with Java APIs and add custom Java code to a Qt app targeting Android. Task-number: QTBUG-84382 Change-Id: I5fcbbf77b36eb47a0acaa13835ef3d773e63885c Reviewed-by: Rami Potinkara <rami.potinkara@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
21 lines
451 B
Prolog
21 lines
451 B
Prolog
QT += core gui
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
SOURCES += \
|
|
main.cpp \
|
|
notificationclient.cpp
|
|
|
|
HEADERS += \
|
|
notificationclient.h
|
|
|
|
RESOURCES += \
|
|
main.qrc
|
|
|
|
target.path = $$[QT_INSTALL_EXAMPLES]/corelib/platform/androidnotifier
|
|
INSTALLS += target
|
|
|
|
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
|
|
OTHER_FILES += \
|
|
android/src/org/qtproject/example/androidnotifier/NotificationClient.java \
|
|
android/AndroidManifest.xml
|