Skip to content

Commit bc26346

Browse files
authored
fix(android): move ktlint plugin out of shipped build.gradle (#225)
1 parent 7040d5b commit bc26346

2 files changed

Lines changed: 23 additions & 18 deletions

File tree

android/build.gradle

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ buildscript {
1515
}
1616
}
1717

18-
plugins {
19-
id "org.jlleitschuh.gradle.ktlint" version "14.0.1"
20-
}
21-
2218
apply plugin: "com.android.library"
2319
apply plugin: "kotlin-android"
2420
apply plugin: "com.facebook.react"
@@ -94,20 +90,6 @@ dependencies {
9490
}
9591
}
9692

97-
ktlint {
98-
version = "1.8.0"
99-
debug = false
100-
verbose = true
101-
android = true
102-
outputToConsole = true
103-
ignoreFailures = false
104-
enableExperimentalRules = false
105-
filter {
106-
exclude("**/build/**")
107-
exclude("**/generated/**")
108-
}
109-
}
110-
11193
react {
11294
jsRootDir = file("../src/")
11395
libraryName = "EnrichedMarkdownText"

apps/example/android/build.gradle

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,27 @@ buildscript {
1818
}
1919
}
2020

21+
plugins {
22+
id "org.jlleitschuh.gradle.ktlint" version "14.0.1" apply false
23+
}
24+
2125
apply plugin: "com.facebook.react.rootproject"
26+
27+
subprojects { subproject ->
28+
if (subproject.name == "react-native-enriched-markdown") {
29+
subproject.apply plugin: "org.jlleitschuh.gradle.ktlint"
30+
subproject.ktlint {
31+
version = "1.8.0"
32+
debug = false
33+
verbose = true
34+
android = true
35+
outputToConsole = true
36+
ignoreFailures = false
37+
enableExperimentalRules = false
38+
filter {
39+
exclude("**/build/**")
40+
exclude("**/generated/**")
41+
}
42+
}
43+
}
44+
}

0 commit comments

Comments
 (0)