Skip to content

Commit f42f072

Browse files
committed
config(ci): add step list 16KB
1 parent f7eccc3 commit f42f072

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/flutter_plugin.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,29 @@ jobs:
3838
working-directory: example
3939
run: flutter build apk --debug
4040

41+
- name: List .so 16KB page-size compatibility
42+
shell: bash
43+
run: |
44+
APK="example/build/app/outputs/flutter-apk/app-debug.apk"
45+
unzip -o "$APK" -d output_apk >/dev/null
46+
47+
while IFS= read -r -d '' so; do
48+
aligns=$(readelf -Wl "$so" | awk '/Program Headers/{ph=1} ph && /LOAD/ {for (i=1;i<=NF;i++) if ($i=="Align") print $(i+1)}')
49+
ok=true
50+
for a in $aligns; do
51+
if [[ "$a" =~ ^0x ]]; then val=$((a)); else val=$a; fi
52+
if [ "$val" -lt 16384 ]; then
53+
ok=false
54+
break
55+
fi
56+
done
57+
if $ok; then
58+
echo "[OK] $so (16KB SAFE)"
59+
else
60+
echo "[FAIL] $so (NOT 16KB SAFE)"
61+
fi
62+
done < <(find output_apk -name "*.so" -print0)
63+
4164
build_ios:
4265
runs-on: macos-latest
4366
steps:

0 commit comments

Comments
 (0)