@@ -240,12 +240,9 @@ def make_package(args):
240240
241241 # Package up the private data (public not supported).
242242 tar_dirs = [args .private ]
243- if exists ('private' ):
244- tar_dirs .append ('private' )
245- if exists ('crystax_python' ):
246- tar_dirs .append ('crystax_python' )
247- if exists ('_python_bundle' ):
248- tar_dirs .append ('_python_bundle' )
243+ for python_bundle_dir in ('private' , 'crystax_python' , '_python_bundle' ):
244+ if exists (python_bundle_dir ):
245+ tar_dirs .append (python_bundle_Dir )
249246
250247 if args .private :
251248 make_tar ('src/main/assets/private.mp3' , tar_dirs , args .ignore_path )
@@ -413,14 +410,14 @@ def make_package(args):
413410def parse_args (args = None ):
414411 global BLACKLIST_PATTERNS , WHITELIST_PATTERNS , PYTHON
415412
416- # Get the default minsdk, equal to the NDK API that this dist it built against
413+ # Get the default minsdk, equal to the NDK API that this dist is built against
417414 with open ('dist_info.json' , 'r' ) as fileh :
418415 info = json .load (fileh )
419416 if 'ndk_api' not in info :
420- print ('Failed to read ndk_api from dist info' )
421- default_android_api = 12 # The old default before ndk_api was introduced
417+ print ('WARNING: Failed to read ndk_api from dist info, defaulting to 12 ' )
418+ default_min_api = 12 # The old default before ndk_api was introduced
422419 else :
423- default_android_api = info ['ndk_api' ]
420+ default_min_api = info ['ndk_api' ]
424421 ndk_api = info ['ndk_api' ]
425422
426423 import argparse
@@ -504,9 +501,9 @@ def parse_args(args=None):
504501 ap .add_argument ('--sdk' , dest = 'sdk_version' , default = - 1 ,
505502 type = int , help = ('Deprecated argument, does nothing' ))
506503 ap .add_argument ('--minsdk' , dest = 'min_sdk_version' ,
507- default = default_android_api , type = int ,
504+ default = default_min_api , type = int ,
508505 help = ('Minimum Android SDK version that the app supports. '
509- 'Defaults to {}.' .format (default_android_api )))
506+ 'Defaults to {}.' .format (default_min_api )))
510507 ap .add_argument ('--allow-minsdk-ndkapi-mismatch' , default = False ,
511508 action = 'store_true' ,
512509 help = ('Allow the --minsdk argument to be different from '
0 commit comments