Flutter Engine
The Flutter Engine
Functions
make_universal_apk Namespace Reference

Functions

def make_apk (opts)
 
def main ()
 

Function Documentation

◆ main()

def make_universal_apk.main ( )

Definition at line 50 of file make_universal_apk.py.

50def main():
52 if options.error:
53 sys.stderr.write(options.error + __doc__)
54 sys.exit(1)
55 options.write(sys.stdout)
56 make_apk(options)
57

◆ make_apk()

def make_universal_apk.make_apk (   opts)

Definition at line 36 of file make_universal_apk.py.

36def make_apk(opts):
37 assert '/' in [os.sep, os.altsep] # 'a/b' over os.path.join('a', 'b')
38
39 skia_dir = os.path.dirname(__file__) + '/../..'
40 create_apk.makedirs(opts.build_dir)
41 assets_dir = skia_dir + '/platform_tools/android/apps/skqp/src/main/assets'
42 resources_path = assets_dir + '/resources'
43
44 with create_apk.RemoveFiles(resources_path): # always clean up
45 create_apk.remove(resources_path)
46 os.symlink('../../../../../../../resources', resources_path)
47
49
def makedirs(dst)
Definition: create_apk.py:77
def remove(p)
Definition: create_apk.py:70
def create_apk(opts)
Definition: create_apk.py:190