ConfigService class
Methods
-
addInitialAssetEntries()
→ Future<void>
-
-
appendBuildHistory({required String client, required String platform, required String type, required String? version, required bool success, required Duration duration, String? errorMessage, String? artifactPath})
→ Future<void>
-
Appends a build record to the project-local history file, keeping only
the most recent
_maxHistoryEntries. Newest entries are stored first.
-
clearBackups()
→ Future<void>
-
-
clearBuildHistory()
→ Future<bool>
-
Deletes the build history file. Returns true if a file was removed.
-
copyToRootEnv(File sourceEnv, {bool isTest = false})
→ Future<File>
-
Copies a client env file to the root .env for the Flutter build.
-
createBackup(File file)
→ Future<File>
-
Creates a backup of a file (.bak extension). Returns the backup file.
-
getPubspecVersion()
→ Future<String>
-
-
loadBuildHistory()
→ Future<List<Map<String, dynamic>>>
-
Loads recorded build history, newest first. Returns an empty list if
no history file exists yet.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
parseEnvFile(File envFile)
→ Future<Map<String, String>>
-
Parses an environment file into a Map.
-
restoreBackup(File originalFile)
→ Future<void>
-
Restores a file from its .bak version and deletes the backup.
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateDevelopmentTeam(String projectRoot, {String? teamId})
→ void
-
-
updatePubspecAssets({required String clientAssetPath, })
→ Future<void>
-
Specifically handles the complex 'assets' list in pubspec.yaml
-
updatePubspecFonts(List fontList)
→ Future<void>
-
-
updateYamlValue(File yamlFile, List<Object> path, Object newValue)
→ Future<void>
-
Safely updates a value in a YAML file using YamlEditor.
Preserves comments and formatting.