-
Type:
Task
-
Resolution: Done
-
Priority:
Low
-
Affects Version/s: None
-
None
-
FLW Sprint 54, FLW Sprint 55
-
FLW Mobile App
-
UAT
A leaked Activity or Fragment keeps its views and bitmaps in memory after the user leaves the screen. That is exactly what Google's background bitmap metric measures. The project has no
leak detection today.
Scope:
- Add debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.14'.
- Run the main flows on a debug build: login → home → household → registration → forms → sync → incentives.
- Fix each reported leak. Common causes are uncleared ViewBinding, listeners or Glide targets outliving onDestroyView, and static Context references.
Acceptance Criteria:
- [ ] LeakCanary reports no retained Activity or Fragment across the main flows.