Add Android build target and responsive/drawer UI for phones and tablets
Restructure src-tauri into lib+bin (Tauri 2's mobile requirement — Android embeds the app as a JNI cdylib, which needs a [lib] target with tauri::mobile_entry_point) and scaffold gen/android/ via `cargo tauri android init`. Builds and packages cleanly to a debug APK/AAB. pcd_viewer.html: the 284px docked sidebar becomes a slide-in drawer under 768px viewport width (toggled from the rail, closes on backdrop tap), the rail sheds its subtitle and secondary telemetry chips under 480px, and the camera panel caps its width to the viewport. Also disables native pinch-zoom (the canvas has its own via OrbitControls) and sets overscroll-behavior:none for a full-bleed touch surface.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
plugins {
|
||||
`kotlin-dsl`
|
||||
}
|
||||
|
||||
gradlePlugin {
|
||||
plugins {
|
||||
create("pluginsForCoolKids") {
|
||||
id = "rust"
|
||||
implementationClass = "RustPlugin"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly(gradleApi())
|
||||
implementation("com.android.tools.build:gradle:8.11.0")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user