TaiwanStar_general_size_s_C.../.editorconfig
sky121113 b56c539549 [CHORE] 新增 .editorconfig 防止 XML 檔頭 UTF-8 BOM(aapt2 打包防呆)
供 UIUX 設計師直接在本 repo 改 UI 時,編輯器不再寫入 BOM 導致 aapt2 失敗。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 17:09:23 +08:00

23 lines
623 B
INI
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

root = true
# 全專案預設UTF-8不含 BOM、LF、檔尾換行
# 重點charset = utf-8非 utf-8-bom可避免編輯器在 XML 開頭塞入 BOM
# 否則 aapt2 會報「Cannot read field "elmName" because "root" is null」導致打包失敗。
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{xml,java,kt,kts,gradle,pro}]
charset = utf-8
indent_style = space
indent_size = 4
# 二進位資源不套用規則
[*.{png,webp,jpg,jpeg,gif,ttf,otf,9.png}]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset