Skip to content

Commit c645dc5

Browse files
committed
build(runtime): ship the leak probe's Java side whenever its native side is built
CMake builds LeakProbe.cpp unless the build is optimized without the inspector (NOT OPTIMIZED_BUILD OR OPTIMIZED_WITH_INSPECTOR_BUILD), but Gradle dropped src/debugTools/java for any -Poptimized build. With both -Poptimized and -PoptimizedWithInspector set, findLeakCycles() then failed with "this runtime has no com.tns.LeakProbe". Gradle now uses the same condition; -Poptimized alone still leaves the debug tools out.
1 parent 122279c commit c645dc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test-app/runtime/build.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ android {
100100
// embed runtime binding generator in runtime, while keeping it in a separate project
101101
java.srcDirs = [bindingGeneratorSourcePath, defaultSrcPath]
102102
// The Java side of debug-only native tools (CMake's DEBUG_TOOL_SOURCES).
103-
if (!optimized) {
103+
if (!optimized || optimizedWithInspector) {
104104
java.srcDirs += "src/debugTools/java"
105105
}
106106
}

0 commit comments

Comments
 (0)