diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg index f8aa7e9bab301..1d92778a91176 100644 --- a/PREUPLOAD.cfg +++ b/PREUPLOAD.cfg @@ -25,4 +25,6 @@ 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} 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