Skip to content

Commit 6889d46

Browse files
committed
fix: indentation and unused import
1 parent 8684bca commit 6889d46

2 files changed

Lines changed: 21 additions & 22 deletions

File tree

gradle-plugins/react/brownfield/src/main/kotlin/com/callstack/react/brownfield/expo/ExpoPublishingHelper.kt

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,33 +31,33 @@ fun Node.getChildNodeByName(nodeName: String): Node? {
3131

3232
open class ExpoPublishingHelper(val brownfieldAppProject: Project) {
3333
fun afterEvaluate() {
34-
val discoverableExpoProjects = getDiscoverableExpoProjects()
34+
val discoverableExpoProjects = getDiscoverableExpoProjects()
3535

36-
Logging.log(
37-
"Discovered ${discoverableExpoProjects.size} discoverable Expo projects: " +
38-
discoverableExpoProjects.joinToString(
39-
", ",
40-
) { it.name },
41-
)
36+
Logging.log(
37+
"Discovered ${discoverableExpoProjects.size} discoverable Expo projects: " +
38+
discoverableExpoProjects.joinToString(
39+
", ",
40+
) { it.name },
41+
)
4242

43-
val expoTransitiveDependencies =
44-
discoverAllExpoTransitiveDependencies(
45-
expoProjects = discoverableExpoProjects,
46-
)
43+
val expoTransitiveDependencies =
44+
discoverAllExpoTransitiveDependencies(
45+
expoProjects = discoverableExpoProjects,
46+
)
4747

48+
Logging.log(
49+
"Collected a total of ${expoTransitiveDependencies.size} unique Expo transitive " +
50+
"dependencies for brownfield app project publishing",
51+
)
52+
expoTransitiveDependencies.forEach {
4853
Logging.log(
49-
"Collected a total of ${expoTransitiveDependencies.size} unique Expo transitive " +
50-
"dependencies for brownfield app project publishing",
54+
"(*) dependency ${it.groupId}:${it.artifactId}:${it.version} (scope: ${it.scope}, " +
55+
"${if (it.optional) "optional" else "required"})",
5156
)
52-
expoTransitiveDependencies.forEach {
53-
Logging.log(
54-
"(*) dependency ${it.groupId}:${it.artifactId}:${it.version} (scope: ${it.scope}, " +
55-
"${if (it.optional) "optional" else "required"})",
56-
)
57-
}
57+
}
5858

59-
reconfigurePOM(expoTransitiveDependencies)
60-
reconfigureGradleModuleJSON(expoTransitiveDependencies)
59+
reconfigurePOM(expoTransitiveDependencies)
60+
reconfigureGradleModuleJSON(expoTransitiveDependencies)
6161
}
6262

6363
protected fun shouldExcludeDependency(

gradle-plugins/react/brownfield/src/main/kotlin/com/callstack/react/brownfield/shared/Constants.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package com.callstack.react.brownfield.shared
22

33
import com.callstack.react.brownfield.expo.utils.DependencyInfo
44
import com.callstack.react.brownfield.utils.StringMatcher
5-
import io.github.g00fy2.versioncompare.Version
65

76
/**
87
* A condition that checks if a certain Expo version meets specific criteria

0 commit comments

Comments
 (0)