This repository was archived by the owner on Mar 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 9
9
#include < QDebug>
10
10
#endif
11
11
12
- #ifdef Q_OS_ANDROID
12
+ #if defined( Q_OS_ANDROID) && !defined(NO_JNI_ONLOAD)
13
13
JNIEXPORT jint JNI_OnLoad (JavaVM* vm, void *) {
14
14
Q_UNUSED (vm);
15
- qDebug (" NativeInterface::JNI_OnLoad()" );
16
-
17
15
// It must call this function within JNI_OnLoad to enable System Dispatcher
18
16
AndroidNative::SystemDispatcher::registerNatives ();
19
-
20
17
return JNI_VERSION_1_6;
21
18
}
22
19
#endif
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ INCLUDEPATH += $$PWD
14
14
DISTFILES += \
15
15
$$PWD /android/androidutils.gradle \
16
16
$$PWD /android/src/de/skycoder42/androidutils/AlarmReceiver.java \
17
- $$PWD /android/src/de/skycoder42/androidutils/AndroidUtils.java
17
+ $$PWD /android/src/de/skycoder42/androidutils/AndroidUtils.java
18
18
19
19
android {
20
20
isEmpty (QPM_ROOT ):QPM_ROOT = $$_PRO_FILE_PWD_ /vendor
@@ -29,3 +29,5 @@ android {
29
29
export(first.depends)
30
30
QMAKE_EXTRA_TARGETS += first copygradle setupnative setupgradle
31
31
}
32
+
33
+ noJniOnLoad: DEFINES += NO_JNI_ONLOAD
You can’t perform that action at this time.
0 commit comments