Flutter Engine
The Flutter Engine
|
Public Member Functions | |
__init__ (self, module, app_name) | |
device_path_join (self, *args) | |
copy_directory_contents_to_device (self, host_dir, device_dir) | |
copy_directory_contents_to_host (self, device_dir, host_dir) | |
copy_file_to_device (self, host_path, device_path) | |
create_clean_device_dir (self, path) | |
create_clean_host_dir (self, path) | |
read_file_on_device (self, path, **kwargs) | |
remove_file_on_device (self, path) | |
install (self) | |
cleanup_steps (self) | |
step (self, name, cmd, **unused_kwargs) | |
Public Attributes | |
app_name | |
module | |
m | |
device_dirs | |
host_dirs | |
Protected Member Functions | |
_run (self, title, cmd, infra_step=False, **kwargs) | |
_py (self, title, script, infra_step=True, args=()) | |
Protected Attributes | |
_chrome_path | |
Definition at line 26 of file default.py.
flavor.default.DefaultFlavor.__init__ | ( | self, | |
module, | |||
app_name | |||
) |
Reimplemented in flavor.android.AndroidFlavor, flavor.chromebook.ChromebookFlavor, flavor.ios.iOSFlavor, flavor.ssh.SSHFlavor, and flavor.valgrind.ValgrindFlavor.
Definition at line 27 of file default.py.
|
protected |
Definition at line 120 of file default.py.
|
protected |
Reimplemented in flavor.ios.iOSFlavor.
Definition at line 116 of file default.py.
flavor.default.DefaultFlavor.cleanup_steps | ( | self | ) |
Run any device-specific cleanup steps.
Reimplemented in flavor.android.AndroidFlavor.
Definition at line 112 of file default.py.
flavor.default.DefaultFlavor.copy_directory_contents_to_device | ( | self, | |
host_dir, | |||
device_dir | |||
) |
Like shutil.copytree(), but for copying to a connected device.
Reimplemented in flavor.android.AndroidFlavor, flavor.ios.iOSFlavor, and flavor.chromebook.ChromebookFlavor.
Definition at line 60 of file default.py.
flavor.default.DefaultFlavor.copy_directory_contents_to_host | ( | self, | |
device_dir, | |||
host_dir | |||
) |
Like shutil.copytree(), but for copying from a connected device.
Reimplemented in flavor.android.AndroidFlavor, flavor.ios.iOSFlavor, and flavor.chromebook.ChromebookFlavor.
Definition at line 70 of file default.py.
flavor.default.DefaultFlavor.copy_file_to_device | ( | self, | |
host_path, | |||
device_path | |||
) |
Like shutil.copyfile, but for copying to a connected device.
Reimplemented in flavor.android.AndroidFlavor, flavor.ios.iOSFlavor, and flavor.ssh.SSHFlavor.
Definition at line 80 of file default.py.
flavor.default.DefaultFlavor.create_clean_device_dir | ( | self, | |
path | |||
) |
Like shutil.rmtree() + os.makedirs(), but on a connected device.
Reimplemented in flavor.android.AndroidFlavor, flavor.ios.iOSFlavor, and flavor.ssh.SSHFlavor.
Definition at line 90 of file default.py.
flavor.default.DefaultFlavor.create_clean_host_dir | ( | self, | |
path | |||
) |
Convenience function for creating a clean directory.
Definition at line 94 of file default.py.
flavor.default.DefaultFlavor.device_path_join | ( | self, | |
* | args | ||
) |
Like os.path.join(), but for paths on a connected device.
Definition at line 56 of file default.py.
flavor.default.DefaultFlavor.install | ( | self | ) |
Run device-specific installation steps.
Reimplemented in flavor.android.AndroidFlavor, flavor.chromebook.ChromebookFlavor, flavor.ios.iOSFlavor, and flavor.ssh.SSHFlavor.
Definition at line 108 of file default.py.
flavor.default.DefaultFlavor.read_file_on_device | ( | self, | |
path, | |||
** | kwargs | ||
) |
Reads the specified file.
Reimplemented in flavor.android.AndroidFlavor, flavor.ios.iOSFlavor, and flavor.ssh.SSHFlavor.
Definition at line 100 of file default.py.
flavor.default.DefaultFlavor.remove_file_on_device | ( | self, | |
path | |||
) |
Removes the specified file.
Reimplemented in flavor.android.AndroidFlavor, flavor.ios.iOSFlavor, and flavor.ssh.SSHFlavor.
Definition at line 104 of file default.py.
flavor.default.DefaultFlavor.step | ( | self, | |
name, | |||
cmd, | |||
** | unused_kwargs | ||
) |
Reimplemented in flavor.android.AndroidFlavor, flavor.ios.iOSFlavor, flavor.ssh.SSHFlavor, and flavor.valgrind.ValgrindFlavor.
Definition at line 124 of file default.py.
|
protected |
Definition at line 40 of file default.py.
flavor.default.DefaultFlavor.app_name |
Definition at line 30 of file default.py.
flavor.default.DefaultFlavor.device_dirs |
Definition at line 41 of file default.py.
flavor.default.DefaultFlavor.host_dirs |
Definition at line 54 of file default.py.
flavor.default.DefaultFlavor.m |
Definition at line 39 of file default.py.
flavor.default.DefaultFlavor.module |
Definition at line 35 of file default.py.