diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg index 65b2511bb30f0..c10c380c23cf6 100644 --- a/PREUPLOAD.cfg +++ b/PREUPLOAD.cfg @@ -26,6 +26,8 @@ hidden_api_txt_checksorted_hook = ${REPO_ROOT}/tools/platform-compat/hiddenapi/c hidden_api_txt_exclude_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/exclude.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT} +ktfmt_hook = ${REPO_ROOT}/external/ktfmt/ktfmt.py --check -i ${REPO_ROOT}/frameworks/base/ktfmt_includes.txt ${PREUPLOAD_FILES} + ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py -f ${PREUPLOAD_FILES} owners_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "OWNERS$" diff --git a/ktfmt_includes.txt b/ktfmt_includes.txt new file mode 100644 index 0000000000000..96da8c9c803b6 --- /dev/null +++ b/ktfmt_includes.txt @@ -0,0 +1,9 @@ +packages/SystemUI/compose/ +packages/SystemUI/screenshot/ +packages/SystemUI/src/com/android/systemui/people/data +packages/SystemUI/src/com/android/systemui/people/ui +packages/SystemUI/src/com/android/systemui/keyguard/data +packages/SystemUI/src/com/android/systemui/keyguard/dagger +packages/SystemUI/src/com/android/systemui/keyguard/domain +packages/SystemUI/src/com/android/systemui/keyguard/shared +packages/SystemUI/src/com/android/systemui/keyguard/ui \ No newline at end of file