Skip to content

Commit e02cdaa

Browse files
authored
build: reduce Android artifact size (#162)
strip symbol and DWARF tables from Android artifacts
1 parent 3c694b2 commit e02cdaa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎build/app/android.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ def build(self):
2828
"android",
2929
"-androidapi",
3030
"21",
31-
"-ldflags=-checklinkname=0 -extldflags=-Wl,-z,max-page-size=16384",
31+
"-trimpath",
32+
"-ldflags=-checklinkname=0 -s -w -buildid= "
33+
"-extldflags=-Wl,-z,max-page-size=16384",
3234
]
3335
)
3436
if ret.returncode != 0:

0 commit comments

Comments
 (0)