Check the integration¶
A build that compiles does not show that Lustro captures anything, or that the release build is
free of it. After you add Lustro, or after a coding agent does, check these. The commands use the
lustro CLI and an app module named app. With product flavors, use the
names of one variant, such as assembleFreeDebug and freeReleaseRuntimeClasspath.
- Both build types build:
./gradlew :app:assembleDebug :app:assembleRelease. - The release build has no runtime:
./gradlew -q :app:dependencies --configuration releaseRuntimeClasspath | grep -E 'twinsen81|nanohttpd'checks it. With the no-op halves, it lists onlylustro-apiand the-noopartifacts, and each other build type also needs one of the two, such asstagingImplementation(libs.lustro.noop). Without the no-op halves, it prints nothing, and each other build type needs the app's release implementation in its own source set, such assrc/staging, and no Lustro artifact. - The server starts. Install the debug build, start the app, and keep it in the foreground.
adb logcat -d -s LustroTokenhas the lineLustro ready endpoint=... token=..., andlustro metalists the tabs that the app registers. - Capture works. Use the app so that it sends a request:
lustro net list --last 5shows it. When it does not, the interceptor is on anotherOkHttpClientthan the one that sends: see Troubleshooting. - Each plugin tab has data. For the tabs that the app registers:
lustro api GET logs/text --param limit=20prints the app's last log lines.lustro api GET prefs/fileslists the app's SharedPreferences files and DataStores.lustro api GET sqlite/databaseslists the databases, and none has anerror.lustro api GET work/items | jq .stateshows"listeners": "installed".
- Custom tabs are in
src/debug. When you wrote aDebugTab, it is insrc/debug, and./gradlew :app:lintReleasereports noLustroDebugUsageInRelease. See Release safety for what the check reports. Without the no-op halves, the release lint has no such check, and step 1 checks this instead: the release build fails to compile aDebugTabinsrc/main.