Flutter Engine
The Flutter Engine
Functions | Variables
android_sdk_linux.create Namespace Reference

Functions

def getenv (key)
 
def create_asset (target_dir, android_sdk_root)
 
def main ()
 

Variables

string ENV_VAR = 'ANDROID_SDK_LINUX_SDK_ROOT'
 

Function Documentation

◆ create_asset()

def android_sdk_linux.create.create_asset (   target_dir,
  android_sdk_root 
)
Create the asset.

Definition at line 30 of file create.py.

30def create_asset(target_dir, android_sdk_root):
31 """Create the asset."""
32 dst = os.path.join(target_dir, 'android-sdk')
33 shutil.copytree(android_sdk_root, dst)
34
35
def create_asset(chrome_src_path, browser_executable, target_dir, upload_to_partner_bucket, dm_path)
Definition: create.py:68

◆ getenv()

def android_sdk_linux.create.getenv (   key)

Definition at line 21 of file create.py.

21def getenv(key):
22 val = os.environ.get(key)
23 if not val:
24 print(('Environment variable %s not set; you should run this via '
25 'create_and_upload.py.' % key), file=sys.stderr)
26 sys.exit(1)
27 return val
28
29
def print(*args, **kwargs)
Definition: run_tests.py:49
def getenv(key)
Definition: create.py:47

◆ main()

def android_sdk_linux.create.main ( )

Definition at line 36 of file create.py.

36def main():
37 parser = argparse.ArgumentParser()
38 parser.add_argument('--target_dir', '-t', required=True)
39 args = parser.parse_args()
40 android_sdk_root = getenv(ENV_VAR)
41 create_asset(args.target_dir, android_sdk_root)
42
43

Variable Documentation

◆ ENV_VAR

string android_sdk_linux.create.ENV_VAR = 'ANDROID_SDK_LINUX_SDK_ROOT'

Definition at line 18 of file create.py.