Vivek 5bf0f792cd
Reorganized Android Vulkan example project structure
- Moved Gradle build files, wrapper, and project settings into a new 'android' subdirectory.
- Relocated main.cpp and CMakeLists.txt to the example root directory.
- Simplified AndroidManifest.xml and removed redundant resource files (colors, themes, mipmaps).
- Updated CMake configuration to reflect the new file locations.
- Relocated JNI validation layers.
2026-05-16 14:35:17 +05:30

56 lines
1.3 KiB
Plaintext

plugins {
alias(libs.plugins.android.application)
}
android {
ndkVersion = "29.0.14206865"
namespace = "imgui.example.android.vulkan"
compileSdk {
version = release(37)
}
defaultConfig {
applicationId = "imgui.example.android.vulkan"
minSdk = 30
targetSdk = 37
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
@Suppress("UnstableApiUsage")
externalNativeBuild {
cmake {
cppFlags += "-DVK_USE_PLATFORM_ANDROID_KHR"
arguments += "-DANDROID_STL=c++_static"
}
}
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
externalNativeBuild {
cmake {
path = file("../../CMakeLists.txt")
version = "3.22.1"
}
}
}
dependencies {
implementation(libs.androidx.appcompat)
implementation(libs.androidx.core.ktx)
implementation(libs.material)
}