MacosPlatformFileEditor class
MacosPlatformFileEditor is a class that extends AbstractPlatformFileEditor. It is responsible for editing macOS platform files.
Attributes:
- macosAppInfoxprojPath: Path to the macOS AppInfo.xcconfig file.
- Inheritance
-
- Object
- AbstractPlatformFileEditor
- MacosPlatformFileEditor
Constructors
- MacosPlatformFileEditor({RenamePlatform platform = RenamePlatform.macOS})
- Creates an instance of MacosPlatformFileEditor.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- macosAppInfoxprojPath ↔ String
-
getter/setter pair
- platform → RenamePlatform
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAppName(
) → Future< String?> -
Fetches the app name from the macOS AppInfo.xcconfig file.
override
-
getBundleId(
) → Future< String?> -
Fetches the bundle ID from the macOS AppInfo.xcconfig file.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readFileAsLineByline(
{required String filePath}) → Future< List< String?> > -
Reads a file line by line.
Parameters:
inherited
-
setAppName(
{required String appName}) → Future< String?> -
Sets the app name in the macOS AppInfo.xcconfig file.
override
-
setBundleId(
{required String bundleId}) → Future< String?> -
Sets the bundle ID in the macOS AppInfo.xcconfig file.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
writeFile(
{required String filePath, required String content}) → Future< File> -
Writes the provided
content
to a file at the specifiedfilePath
. Parameters:inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited