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
originordirPathends with '/runner' or '/runner/'. -
parseColor(
String colorString) → Color -
Parse color string to standardized
Colorobject 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.