Establish native Linux ARM64 Android CI and verification gates (#94)
This commit is contained in:
1 parent
1abd75282e
commit
dbc0210c55
29 files changed
+1752
-56
No files matched your search
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Adapt AGP's map argument to the pinned native ARM64 AAPT2 syntax."""
|
||||
import os
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
|
||||
def arguments(args):
|
||||
result = []
|
||||
for arg in args:
|
||||
if arg.startswith("--resource-path-shortening-map="):
|
||||
option, value = arg.split("=", 1)
|
||||
result.extend((option, value))
|
||||
else:
|
||||
result.append(arg)
|
||||
return result
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
binary = Path(os.environ["ANDROID_HOME"]) / "native-arm64/build-tools/aapt2"
|
||||
os.execv(binary, [str(binary), *arguments(sys.argv[1:])])
|
||||
Reference in new issue
Block a user