Skip to content

Commit 13d47ed

Browse files
Devmate Botfacebook-github-bot
authored andcommitted
xplat/js/react-native-github/packages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/internal/PrepareGlogTaskTest.kt
Reviewed By: ianlevesque Differential Revision: D83924218
1 parent 8ed0e1e commit 13d47ed

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

  • packages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/internal

packages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/internal/PrepareGlogTaskTest.kt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ class PrepareGlogTaskTest {
3333
val project = createProject()
3434
val glogThirdPartyJniPath = File(project.projectDir, "src/main/jni/third-party/glog/")
3535
val task =
36-
createTestTask<PrepareGlogTask>(project = project) {
37-
it.glogPath.setFrom(glogpath)
38-
it.glogThirdPartyJniPath.set(glogThirdPartyJniPath)
39-
it.glogVersion.set("1.0.0")
40-
it.outputDir.set(output)
36+
createTestTask<PrepareGlogTask>(project = project) { glogTask ->
37+
glogTask.glogPath.setFrom(glogpath)
38+
glogTask.glogThirdPartyJniPath.set(glogThirdPartyJniPath)
39+
glogTask.glogVersion.set("1.0.0")
40+
glogTask.outputDir.set(output)
4141
}
4242
File(glogThirdPartyJniPath, "CMakeLists.txt").apply {
4343
parentFile.mkdirs()
@@ -55,11 +55,11 @@ class PrepareGlogTaskTest {
5555
val project = createProject()
5656
val glogThirdPartyJniPath = File(project.projectDir, "src/main/jni/third-party/glog/")
5757
val task =
58-
createTestTask<PrepareGlogTask>(project = project) {
59-
it.glogPath.setFrom(glogpath)
60-
it.glogThirdPartyJniPath.set(glogThirdPartyJniPath)
61-
it.glogVersion.set("1.0.0")
62-
it.outputDir.set(output)
58+
createTestTask<PrepareGlogTask>(project = project) { glogTask ->
59+
glogTask.glogPath.setFrom(glogpath)
60+
glogTask.glogThirdPartyJniPath.set(glogThirdPartyJniPath)
61+
glogTask.glogVersion.set("1.0.0")
62+
glogTask.outputDir.set(output)
6363
}
6464
File(glogThirdPartyJniPath, "config.h").apply {
6565
parentFile.mkdirs()
@@ -76,11 +76,11 @@ class PrepareGlogTaskTest {
7676
val glogThirdPartyJniPath = tempFolder.newFolder("glogpath/jni")
7777
val output = tempFolder.newFolder("output")
7878
val task =
79-
createTestTask<PrepareGlogTask> {
80-
it.glogPath.setFrom(glogpath)
81-
it.glogThirdPartyJniPath.set(glogThirdPartyJniPath)
82-
it.glogVersion.set("1.0.0")
83-
it.outputDir.set(output)
79+
createTestTask<PrepareGlogTask> { glogTask ->
80+
glogTask.glogPath.setFrom(glogpath)
81+
glogTask.glogThirdPartyJniPath.set(glogThirdPartyJniPath)
82+
glogTask.glogVersion.set("1.0.0")
83+
glogTask.outputDir.set(output)
8484
}
8585
File(glogpath, "glog-1.0.0/src/glog.cpp").apply {
8686
parentFile.mkdirs()

0 commit comments

Comments
 (0)