WhiteLabelService class
Methods
applyClientFonts (String clientName , String clientAssetsPath )
→ Future <bool >
Swaps the project fonts for the client's and updates the pubspec
fonts: section. Returns true when fonts were changed.
cleanAndroidIconCache ()
→ Future <void >
Fixes a specific Android adaptive icon bug.
findClientFontsDir (String clientName , String clientAssetsPath )
→ Directory ?
Locates the client's fonts directory. clients/<client>/fonts wins,
then <ASSETS_PATH>/fonts, matching what doctor validates.
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
outputDir (String clientName )
→ Directory
Folder that collects finished artifacts, one subfolder per client.
renameOutput ({required String clientName , required String version , required String type })
→ Future <File >
Moves the final .apk, .aab or .ipa to build/udara/<client>/, named
<client>_v<version>.<type>. Keeping artifacts out of Flutter's own
output folders means a later build (another client in a batch, or the
next run) cannot overwrite or clean them up.
syncBrandingAssets (String clientName , String sourcePath )
→ Future <void >
Copies client-specific branding images into the active assets folder.
toString ()
→ String
A string representation of this object.
inherited
Constants
brandingDir
→ const String
Where the active client's branding assets are copied.
defaultClientName
→ const String
The client whose branding and env act as the fallback for plain
flutter run; its branding folder is never removed by cleanup.
managedMarkerFile
→ const String
Marker written into branding folders the CLI owns, so cleanup never
deletes a folder a developer created by hand.