File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
pythonforandroid/bootstraps/common/build Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -408,14 +408,17 @@ def make_package(args):
408
408
409
409
version_code = 0
410
410
if not args .numeric_version :
411
- # Set version code in format (arch-minsdk-app_version)
412
- arch_dict = {"x86_64" : "9" , "arm64-v8a" : "8" , "armeabi-v7a" : "7" , "x86" : "6" }
413
- arch_code = arch_dict .get (arch , '1' )
411
+ """
412
+ Set version code in format (10 + minsdk + app_version)
413
+ Historically versioning was (arch + minsdk + app_version),
414
+ with arch expressed with a single digit from 6 to 9.
415
+ Since the multi-arch support, has been changed to 10.
416
+ """
414
417
min_sdk = args .min_sdk_version
415
418
for i in args .version .split ('.' ):
416
419
version_code *= 100
417
420
version_code += int (i )
418
- args .numeric_version = "{}{}{}" .format (arch_code , min_sdk , version_code )
421
+ args .numeric_version = "{}{}{}" .format ("10" , min_sdk , version_code )
419
422
420
423
if args .intent_filters :
421
424
with open (args .intent_filters ) as fd :
You can’t perform that action at this time.
0 commit comments