Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / games / voxels / build.gradle.kts

build.gradle.kts35 lines · 1.1 KiBRaw
1plugins {
2 id("common-conventions-app")
3 id("common-conventions-preview-metadata")
4 // Preview-metadata for Layoutlib-renderable Compose ONLY (menus/inventory/
5 // settings overlays in src/screenshotTest). The game screen is a Vulkan
6 // SurfaceView driven by the Rust engine below: Layoutlib can render the
7 // Compose chrome but never the world behind it, so no game render is
8 // previewed or faked — see MetadataPreviews.kt for the documented exception.
9}
10
11launcherIcon {
12 symbol = "view_in_ar"
13}
14
15android {
16 defaultConfig {
17 applicationId = "com.vayunmathur.games.voxels"
18 }
19}
20
21androidComponents {
22 onVariants { variant ->
23 variant.sources.jniLibs?.addStaticSourceDirectory(
24 layout.buildDirectory.dir("rustJniLibs").get().asFile.absolutePath
25 )
26 }
27}
28
29// Full Rust + Vulkan engine (ash) with Matcha texture atlas (16 textures → 64x64)
30rustNativeLib("voxels_engine", "voxels", shaders = listOf("*.vert", "*.frag"))
31
32dependencies {
33 implementation(project(":library:network"))
34 implementation(project(":library:e2ee-p2p"))
35}