ADFA-3033 Flag file in /sdcard/Download/CodeOnTheGo.lc for Leak Canary#1084
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughRelease NotesFeatures
Risks & Best Practice Violations
WalkthroughAdds a build-variant-aware LeakCanary configuration tied to a new feature flag (read from "CodeOnTheGo.lc"). Debug variant disables heap dumps when the flag is set; release variant is a no-op. The config is applied during app initialization; feature flag storage and a Sentry build setting were also added. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip You can disable poems in the walkthrough.Disable the |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@app/src/main/java/com/itsaky/androidide/app/DeviceProtectedApplicationLoader.kt`:
- Line 67: The code currently hardcodes isReprieveEnabled = true which bypasses
runtime feature flag control; update the assignment to read from the feature
flag (e.g., set isReprieveEnabled = FeatureFlags.isReprieveEnabled or the
appropriate accessor) in the DeviceProtectedApplicationLoader initialization so
reprieve behavior is driven by FeatureFlags instead of a literal true; ensure
any imports or references to FeatureFlags are present and that the symbol name
matches the project's flag API.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 6001c5e4-d463-4a12-8ad6-bdb8c6adb544
📒 Files selected for processing (4)
app/src/debug/java/com/itsaky/androidide/app/LeakCanaryConfig.ktapp/src/main/java/com/itsaky/androidide/app/DeviceProtectedApplicationLoader.ktapp/src/release/java/com/itsaky/androidide/app/LeakCanaryConfig.ktcommon/src/main/java/com/itsaky/androidide/utils/FeatureFlags.kt
The fun part was adding two files:
Since Leak Canary has implicit startup instead of explicit, and we need to set dumpHeap in the case where LeakCanary exists (debug builds) and do nothing in the case where LeakCanary does not exist (release builds).