Skip to content

Remove usused StmInfoSubwayProvider - #151

Merged
mmathieum merged 2 commits into
masterfrom
mm/StmInfoSubwayProvider_delete
May 22, 2026
Merged

mmathieum merged 2 commits into
masterfrom
mm/StmInfoSubwayProvider_delete

Conversation

@mmathieum

Copy link
Copy Markdown
Member

@ghost ghost self-assigned this May 22, 2026
@ghost ghost mentioned this pull request May 22, 2026
15 tasks done
@ghost
ghost marked this pull request as ready for review May 22, 2026 13:33

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

high

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)

high

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.

@ghost
ghost merged commit 0a8fa07 into master May 22, 2026
@ghost
ghost deleted the mm/StmInfoSubwayProvider_delete branch May 22, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant