@@ -483,7 +483,7 @@ def add_parser(subparsers, *args, **kwargs):
483
483
help = 'Symlink the dist instead of copying' )
484
484
485
485
parser_packaging = argparse .ArgumentParser (
486
- parents = [generic_parser ],
486
+ parents = [generic_parser ],
487
487
add_help = False ,
488
488
description = 'common options for packaging (apk, aar)' )
489
489
@@ -528,12 +528,12 @@ def add_parser(subparsers, *args, **kwargs):
528
528
'--signkeypw' , dest = 'signkeypw' , action = 'store' , default = None ,
529
529
help = 'Password for key alias' )
530
530
531
- parser_aar = add_parser (
531
+ add_parser (
532
532
subparsers ,
533
533
'aar' , help = 'Build an AAR' ,
534
534
parents = [parser_packaging ])
535
535
536
- parser_apk = add_parser (
536
+ add_parser (
537
537
subparsers ,
538
538
'apk' , help = 'Build an APK' ,
539
539
parents = [parser_packaging ])
@@ -993,7 +993,7 @@ def _build_package(self, args, package_type):
993
993
self .hook ("before_apk_build" )
994
994
os .environ ["ANDROID_API" ] = str (self .ctx .android_api )
995
995
build = imp .load_source ('build' , join (dist .dist_dir , 'build.py' ))
996
- build_args = build .parse_args (args .unknown_args ) # this call triggers build.make_package()
996
+ build_args = build .parse_args (args .unknown_args ) # this call triggers build.make_package()
997
997
998
998
self .hook ("after_apk_build" )
999
999
self .hook ("before_apk_assemble" )
@@ -1044,7 +1044,7 @@ def _finish_package(self, args, output, build_args, package_type, output_dir):
1044
1044
:param package_type: one of 'apk', 'aar'
1045
1045
:param output_dir: where to put the package file
1046
1046
"""
1047
- dist = self . _dist
1047
+
1048
1048
with current_directory (self ._dist .dist_dir ):
1049
1049
package_glob = "*-{}.%s" % package_type
1050
1050
package_add_version = True
0 commit comments