Skip to content

Commit d049f9e

Browse files
committed
Interrupt build and alert the user if tried to build an aab in debug mode
1 parent aa129bb commit d049f9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pythonforandroid/toolchain.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,11 @@ def _build_package(self, args, package_type):
10791079
_tail=20, _critical=True, _env=env
10801080
)
10811081
if args.build_mode == "debug":
1082+
if package_type == "aab":
1083+
raise BuildInterruptingException(
1084+
"aab is meant only for distribution and is not available in debug mode. "
1085+
"Instead, you can use apk while building for debugging purposes."
1086+
)
10821087
gradle_task = "assembleDebug"
10831088
elif args.build_mode == "release":
10841089
if package_type == "apk":

0 commit comments

Comments
 (0)