//go:build !android // +build !android package main import ( "os" "pad/internal/editor" "path/filepath" "gioui.org/io/event" ) var ( startpath = "." ) // sessionFilePath is where the relaunch session file (spec ยง7) lives, off // Android: $HOME/.pad/session.json, falling back to the temp dir when there // is no home. func sessionFilePath() string { if d, err := os.UserHomeDir(); err == nil && d != "" { return filepath.Join(d, ".pad", "session.json") } return filepath.Join(os.TempDir(), "pad", "session.json") } func handleEvent(e event.Event) {} func OpenFile(path string) {} // SetGestureExclusions is a no-op off Android (system gesture exclusion // rects are an Android API 29+ feature). func SetGestureExclusions(rects [][4]int) {} // activeLogic exists on the Android build (the onStop JNI hook, see // impl_android.go); on other platforms it is unused but main assigns it. var activeLogic *editor.Logic var _ = activeLogic // keep staticcheck quiet on non-Android builds