Commit graph

2228 commits

Author SHA1 Message Date
isaac
c13118921d Sync watch app 2026-05-28 14:26:40 +02:00
isaac
ddf6999908 Optimize watch building 2026-05-28 02:45:47 +02:00
isaac
0be476ff79 Strip watch app 2026-05-28 02:13:30 +02:00
Ilya Laktyushin
c9a9f8a060 Various fixes 2026-05-27 19:05:44 +02:00
isaac
0682ac9d57 Update signing 2026-05-27 01:06:41 +02:00
isaac
78267e8902 Vendor tgwatch sources into Telegram/WatchApp; build from in-repo snapshot
Vendor the standalone tgwatch watch-app sources into Telegram/WatchApp/ as a
tracked snapshot and build it from there by default (tracked Bazel inputs).
Make.py drives embedding via --embedWatchApp (--watchAppSourcePath removed);
the filegroup excludes .swiftpm/.build. Documented in CLAUDE.md.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-26 23:12:16 +02:00
isaac
64c9e72fad Embed xcodebuild-built tgwatch app into the Bazel Telegram IPA
Add the apple_prebuilt_watchos_application rule (prebuilt_watchos.bzl + its
worker) that runs xcodebuild on the watch app, codesigns the .app and nested
framework, and feeds it to the Telegram ios_application's watch_application
slot, gated on //Telegram:embedWatchApp. Make.py gains device-gated watch
embed flags (--watchApiId/--watchApiHash/--watchSigningIdentity/
--watchProvisioningProfile), and the embedded app's version is matched to the
host (versions.json + buildNumber).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-26 23:11:36 +02:00
isaac
69bfc65da7 Postbox refactor waves 138–276: 168-commit squash
Consolidates 137 wave commits + 31 supporting commits (CLAUDE.md bump,
typealias additions, AnyObject→EngineMedia restoration) into one squashed
commit. Migrates dozens of consumer-side public APIs, struct fields,
protocol methods, and enum payloads from Postbox protocols/structs to
TelegramEngine engine wrappers and typealiases. Drops `import Postbox`
from many files. Adds new TelegramCore typealiases and one
TelegramEngineUnauthorized facade.

Notable changes by category:

**TelegramCore typealias additions** (rule 2 — narrow utility typealiases):
- EngineChatListIndex, EngineTempBoxFile, EngineItemCollectionItemIndex,
  EngineItemCollectionViewEntryIndex, EngineValueBoxEncryptionParameters,
  EngineMessageAndThreadId, EnginePeerStoryStats, EngineMessageHistoryAnchorIndex,
  EngineChatListTotalUnreadStateCategory, EngineChatListTotalUnreadStateStats,
  EnginePeerSummaryCounterTags, EngineChatListTotalUnreadState,
  EngineItemCacheEntryId, EngineHashFunctions,
  EngineCachedMediaResourceRepresentationResult,
  EngineMediaResourceDataFetchResult, EngineMediaResourceDataFetchError,
  EngineMediaResourceStatus, EngineCachedPeerData

**TelegramCore engine extensions/forwarders**:
- EngineMessage.engineMedia, EngineMessage.enginePeers,
  EngineMessage.adAttribute, EngineMessage.effectivelyIncoming
- engineFileSize forwarder
- TelegramEngine.Resources.clearCachedMediaResources(mediaResourceIds: Set<EngineMediaResource.Id>)
- TelegramEngine.Resources.fetchStatus(id:resourceSize:)
- TelegramEngineUnauthorized.UnauthorizedResources facade with storeResourceData

**Public API/struct migrations to engine types**:
- ChatAvailableMessageActions.banAuthor/banAuthors → EnginePeer?/[EnginePeer]
- WebSessionsContextState.peers → [EnginePeer.Id: EnginePeer]
- CacheUsageStats.peers → [EnginePeer.Id: EnginePeer]
- PeerCommand.peer → EnginePeer
- PeerInfoControllerMode.calls(messages:) → [EngineMessage]
- CallControllerNodeProtocol.updatePeer → EnginePeer params
- ChatHistoryListNode.messageInCurrentHistoryView (and 4 variants) → EngineMessage?
- ChatHistorySearchContainerNode.messageForGallery → EngineMessage?
- PeerInfoPaneNode.findLoadedMessage / ensureMessageIsVisible /
  transitionNodeForGallery → engine-typed
- GalleryHiddenMediaTarget.getTransitionInfo /
  GalleryHiddenMediaManager.findTarget → engine-typed
- ChatPanelInterfaceInteraction.presentReactionDeletionOptions /
  presentBan*MessageOptions → EnginePeer
- DrawingMessageRenderer.messages → [EngineMessage]
- ChatVideoGalleryItemScrubberView.setFetchStatusSignal →
  EngineMediaResource.FetchStatus
- ChannelDiscussionGroupActionSheetItem.peer, VoiceChatPeerEntry.peer,
  VoiceChatFullscreenParticipantItem.peer, MediaStreamComponent.chatPeer,
  MediaStreamVideoComponent.callPeer, ChatMessageContactBubbleContentNode.contactPeer,
  ChatMessageForwardInfoNode.peer, ChatMessageCommentFooterContentNode.replyPeers,
  ChatReportPeerTitlePanelNode.peer, ChatMessageActionUrlAuthController.bot,
  PeerMediaCollectionInterfaceState.peer, ChatMessageCallBubbleContentNode.peopleAvatars,
  ChatLoadingNode.renderedPeer (→ EngineRenderedPeer) — all to engine types

**Wave-71-shadow stored-field migrations** (Postbox Peer/Message → Engine wrapper):
- LegacyCallControllerNode.peer
- CallStatusBarNode.currentPeer

