Skip to content

Commit 6f77762

Browse files
committed
group apk and aar logic together
1 parent 3d17b99 commit 6f77762

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pythonforandroid/toolchain.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,6 @@ def _build_package(self, args, package_type):
10811081
sh.Command('dos2unix'), gradlew._path.decode('utf8'),
10821082
_tail=20, _critical=True, _env=env
10831083
)
1084-
10851084
if args.build_mode == "debug":
10861085
if package_type == "aab":
10871086
raise BuildInterruptingException(
@@ -1090,12 +1089,10 @@ def _build_package(self, args, package_type):
10901089
)
10911090
gradle_task = "assembleDebug"
10921091
elif args.build_mode == "release":
1093-
if package_type == "apk":
1092+
if package_type in ["apk", "aar"]:
10941093
gradle_task = "assembleRelease"
10951094
elif package_type == "aab":
10961095
gradle_task = "bundleRelease"
1097-
else:
1098-
gradle_task = "assembleRelease"
10991096
else:
11001097
raise BuildInterruptingException(
11011098
"Unknown build mode {} for apk()".format(args.build_mode))

0 commit comments

Comments
 (0)