AndroidPlatformFileEditor class

AndroidPlatformFileEditor is a class that extends AbstractPlatformFileEditor and provides methods to edit Android platform files. Attributes:

Inheritance

Constructors

AndroidPlatformFileEditor({RenamePlatform platform = RenamePlatform.android})
Creates an instance of AndroidPlatformFileEditor. Parameters:

Properties

androidAppBuildGradlePath String
final
androidManifestPath String
final
hashCode int
The hash code for this object.
no setterinherited
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 Android Manifest file. Returns: Future<String?>, the name of the application.
override
getBundleId() Future<String?>
Fetches the bundle ID from the Android App Build Gradle file. Returns: Future<String?>, the Bundle ID of the application.
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?>
Changes the app name in the Android Manifest file to the provided appName. Parameters:
override
setBundleId({required String bundleId}) Future<String?>
Changes the Bundle ID in the Android App Build Gradle file to the provided bundleId. Parameters:
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 specified filePath. Parameters:
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited