File tree Expand file tree Collapse file tree
packages/react-native-gesture-handler/android Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,6 +131,8 @@ android {
131131 sourceSets[" main" ].java.srcDirs(buildListOfJavaSrcDirs())
132132
133133 if (isGHExampleApp()) {
134+ val androidDir = project.projectDir
135+
134136 tasks.withType< com.android.build.gradle.tasks.ExternalNativeBuildJsonTask > ().configureEach {
135137 doLast {
136138 val hashRegex = """ /Debug/([^/]+)/logs""" .toRegex()
@@ -144,14 +146,12 @@ android {
144146 val archResults = archRegex.find(path)
145147 val arch = archResults?.groups?.get(1 )?.value
146148
147- val rootDir = File (project.projectDir, " ../../.." )
148- val generated = File (project.projectDir, " .cxx/Debug/$hash /$arch /compile_commands.json" )
149-
150- if (generated != null ) {
151- val output = File (rootDir, " compile_commands.json" )
152- output.writeText(generated.readText())
153- println (" Generated clangd metadata." )
154- }
149+ val rootDir = File (androidDir, " ../../.." )
150+ val generated = File (androidDir, " .cxx/Debug/$hash /$arch /compile_commands.json" )
151+ val output = File (rootDir, " compile_commands.json" )
152+ output.writeText(generated.readText())
153+
154+ println (" Generated clangd metadata." )
155155 }
156156 }
157157 }
Original file line number Diff line number Diff line change @@ -20,3 +20,4 @@ dependencyResolutionManagement {
2020}
2121
2222include(" lib" )
23+ project(" :lib" ).projectDir.mkdirs()
You can’t perform that action at this time.
0 commit comments