Skip to content

Commit 931e091

Browse files
lukmccallclaude
andcommitted
Run yarn format-kotlin
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 2537d2f commit 931e091

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎packages/gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/internal/StubPchBuildService.kt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ import org.gradle.api.services.BuildServiceParameters
1717
* Generates stub precompiled headers when the build finishes. See [StubPchUtils].
1818
*
1919
* Android Studio configures the C++ projects of the selected variant while it fetches the Gradle
20-
* models (during sync), which happens after all tasks have run. A build service is closed after that, so by the
21-
* time [close] runs the `compile_commands.json` files of exactly the variant and ABI that Studio
22-
* requested are on disk.
20+
* models (during sync), which happens after all tasks have run. A build service is closed after
21+
* that, so by the time [close] runs the `compile_commands.json` files of exactly the variant and
22+
* ABI that Studio requested are on disk.
2323
*/
2424
abstract class StubPchBuildService : BuildService<StubPchBuildService.Params>, AutoCloseable {
2525

‎packages/gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/NdkConfiguratorUtils.kt‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ internal object NdkConfiguratorUtils {
8484
return
8585
}
8686

87-
project
88-
.gradle
89-
.sharedServices
87+
project.gradle.sharedServices
9088
.registerIfAbsent("StubPchBuildService", StubPchBuildService::class.java) { spec ->
9189
spec.parameters.cxxDirectory.set(project.layout.projectDirectory.dir(".cxx"))
9290
}

‎packages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/utils/StubPchUtilsTest.kt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ class StubPchUtilsTest {
272272
writeText(
273273
"""[{"directory":"${cxxDir.absolutePath}",""" +
274274
""""command":"/does/not/exist ${File(cxxDir, "cmake_pch.hxx").absolutePath}",""" +
275-
""""file":"${source.absolutePath}"}]""")
275+
""""file":"${source.absolutePath}"}]"""
276+
)
276277
}
277278

278279
StubPchUtils.generateStubsFor(compileCommands)

0 commit comments

Comments
 (0)