Skip to content

Commit ea20745

Browse files
committed
Added --port option for webview bootstrap
1 parent ee24ac4 commit ea20745

File tree

1 file changed

+6
-0
lines changed
  • pythonforandroid/bootstraps/webview/build

1 file changed

+6
-0
lines changed

pythonforandroid/bootstraps/webview/build/build.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ def make_package(args):
351351
'custom_rules.xml',
352352
args=args)
353353

354+
render('WebViewLoader.tmpl.java',
355+
'src/org/kivy/android/WebViewLoader.java',
356+
args=args)
357+
354358
with open(join(dirname(__file__), 'res',
355359
'values', 'strings.xml')) as fileh:
356360
lines = fileh.read()
@@ -444,6 +448,8 @@ def parse_args(args=None):
444448
'NAME:PATH_TO_PY[:foreground]')
445449
ap.add_argument('--add-source', dest='extra_source_dirs', action='append',
446450
help='Include additional source dirs in Java build')
451+
ap.add_argument('--port', help='The port on localhost that the WebView will access',
452+
default='5000')
447453

448454
if args is None:
449455
args = sys.argv[1:]

0 commit comments

Comments
 (0)