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>
24 lines
791 B
Text
24 lines
791 B
Text
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
|
|
|
|
swift_library(
|
|
name = "ChatMessageEventLogPreviousMessageContentNode",
|
|
module_name = "ChatMessageEventLogPreviousMessageContentNode",
|
|
srcs = glob([
|
|
"Sources/**/*.swift",
|
|
]),
|
|
copts = [
|
|
"-warnings-as-errors",
|
|
],
|
|
deps = [
|
|
"//submodules/Display",
|
|
"//submodules/AsyncDisplayKit",
|
|
"//submodules/SSignalKit/SwiftSignalKit",
|
|
"//submodules/TelegramCore",
|
|
"//submodules/TelegramUI/Components/Chat/ChatMessageBubbleContentNode",
|
|
"//submodules/TelegramUI/Components/Chat/ChatMessageItemCommon",
|
|
"//submodules/TelegramUI/Components/Chat/ChatMessageAttachedContentNode",
|
|
],
|
|
visibility = [
|
|
"//visibility:public",
|
|
],
|
|
)
|