mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Sweep 14 BUILD files whose modules no longer have any source file with `import Postbox`. All targets are ChatMessage*BubbleContentNode subclasses plus WallpaperPreviewMedia — modules whose Swift sources stopped importing Postbox in earlier waves but whose BUILD deps were not cleaned up. Pre-flight: for each `BUILD` containing `"//submodules/Postbox"`, verified no source file under `<module>/Sources` matches `^import Postbox$`. 14 modules met the criterion. Build: 15s warm-cache verify, 0 errors. Modules: - ChatMessageActionBubbleContentNode - ChatMessageEventLogPreviousDescriptionContentNode - ChatMessageEventLogPreviousLinkContentNode - ChatMessageEventLogPreviousMessageContentNode - ChatMessageFileBubbleContentNode - ChatMessageGameBubbleContentNode - ChatMessageInvoiceBubbleContentNode - ChatMessageMapBubbleContentNode - ChatMessageMediaBubbleContentNode - ChatMessageProfilePhotoSuggestionContentNode - ChatMessageStoryMentionContentNode - ChatMessageWallpaperBubbleContentNode - ChatMessageWebpageBubbleContentNode - WallpaperPreviewMedia Pre-wave attempt failure note: tried 5 source-side `import Postbox` drops first (StatsMessageItem, StarsAvatarComponent, PeerListItemComponent, WebAppMessagePreviewScreen, OpenChatMessage). All 5 hit hidden bare `Media`/`Message`/`PeerStoryStats`/`areMediaArraysEqual` references that the prior pre-flight regex missed. Reverted source edits; only the risk-free BUILD-dep sweep survives in this commit. Lesson: pre-flight regex MUST include bare Postbox protocols `\bMedia\b`, `\bMessage\b`, `\bPeer\b`, plus the Postbox helper `areMediaArraysEqual` and the `PeerStoryStats` type. The previous identifier-typealias-only regex was insufficient. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Sources | ||
| BUILD | ||