Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions | Variables
android_sdk_linux.create Namespace Reference

Functions

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

Variables

str ENV_VAR = 'ANDROID_SDK_LINUX_SDK_ROOT'
 

Detailed Description

Create the asset.

Function Documentation

◆ create_asset()

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

◆ getenv()

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
void print(void *str)
Definition bridge.cpp:126

◆ main()

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
Definition main.py:1

Variable Documentation

◆ ENV_VAR

str android_sdk_linux.create.ENV_VAR = 'ANDROID_SDK_LINUX_SDK_ROOT'

Definition at line 18 of file create.py.