mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-09 07:55:52 +01:00
- 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.
56 lines
1.3 KiB
Plaintext
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)
|
|
}
|