diff --git a/and_proj/app/build.gradle b/and_proj/app/build.gradle
index 6120a51..8140fb0 100644
--- a/and_proj/app/build.gradle
+++ b/and_proj/app/build.gradle
@@ -12,14 +12,14 @@ android {
defaultConfig {
applicationId 'com.khronos.vulkan_samples'
namespace "com.khronos.vulkan_samples"
- minSdk 30
+ minSdk 28
targetSdk 35
versionCode 1
versionName "1.0"
externalNativeBuild {
cmake {
- abiFilters.addAll( 'arm64-v8a' )
+ abiFilters.addAll( 'arm64-v8a', 'x86_64')
arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_static', '-DVKB_VALIDATION_LAYERS=OFF'
}
}
diff --git a/app/android/AndroidManifest.xml b/app/android/AndroidManifest.xml
index 92ad2e1..86f3efe 100644
--- a/app/android/AndroidManifest.xml
+++ b/app/android/AndroidManifest.xml
@@ -44,6 +44,10 @@
android:value="@string/native_lib_name" />
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/android/src/context.cpp b/components/android/src/context.cpp
index 8f25d94..c2042ce 100644
--- a/components/android/src/context.cpp
+++ b/components/android/src/context.cpp
@@ -16,7 +16,7 @@
*/
#include "android/context.hpp"
-
+#include "core/util/logging.hpp"
#include
extern "C"
@@ -101,4 +101,10 @@ Java_com_khronos_vulkan_1samples_MainActivity_sendArgumentsToPlatform(JNIEnv *en
}
vkb::AndroidPlatformContext::android_arguments = args;
+}
+extern "C"
+JNIEXPORT void JNICALL
+Java_com_khronos_vulkan_1samples_MainActivity_nativeButtonClicked(JNIEnv *env, jobject thiz) {
+ // TODO: implement nativeButtonClicked()
+ LOGI("call MainActivity_nativeButtonClicked.");
}
\ No newline at end of file