File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
pythonforandroid/bootstraps/common/build Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -360,10 +360,17 @@ def make_package(args):
360
360
361
361
version_code = 0
362
362
if not args .numeric_version :
363
+ # Set version code in format (arch-minsdk-app_version)
364
+ with open (join (dirname (__file__ ), 'dist_info.json' ), 'r' ) as dist_info :
365
+ dist_data = json .load (dist_info )
366
+ arch = dist_data ["archs" ][0 ]
367
+ arch_dict = {"arm64-v8a" : "8" , "armeabi-v7a" : "7" , "x86" : "6" }
368
+ arch_code = arch_dict [arch ]
369
+ min_sdk = args .min_sdk_version
363
370
for i in args .version .split ('.' ):
364
371
version_code *= 100
365
372
version_code += int (i )
366
- args .numeric_version = str ( version_code )
373
+ args .numeric_version = "{}{}{}" . format ( arch_code , min_sdk , version_code )
367
374
368
375
if args .intent_filters :
369
376
with open (args .intent_filters ) as fd :
You can’t perform that action at this time.
0 commit comments