**Dead-code / dead-field removals**:
- CallController.peer, CallControllerNodeV2.account,
  ContactMultiselectionController PeerNameIndex fields,
  preparedChatListNodeViewTransition account: Account param,
  FetchResource.swift entirely (unused function)

**Module-level Postbox import drops**: 30+ files including TelegramRootController,
EditStories, GiftViewScreen, AnimatedStickerUtils, FetchPhotoLibraryImageResource,
PeerInfoGiftsPaneNode, PeerInfoPaneContainerNode, PresentAddMembers,
PeerInfoProfileItems, ChatControllerAdminBanUsers, PresentationData typealiases,
DefaultDayPresentationTheme, ChatListViewTransition, GalleryHiddenMediaManager,
RecentSessionsController, GifContext, AuthorizationSequenceController,
PeerInfoHeaderEditingContentNode, PeerInfoHeaderNode,
PeerAllowedReactionListController, CallControllerNodeV2, and 6 PeerInfo pane files.

**AnyObject restoration**: rule 8 added (never substitute Postbox protocols
with Any/AnyObject) — undid previous AnyObject substitutions in waves 141/143
back to EngineMedia.

Doc maintenance: CLAUDE.md updated to reflect new typealiases and forwarders.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-05 00:44:27 +02:00
isaac
2edd2ffea7 Update instructions and fix build 2026-05-01 00:49:47 +02:00
Ilya Laktyushin
fd75bdb356 Fix 2026-04-29 21:15:55 +02:00
Ilya Laktyushin
5c2cebc7bf Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-04-29 20:27:28 +02:00
Ilya Laktyushin
14bbdca050 Various improvements 2026-04-29 20:24:29 +02:00
isaac
301be02a89 Update localization 2026-04-29 21:23:36 +04:00
Ilya Laktyushin
ea090a6858 Various improvements 2026-04-28 23:53:26 +02:00
Ilya Laktyushin
d212968040 Update API 2026-04-28 20:35:06 +02:00
isaac
1ae854e2e9 Merge commit '73d25e7be3' 2026-04-28 17:00:21 +04:00
isaac
027ac77ad7 Various improvements 2026-04-28 16:58:04 +04:00
Ilya Laktyushin
73d25e7be3 Various improvements 2026-04-28 14:31:17 +02:00
Ilya Laktyushin
d600b7b32e Clean up 2026-04-27 19:32:42 +02:00
Ilya Laktyushin
d574182374 Markdown improvements 2026-04-27 18:45:30 +02:00
Ilya Laktyushin
f41630083a Various improvements 2026-04-24 03:16:14 +02:00
Ilya Laktyushin
dbd40fe7d3 Various improvements 2026-04-22 23:03:51 +02:00
Ilya Laktyushin
d88a29b378 Various improvements 2026-04-18 08:41:08 +02:00
Ilya Laktyushin
0df319742a Update API 2026-04-16 01:18:22 +02:00
Isaac
0cbbf10eea Update entitlements 2026-04-07 21:13:31 +02:00
Isaac
bef7b70e55 Merge commit '05d64c58b2' 2026-04-07 16:48:17 +02:00
Isaac
f3e1795b68 Temp 2026-04-07 08:11:27 +02:00
Ilya Laktyushin
ae6d05c49d Various fixes 2026-04-07 06:36:13 +02:00
Ilya Laktyushin
65872a4a59 Poll improvements 2026-04-04 10:11:30 +02:00
Isaac
3e0c38c3ce Merge commit '36440d6566' 2026-03-31 20:24:35 +08:00
Isaac
34477605b1 Various improvements 2026-03-31 20:24:24 +08:00
Ilya Laktyushin
c1d8b98fda Update localization 2026-03-31 11:59:27 +02:00
Ilya Laktyushin
ca3eacda45 Various improvements 2026-03-30 04:37:05 +02:00
Ilya Laktyushin
f160fb99d9 Various improvements 2026-03-29 16:23:09 +02:00
Ilya Laktyushin
53d5425341 Various fixes 2026-03-28 18:27:01 +01:00
Ilya Laktyushin
265b502f76 Various fixes 2026-03-28 15:55:50 +01:00
Ilya Laktyushin
d0fce97c93 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-03-27 18:45:59 +01:00
Ilya Laktyushin
e0ec4d9c31 Various fixes 2026-03-27 18:45:53 +01:00
Isaac
0b878e4d24 Various improvements 2026-03-28 00:52:16 +08:00
Isaac
9142299387 Merge commit 'a320fbf36e'
# Conflicts:
#	submodules/TelegramUI/Components/CreateBotScreen/Sources/CreateBotScreen.swift
2026-03-28 00:12:38 +08:00
Isaac
f34db983e0 Various improvements 2026-03-28 00:11:41 +08:00
Ilya Laktyushin
d90092d9f1 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-03-27 16:48:30 +01:00
Ilya Laktyushin
c1020d12c5 Various fixes 2026-03-27 16:48:23 +01:00
Isaac
d11a967936 Merge commit 'fd68aed766' 2026-03-27 19:24:49 +08:00
Isaac
911ebd07ab Update 2026-03-27 19:23:09 +08:00
Ilya Laktyushin
fd68aed766 Auth improvements 2026-03-27 11:24:08 +01:00
Ilya Laktyushin
bc3612587b Various fixes 2026-03-27 11:13:25 +01:00
Ilya Laktyushin
8a523bc1cd Update localization 2026-03-27 02:32:43 +01:00
Ilya Laktyushin
ed55943a44 Various improvements 2026-03-27 01:13:38 +01:00
Ilya Laktyushin
6b6ba070c7 Update API 2026-03-26 09:26:15 +01:00