mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 15:26:40 +00:00
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().
12 lines
307 B
Go
12 lines
307 B
Go
//go:build android
|
|
|
|
package android
|
|
|
|
// PlatformFiles groups paths to files used internally by the engine that can't be created/modified
|
|
// at their default locations due to android OS restrictions.
|
|
type PlatformFiles interface {
|
|
ConfigurationFilePath() string
|
|
StateFilePath() string
|
|
CacheDir() string
|
|
}
|