Add ktfmt-gradle as formatter

Run `gradle format` to format all kotlin source code
This commit is contained in:
JingMatrix
2025-11-02 11:16:41 +01:00
parent 093c1bbc13
commit c5c81b80c3
18 changed files with 1436 additions and 1089 deletions
+2
View File
@@ -4,6 +4,7 @@ annotation = "1.9.1"
jdk18on = "1.81"
kotlin = "2.2.10"
libcxx = "28.1.13356709"
ktfmt = "0.25.0"
[libraries]
annotation = { module = "androidx.annotation:annotation", version.ref = "annotation" }
@@ -14,4 +15,5 @@ org-lsposed-libcxx-libcxx = { module = "org.lsposed.libcxx:libcxx", version.ref
android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
ktfmt = { id = "com.ncorti.ktfmt.gradle", version.ref = "ktfmt" }