Flutter Engine
The Flutter Engine
Functions | Variables
run_gradle Namespace Reference

Functions

def main ()
 

Variables

 SCRIPT_PATH = os.path.dirname(os.path.realpath(__file__))
 
string BAT = '.bat' if sys.platform.startswith(('cygwin', 'win')) else ''
 
 GRADLE_BIN
 
 ANDROID_HOME
 
 JAVA_HOME
 

Function Documentation

◆ main()

def run_gradle.main ( )

Definition at line 39 of file run_gradle.py.

39def main():
40 if not os.path.isdir(ANDROID_HOME):
41 raise Exception('%s (ANDROID_HOME) is not a directory' % ANDROID_HOME)
42
43 android_dir = sys.argv[1]
44 subprocess.check_output(
45 args=[GRADLE_BIN] + sys.argv[2:],
46 cwd=android_dir,
47 env=dict(os.environ, ANDROID_HOME=ANDROID_HOME, JAVA_HOME=JAVA_HOME),
48 )
49 return 0
50
51
def main()
Definition: run_gradle.py:39

Variable Documentation

◆ ANDROID_HOME

run_gradle.ANDROID_HOME
Initial value:
1= os.path.normpath(
2 os.path.join(SCRIPT_PATH, '..', '..', 'third_party', 'android_tools', 'sdk')
3)

Definition at line 23 of file run_gradle.py.

◆ BAT

string run_gradle.BAT = '.bat' if sys.platform.startswith(('cygwin', 'win')) else ''

Definition at line 18 of file run_gradle.py.

◆ GRADLE_BIN

run_gradle.GRADLE_BIN
Initial value:
1= os.path.normpath(
2 os.path.join(SCRIPT_PATH, '..', '..', 'third_party', 'gradle', 'bin', 'gradle%s' % BAT)
3)

Definition at line 19 of file run_gradle.py.

◆ JAVA_HOME

run_gradle.JAVA_HOME
Initial value:
1= os.path.normpath(
2 os.path.join(
3 SCRIPT_PATH, '..', '..', '..', 'third_party', 'java', 'openjdk', 'Contents', 'Home'
4 )
5 )

Definition at line 28 of file run_gradle.py.

◆ SCRIPT_PATH

run_gradle.SCRIPT_PATH = os.path.dirname(os.path.realpath(__file__))

Definition at line 16 of file run_gradle.py.