Repository navigation
Remove usused StmInfoSubwayProvider - #151
Conversation
mmathieum
commented
May 22, 2026
- Custom providers > delete deprecated/unused 🧹 #129
left a comment
There was a problem hiding this comment.
Code Review
This pull request removes the StmInfoSubwayProvider class and its associated resource configuration. Feedback from the reviewer highlights the need to remove corresponding declarations from AndroidManifest.xml files to prevent runtime crashes and notes a significant change in UUID generation logic for service updates that must be synchronized with the agency provider to ensure correct linking.
I am having trouble creating individual review comments. Click here to see my feedback.
src/main/java/org/mtransit/android/commons/provider/StmInfoSubwayProvider.java (75)
The comment on this line indicates that StmInfoSubwayProvider is referenced in AndroidManifest.xml files across various modules. Since this class is being removed, please ensure that all corresponding declarations are also removed from those manifest files to prevent ClassNotFoundException and runtime crashes.
src/main/java/org/mtransit/android/commons/provider/StmInfoSubwayProvider.java (283-285)
The UUID generation logic for service updates is being removed here. The new implementation in StmInfoServiceUpdateProvider.kt (lines 376-386) uses a significantly different format based on routeShortName and a hardcoded AGENCY_TAG ("StmInfo"), whereas the old logic used routeId and the agency authority. Please ensure that the POI UUID generation logic in the corresponding agency provider has been updated to match this new format, otherwise service updates will no longer be correctly linked to their respective routes and stops.