common/utils library

Functions

colorHex(Color color) String
escapeString(String input) String
Escapes special characters in strings for C++ code
makeRunnerDir(String origin, [String? dirPath]) Directory
Make the runner directory and return the Directory object. Handles cases where origin or dirPath ends with '/runner' or '/runner/'.
parseColor(String colorString) → Color
Parse color string to standardized Color object Supports formats:
requireCMakeFile(String dirPath) Directory
Checks if the given directory contains 'native_splash_screen.cmake'. If the file exists, returns the Directory object. Otherwise, logs an error and exits the process.