File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 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 :
You can’t perform that action at this time.
0 commit comments