File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
packages/react-native-gesture-handler/android Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,8 @@ android {
131
131
sourceSets[" main" ].java.srcDirs(buildListOfJavaSrcDirs())
132
132
133
133
if (isGHExampleApp()) {
134
+ val androidDir = project.projectDir
135
+
134
136
tasks.withType< com.android.build.gradle.tasks.ExternalNativeBuildJsonTask > ().configureEach {
135
137
doLast {
136
138
val hashRegex = """ /Debug/([^/]+)/logs""" .toRegex()
@@ -144,14 +146,12 @@ android {
144
146
val archResults = archRegex.find(path)
145
147
val arch = archResults?.groups?.get(1 )?.value
146
148
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." )
155
155
}
156
156
}
157
157
}
Original file line number Diff line number Diff line change @@ -20,3 +20,4 @@ dependencyResolutionManagement {
20
20
}
21
21
22
22
include(" lib" )
23
+ project(" :lib" ).projectDir.mkdirs()
You can’t perform that action at this time.
0 commit comments