Fix debug bundle temp file creation on Android

Use app-provided cache directory for os.CreateTemp instead of
os.TempDir() which resolves to /data/local/tmp/ on Android — a
directory not writable by regular apps.

Thread TempDir through GeneratorDependencies -> BundleGenerator and
MobileDependency -> EngineConfig so the Android client can pass its
cache directory from PlatformFiles.CacheDir().
This commit is contained in:
Zoltán Papp
2026-04-14 18:38:26 +02:00
parent 4eed459f27
commit b3178255c0
6 changed files with 18 additions and 3 deletions

View File

@@ -7,4 +7,5 @@ package android
type PlatformFiles interface {
ConfigurationFilePath() string
StateFilePath() string
CacheDir() string
}