mirror of
https://github.com/servo/servo.git
synced 2025-06-16 04:14:29 +00:00
Build a AAR archive alongside the APK
This commit is contained in:
parent
78e90d6358
commit
e8af185a3d
16 changed files with 396 additions and 236 deletions
|
@ -214,10 +214,12 @@ class PackageCommands(CommandBase):
|
|||
if flavor is not None:
|
||||
flavor_name = flavor.title()
|
||||
|
||||
task_name = "assemble" + flavor_name + build_type + build_mode
|
||||
variant = ":assemble" + flavor_name + build_type + build_mode
|
||||
apk_task_name = ":servoapp" + variant
|
||||
aar_task_name = ":servoview" + variant
|
||||
try:
|
||||
with cd(path.join("support", "android", "apk")):
|
||||
subprocess.check_call(["./gradlew", "--no-daemon", task_name], env=env)
|
||||
subprocess.check_call(["./gradlew", "--no-daemon", apk_task_name, aar_task_name], env=env)
|
||||
except subprocess.CalledProcessError as e:
|
||||
print("Packaging Android exited with return value %d" % e.returncode)
|
||||
return e.returncode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue