From a49ae70f43685d3527b07f20cbf7ced9bb20fad0 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Wed, 23 Dec 2020 21:17:32 +0400 Subject: [PATCH] Apply sticker thumbnail fixes WIP WIP WIP WIP --- BUCK | 553 ------------------ Config/BUCK | 10 - Config/BuckSupportFiles/TestInfo.plist | 22 - Config/buck_rule_macros.bzl | 321 ---------- Telegram/BUCK | 548 ----------------- Telegram/BUILD | 178 +++--- .../NotificationServiceObjC/BUCK | 23 - build-system/Make/BuildEnvironment.py | 148 +++++ build-system/Make/Make.py | 472 +++++++++++++++ build-system/Make/ProjectGeneration.py | 155 +++++ build-system/bazel-rules/rules_swift | 2 +- build-system/bazel_version | 1 - .../example-configuration}/BUILD | 0 .../example-configuration/WORKSPACE | 0 .../example-configuration/provisioning/BUILD | 11 + .../provisioning/Intents.mobileprovision | Bin 0 -> 4632 bytes .../NotificationContent.mobileprovision | Bin 0 -> 4655 bytes .../NotificationService.mobileprovision | Bin 0 -> 4655 bytes .../provisioning/Share.mobileprovision | Bin 0 -> 4613 bytes .../provisioning/Telegram.mobileprovision | Bin 0 -> 6015 bytes .../provisioning/WatchApp.mobileprovision | Bin 0 -> 4629 bytes .../WatchExtension.mobileprovision | Bin 0 -> 4670 bytes .../provisioning/Widget.mobileprovision | Bin 0 -> 4615 bytes .../example-configuration/variables.bzl | 10 + build-system/example-generate-configuration | 7 + build-system/manage-developer-portal-app.sh | 129 ---- build-system/xcode_version | 1 - ...e8fa79117daa854e79dd7d9ce32048d506a8.patch | 157 ----- buildbox/buck/prepare_buck_source.sh | 7 - submodules/AccountContext/BUCK | 27 - submodules/AccountUtils/BUCK | 19 - submodules/ActionSheetPeerItem/BUCK | 22 - submodules/ActivityIndicator/BUCK | 16 - submodules/AlertUI/BUCK | 15 - submodules/AnimatedAvatarSetNode/BUCK | 22 - submodules/AnimatedCountLabelNode/BUCK | 16 - submodules/AnimatedNavigationStripeNode/BUCK | 16 - submodules/AnimatedStickerNode/BUCK | 21 - submodules/AnimationUI/BUCK | 29 - submodules/AppBundle/BUCK | 20 - submodules/AppLock/BUCK | 25 - submodules/AppLockState/BUCK | 14 - submodules/ArchivedStickerPacksNotice/BUCK | 29 - submodules/AsyncDisplayKit/BUCK | 30 - submodules/AuthTransferUI/BUCK | 33 -- submodules/AuthorizationUI/BUCK | 21 - submodules/AvatarNode/BUCK | 23 - submodules/BotPaymentsUI/BUCK | 29 - submodules/BuildConfig/BUCK | 29 - submodules/BuildConfigExtra/BUCK | 20 - submodules/CallListUI/BUCK | 30 - submodules/Camera/BUCK | 18 - submodules/ChatInterfaceState/BUCK | 22 - .../ChatListFilterSettingsHeaderItem/BUCK | 22 - submodules/ChatListSearchItemHeader/BUCK | 17 - submodules/ChatListSearchItemNode/BUCK | 20 - submodules/ChatListSearchRecentPeersNode/BUCK | 26 - submodules/ChatListUI/BUCK | 64 -- .../ChatMessageInteractiveMediaBadge/BUCK | 20 - submodules/ChatTitleActivityNode/BUCK | 17 - submodules/CheckNode/BUCK | 17 - submodules/CloudData/BUCK | 20 - submodules/ComposePollUI/BUCK | 25 - submodules/ContactListUI/BUCK | 38 -- submodules/ContactsPeerItem/BUCK | 32 - submodules/ContextUI/BUCK | 21 - submodules/CounterContollerTitleView/BUCK | 17 - submodules/CountrySelectionUI/BUCK | 23 - submodules/Crc32/BUCK | 19 - submodules/CryptoUtils/BUCK | 19 - submodules/Database/Buffers/BUCK | 13 - .../Database/MessageHistoryMetadataTable/BUCK | 17 - .../MessageHistoryReadStateTable/BUCK | 16 - submodules/Database/MurmurHash/BUCK | 21 - submodules/Database/MurmurHash/Impl/BUCK | 18 - submodules/Database/PeerTable/BUCK | 17 - submodules/Database/PostboxCoding/BUCK | 15 - submodules/Database/PostboxDataTypes/BUCK | 15 - submodules/Database/PreferencesTable/BUCK | 17 - submodules/Database/Table/BUCK | 14 - submodules/Database/ValueBox/BUCK | 16 - submodules/DateSelectionUI/BUCK | 20 - submodules/DeleteChatPeerActionSheetItem/BUCK | 22 - submodules/DeviceAccess/BUCK | 21 - submodules/DeviceLocationManager/BUCK | 15 - submodules/DeviceProximity/BUCK | 18 - submodules/DirectionalPanGesture/BUCK | 12 - submodules/Display/BUCK | 20 - submodules/Emoji/BUCK | 13 - submodules/EncryptionKeyVisualization/BUCK | 17 - .../EncryptionKeyVisualization/Impl/BUCK | 18 - submodules/EncryptionProvider/BUCK | 19 - submodules/FFMpegBinding/BUCK | 20 - submodules/FastBlur/BUCK | 19 - submodules/FileMediaResourceStatus/BUCK | 23 - submodules/GZip/BUCK | 17 - submodules/GalleryData/BUCK | 31 - submodules/GalleryUI/BUCK | 36 -- submodules/GameUI/BUCK | 24 - submodules/Geocoding/BUCK | 15 - submodules/GlassButtonNode/BUCK | 16 - submodules/GraphCore/BUCK | 15 - submodules/GraphUI/BUCK | 27 - submodules/GridMessageSelectionNode/BUCK | 18 - submodules/HashtagSearchUI/BUCK | 26 - submodules/HexColor/BUCK | 15 - submodules/HorizontalPeerItem/BUCK | 26 - submodules/ImageBlur/BUCK | 16 - submodules/ImageCompression/BUCK | 16 - submodules/ImageTransparency/BUCK | 16 - submodules/InstantPageCache/BUCK | 20 - submodules/InstantPageUI/BUCK | 29 - submodules/ItemListAddressItem/BUCK | 23 - submodules/ItemListAvatarAndNameInfoItem/BUCK | 30 - submodules/ItemListPeerActionItem/BUCK | 20 - submodules/ItemListPeerItem/BUCK | 29 - submodules/ItemListStickerPackItem/BUCK | 26 - .../Sources/ItemListStickerPackItem.swift | 2 +- submodules/ItemListUI/BUCK | 29 - submodules/ItemListVenueItem/BUCK | 25 - submodules/JoinLinkPreviewUI/BUCK | 27 - submodules/LanguageLinkPreviewUI/BUCK | 27 - submodules/LanguageSuggestionUI/BUCK | 22 - submodules/LegacyComponents/BUCK | 44 -- submodules/LegacyDataImport/BUCK | 23 - submodules/LegacyDataImport/Impl/BUCK | 28 - submodules/LegacyMediaPickerUI/BUCK | 32 - .../LegacyImageProcessors/BUCK | 21 - submodules/LegacyUI/BUCK | 25 - submodules/LightweightAccountData/BUCK | 11 - submodules/ListMessageItem/BUCK | 36 -- submodules/ListSectionHeaderNode/BUCK | 17 - submodules/LiveLocationManager/BUCK | 20 - submodules/LiveLocationPositionNode/BUCK | 24 - submodules/LiveLocationTimerNode/BUCK | 17 - submodules/LocalAuth/BUCK | 15 - submodules/LocalMediaResources/BUCK | 22 - submodules/LocalizedPeerData/BUCK | 19 - submodules/LocationResources/BUCK | 21 - submodules/LocationUI/BUCK | 49 -- submodules/ManagedAnimationNode/BUCK | 22 - submodules/MapResourceToAvatarSizes/BUCK | 19 - submodules/Markdown/BUCK | 14 - submodules/MediaPlayer/BUCK | 22 - submodules/MediaResources/BUCK | 19 - submodules/MergeLists/BUCK | 11 - submodules/MessageReactionListUI/BUCK | 24 - submodules/MimeTypes/BUCK | 17 - submodules/MonotonicTime/BUCK | 19 - submodules/MosaicLayout/BUCK | 12 - submodules/MozjpegBinding/BUCK | 20 - submodules/MtProtoKit/BUCK | 22 - submodules/MurMurHash32/BUCK | 19 - submodules/MusicAlbumArtResources/BUCK | 19 - submodules/NetworkLogging/BUCK | 20 - submodules/NotificationMuteSettingsUI/BUCK | 20 - submodules/NotificationSoundSelectionUI/BUCK | 25 - submodules/NotificationsPresentationData/BUCK | 11 - submodules/NumberPluralizationForm/BUCK | 14 - submodules/ObjCRuntimeUtils/BUCK | 15 - submodules/OpenInExternalAppUI/BUCK | 27 - submodules/OpenSSLEncryptionProvider/BUCK | 21 - submodules/Opus/BUCK | 41 -- submodules/OpusBinding/BUCK | 32 - submodules/OverlayStatusController/BUCK | 24 - submodules/OverlayStatusController/Impl/BUCK | 15 - submodules/PKCS/BUCK | 20 - submodules/PasscodeInputFieldNode/BUCK | 17 - submodules/PasscodeUI/BUCK | 30 - submodules/PassportUI/BUCK | 34 -- submodules/PasswordSetupUI/BUCK | 51 -- submodules/Pdf/BUCK | 15 - submodules/PeerAvatarGalleryUI/BUCK | 36 -- submodules/PeerInfoUI/BUCK | 77 --- submodules/PeerOnlineMarkerNode/BUCK | 16 - submodules/PeerPresenceStatusManager/BUCK | 17 - submodules/PeersNearbyIconNode/BUCK | 18 - submodules/PeersNearbyUI/BUCK | 38 -- submodules/PersistentStringHash/BUCK | 11 - submodules/PhoneInputNode/BUCK | 18 - submodules/PhoneNumberFormat/BUCK | 14 - submodules/PhotoResources/BUCK | 30 - submodules/PlatformRestrictionMatching/BUCK | 15 - submodules/Postbox/BUCK | 19 - submodules/PresentationDataUtils/BUCK | 23 - submodules/ProgressNavigationButtonNode/BUCK | 17 - submodules/QrCode/BUCK | 17 - submodules/RMIntro/BUCK | 22 - submodules/RadialStatusNode/BUCK | 17 - submodules/RaiseToListen/BUCK | 15 - submodules/RaiseToListen/Impl/BUCK | 21 - submodules/Reachability/BUCK | 18 - submodules/ReactionSelectionNode/BUCK | 22 - submodules/RingBuffer/BUCK | 19 - submodules/SSignalKit/SSignalKit/BUCK | 16 - submodules/SSignalKit/SwiftSignalKit/BUCK | 11 - submodules/SaveToCameraRoll/BUCK | 25 - submodules/ScreenCaptureDetection/BUCK | 15 - submodules/SearchBarNode/BUCK | 20 - submodules/SearchPeerMembers/BUCK | 18 - submodules/SearchUI/BUCK | 20 - submodules/SegmentedControlNode/BUCK | 17 - submodules/SelectablePeerNode/BUCK | 27 - submodules/SemanticStatusNode/BUCK | 17 - submodules/SettingsUI/BUCK | 101 ---- submodules/ShareController/BUCK | 33 -- submodules/ShareItems/BUCK | 27 - submodules/ShareItems/Impl/BUCK | 27 - submodules/ShimmerEffect/BUCK | 16 - .../Sources/StickerShimmerEffectNode.swift | 6 +- submodules/SinglePhoneInputNode/BUCK | 18 - submodules/SlotMachineAnimationNode/BUCK | 26 - submodules/SolidRoundedButtonNode/BUCK | 16 - submodules/SpotlightSupport/BUCK | 19 - submodules/StatisticsUI/BUCK | 35 -- submodules/StickerPackPreviewUI/BUCK | 34 -- submodules/StickerResources/BUCK | 24 - submodules/StringPluralization/BUCK | 22 - submodules/StringTransliteration/BUCK | 19 - submodules/Stripe/BUCK | 18 - submodules/Sunrise/BUCK | 19 - submodules/Svg/BUCK | 17 - submodules/SwipeToDismissGesture/BUCK | 12 - submodules/SwitchNode/BUCK | 17 - submodules/SyncCore/BUCK | 15 - submodules/TelegramAnimatedStickerNode/BUCK | 25 - submodules/TelegramApi/BUCK | 13 - submodules/TelegramAudio/BUCK | 14 - submodules/TelegramBaseController/BUCK | 27 - submodules/TelegramCallsUI/BUCK | 31 - submodules/TelegramCallsUI/CallsEmoji/BUCK | 19 - submodules/TelegramCore/BUCK | 23 - submodules/TelegramIntents/BUCK | 23 - submodules/TelegramNotices/BUCK | 16 - submodules/TelegramPermissions/BUCK | 19 - submodules/TelegramPermissionsUI/BUCK | 30 - submodules/TelegramPresentationData/BUCK | 24 - submodules/TelegramStringFormatting/BUCK | 25 - submodules/TelegramUI/BUCK | 231 -------- .../ChatMediaInputStickerPackItem.swift | 3 +- .../ChatMessageAnimatedStickerItemNode.swift | 7 +- .../Sources/ChatMessageStickerItemNode.swift | 3 + submodules/TelegramUIPreferences/BUCK | 18 - submodules/TelegramUniversalVideoContent/BUCK | 27 - submodules/TelegramUpdateUI/BUCK | 23 - submodules/TelegramVoip/BUCK | 20 - .../TemporaryCachedPeerDataManager/BUCK | 18 - submodules/TextFormat/BUCK | 18 - submodules/TextSelectionNode/BUCK | 17 - submodules/TgVoip/BUCK | 107 ---- submodules/TgVoipWebrtc/BUCK | 65 -- submodules/TinyThumbnail/BUCK | 11 - submodules/TonBinding/BUCK | 24 - submodules/TooltipUI/BUCK | 23 - submodules/TouchDownGesture/BUCK | 12 - submodules/Tuples/BUCK | 11 - submodules/UIKitRuntimeUtils/BUCK | 19 - submodules/UndoUI/BUCK | 30 - submodules/UrlEscaping/BUCK | 11 - submodules/UrlHandling/BUCK | 22 - submodules/UrlWhitelist/BUCK | 11 - submodules/WallpaperResources/BUCK | 27 - submodules/WatchBridge/BUCK | 32 - submodules/WatchBridge/Impl/BUCK | 38 -- submodules/WatchBridgeAudio/BUCK | 17 - submodules/WatchBridgeAudio/Impl/BUCK | 24 - submodules/WatchCommon/Host/BUCK | 17 - submodules/WatchCommon/Watch/BUCK | 17 - submodules/WebPBinding/BUCK | 21 - submodules/WebSearchUI/BUCK | 37 -- submodules/WebUI/BUCK | 17 - submodules/WebsiteType/BUCK | 14 - submodules/WidgetItems/BUCK | 11 - submodules/YuvConversion/BUCK | 15 - submodules/ffmpeg/BUCK | 180 ------ .../Sources/FFMpeg/build-ffmpeg-buck.sh | 230 -------- submodules/libphonenumber/BUCK | 19 - submodules/lottie-ios/BUCK | 24 - submodules/openssl/BUCK | 179 ------ submodules/openssl/build-openssl-buck.sh | 195 ------ submodules/rlottie/BUCK | 35 -- submodules/sqlcipher/BUCK | 24 - submodules/webp/BUCK | 26 - third-party/BUCK | 8 - third-party/mozjpeg/BUCK | 108 ---- third-party/mozjpeg/build-mozjpeg-buck.sh | 62 -- third-party/webrtc/BUCK | 84 --- third-party/webrtc/build-webrtc-buck.sh | 33 -- third-party/yasm/BUCK | 24 - ...e8fa79117daa854e79dd7d9ce32048d506a8.patch | 157 ----- tools/buck-build/prepare_buck_source.sh | 62 -- versions.json | 5 + 292 files changed, 898 insertions(+), 8963 deletions(-) delete mode 100644 BUCK delete mode 100644 Config/BUCK delete mode 100644 Config/BuckSupportFiles/TestInfo.plist delete mode 100644 Config/buck_rule_macros.bzl delete mode 100644 Telegram/BUCK delete mode 100644 Telegram/NotificationService/NotificationServiceObjC/BUCK create mode 100644 build-system/Make/BuildEnvironment.py create mode 100644 build-system/Make/Make.py create mode 100644 build-system/Make/ProjectGeneration.py delete mode 100644 build-system/bazel_version rename {build-input => build-system/example-configuration}/BUILD (100%) rename submodules/WatchCommon/BUCK => build-system/example-configuration/WORKSPACE (100%) create mode 100644 build-system/example-configuration/provisioning/BUILD create mode 100644 build-system/example-configuration/provisioning/Intents.mobileprovision create mode 100644 build-system/example-configuration/provisioning/NotificationContent.mobileprovision create mode 100644 build-system/example-configuration/provisioning/NotificationService.mobileprovision create mode 100644 build-system/example-configuration/provisioning/Share.mobileprovision create mode 100644 build-system/example-configuration/provisioning/Telegram.mobileprovision create mode 100644 build-system/example-configuration/provisioning/WatchApp.mobileprovision create mode 100644 build-system/example-configuration/provisioning/WatchExtension.mobileprovision create mode 100644 build-system/example-configuration/provisioning/Widget.mobileprovision create mode 100644 build-system/example-configuration/variables.bzl create mode 100755 build-system/example-generate-configuration delete mode 100644 build-system/manage-developer-portal-app.sh delete mode 100644 build-system/xcode_version delete mode 100644 buildbox/buck/buck-2be0e8fa79117daa854e79dd7d9ce32048d506a8.patch delete mode 100644 buildbox/buck/prepare_buck_source.sh delete mode 100644 submodules/AccountContext/BUCK delete mode 100644 submodules/AccountUtils/BUCK delete mode 100644 submodules/ActionSheetPeerItem/BUCK delete mode 100644 submodules/ActivityIndicator/BUCK delete mode 100644 submodules/AlertUI/BUCK delete mode 100644 submodules/AnimatedAvatarSetNode/BUCK delete mode 100644 submodules/AnimatedCountLabelNode/BUCK delete mode 100644 submodules/AnimatedNavigationStripeNode/BUCK delete mode 100644 submodules/AnimatedStickerNode/BUCK delete mode 100644 submodules/AnimationUI/BUCK delete mode 100644 submodules/AppBundle/BUCK delete mode 100644 submodules/AppLock/BUCK delete mode 100644 submodules/AppLockState/BUCK delete mode 100644 submodules/ArchivedStickerPacksNotice/BUCK delete mode 100644 submodules/AsyncDisplayKit/BUCK delete mode 100644 submodules/AuthTransferUI/BUCK delete mode 100644 submodules/AuthorizationUI/BUCK delete mode 100644 submodules/AvatarNode/BUCK delete mode 100644 submodules/BotPaymentsUI/BUCK delete mode 100644 submodules/BuildConfig/BUCK delete mode 100644 submodules/BuildConfigExtra/BUCK delete mode 100644 submodules/CallListUI/BUCK delete mode 100644 submodules/Camera/BUCK delete mode 100644 submodules/ChatInterfaceState/BUCK delete mode 100644 submodules/ChatListFilterSettingsHeaderItem/BUCK delete mode 100644 submodules/ChatListSearchItemHeader/BUCK delete mode 100644 submodules/ChatListSearchItemNode/BUCK delete mode 100644 submodules/ChatListSearchRecentPeersNode/BUCK delete mode 100644 submodules/ChatListUI/BUCK delete mode 100644 submodules/ChatMessageInteractiveMediaBadge/BUCK delete mode 100644 submodules/ChatTitleActivityNode/BUCK delete mode 100644 submodules/CheckNode/BUCK delete mode 100644 submodules/CloudData/BUCK delete mode 100644 submodules/ComposePollUI/BUCK delete mode 100644 submodules/ContactListUI/BUCK delete mode 100644 submodules/ContactsPeerItem/BUCK delete mode 100644 submodules/ContextUI/BUCK delete mode 100644 submodules/CounterContollerTitleView/BUCK delete mode 100644 submodules/CountrySelectionUI/BUCK delete mode 100644 submodules/Crc32/BUCK delete mode 100644 submodules/CryptoUtils/BUCK delete mode 100644 submodules/Database/Buffers/BUCK delete mode 100644 submodules/Database/MessageHistoryMetadataTable/BUCK delete mode 100644 submodules/Database/MessageHistoryReadStateTable/BUCK delete mode 100644 submodules/Database/MurmurHash/BUCK delete mode 100644 submodules/Database/MurmurHash/Impl/BUCK delete mode 100644 submodules/Database/PeerTable/BUCK delete mode 100644 submodules/Database/PostboxCoding/BUCK delete mode 100644 submodules/Database/PostboxDataTypes/BUCK delete mode 100644 submodules/Database/PreferencesTable/BUCK delete mode 100644 submodules/Database/Table/BUCK delete mode 100644 submodules/Database/ValueBox/BUCK delete mode 100644 submodules/DateSelectionUI/BUCK delete mode 100644 submodules/DeleteChatPeerActionSheetItem/BUCK delete mode 100644 submodules/DeviceAccess/BUCK delete mode 100644 submodules/DeviceLocationManager/BUCK delete mode 100644 submodules/DeviceProximity/BUCK delete mode 100644 submodules/DirectionalPanGesture/BUCK delete mode 100644 submodules/Display/BUCK delete mode 100644 submodules/Emoji/BUCK delete mode 100644 submodules/EncryptionKeyVisualization/BUCK delete mode 100644 submodules/EncryptionKeyVisualization/Impl/BUCK delete mode 100644 submodules/EncryptionProvider/BUCK delete mode 100644 submodules/FFMpegBinding/BUCK delete mode 100644 submodules/FastBlur/BUCK delete mode 100644 submodules/FileMediaResourceStatus/BUCK delete mode 100644 submodules/GZip/BUCK delete mode 100644 submodules/GalleryData/BUCK delete mode 100644 submodules/GalleryUI/BUCK delete mode 100644 submodules/GameUI/BUCK delete mode 100644 submodules/Geocoding/BUCK delete mode 100644 submodules/GlassButtonNode/BUCK delete mode 100644 submodules/GraphCore/BUCK delete mode 100644 submodules/GraphUI/BUCK delete mode 100644 submodules/GridMessageSelectionNode/BUCK delete mode 100644 submodules/HashtagSearchUI/BUCK delete mode 100644 submodules/HexColor/BUCK delete mode 100644 submodules/HorizontalPeerItem/BUCK delete mode 100644 submodules/ImageBlur/BUCK delete mode 100644 submodules/ImageCompression/BUCK delete mode 100644 submodules/ImageTransparency/BUCK delete mode 100644 submodules/InstantPageCache/BUCK delete mode 100644 submodules/InstantPageUI/BUCK delete mode 100644 submodules/ItemListAddressItem/BUCK delete mode 100644 submodules/ItemListAvatarAndNameInfoItem/BUCK delete mode 100644 submodules/ItemListPeerActionItem/BUCK delete mode 100644 submodules/ItemListPeerItem/BUCK delete mode 100644 submodules/ItemListStickerPackItem/BUCK delete mode 100644 submodules/ItemListUI/BUCK delete mode 100644 submodules/ItemListVenueItem/BUCK delete mode 100644 submodules/JoinLinkPreviewUI/BUCK delete mode 100644 submodules/LanguageLinkPreviewUI/BUCK delete mode 100644 submodules/LanguageSuggestionUI/BUCK delete mode 100644 submodules/LegacyComponents/BUCK delete mode 100644 submodules/LegacyDataImport/BUCK delete mode 100644 submodules/LegacyDataImport/Impl/BUCK delete mode 100644 submodules/LegacyMediaPickerUI/BUCK delete mode 100644 submodules/LegacyMediaPickerUI/LegacyImageProcessors/BUCK delete mode 100644 submodules/LegacyUI/BUCK delete mode 100644 submodules/LightweightAccountData/BUCK delete mode 100644 submodules/ListMessageItem/BUCK delete mode 100644 submodules/ListSectionHeaderNode/BUCK delete mode 100644 submodules/LiveLocationManager/BUCK delete mode 100644 submodules/LiveLocationPositionNode/BUCK delete mode 100644 submodules/LiveLocationTimerNode/BUCK delete mode 100644 submodules/LocalAuth/BUCK delete mode 100644 submodules/LocalMediaResources/BUCK delete mode 100644 submodules/LocalizedPeerData/BUCK delete mode 100644 submodules/LocationResources/BUCK delete mode 100644 submodules/LocationUI/BUCK delete mode 100644 submodules/ManagedAnimationNode/BUCK delete mode 100644 submodules/MapResourceToAvatarSizes/BUCK delete mode 100644 submodules/Markdown/BUCK delete mode 100644 submodules/MediaPlayer/BUCK delete mode 100644 submodules/MediaResources/BUCK delete mode 100644 submodules/MergeLists/BUCK delete mode 100644 submodules/MessageReactionListUI/BUCK delete mode 100644 submodules/MimeTypes/BUCK delete mode 100644 submodules/MonotonicTime/BUCK delete mode 100644 submodules/MosaicLayout/BUCK delete mode 100644 submodules/MozjpegBinding/BUCK delete mode 100644 submodules/MtProtoKit/BUCK delete mode 100644 submodules/MurMurHash32/BUCK delete mode 100644 submodules/MusicAlbumArtResources/BUCK delete mode 100644 submodules/NetworkLogging/BUCK delete mode 100644 submodules/NotificationMuteSettingsUI/BUCK delete mode 100644 submodules/NotificationSoundSelectionUI/BUCK delete mode 100644 submodules/NotificationsPresentationData/BUCK delete mode 100644 submodules/NumberPluralizationForm/BUCK delete mode 100644 submodules/ObjCRuntimeUtils/BUCK delete mode 100644 submodules/OpenInExternalAppUI/BUCK delete mode 100644 submodules/OpenSSLEncryptionProvider/BUCK delete mode 100644 submodules/Opus/BUCK delete mode 100644 submodules/OpusBinding/BUCK delete mode 100644 submodules/OverlayStatusController/BUCK delete mode 100644 submodules/OverlayStatusController/Impl/BUCK delete mode 100644 submodules/PKCS/BUCK delete mode 100644 submodules/PasscodeInputFieldNode/BUCK delete mode 100644 submodules/PasscodeUI/BUCK delete mode 100644 submodules/PassportUI/BUCK delete mode 100644 submodules/PasswordSetupUI/BUCK delete mode 100644 submodules/Pdf/BUCK delete mode 100644 submodules/PeerAvatarGalleryUI/BUCK delete mode 100644 submodules/PeerInfoUI/BUCK delete mode 100644 submodules/PeerOnlineMarkerNode/BUCK delete mode 100644 submodules/PeerPresenceStatusManager/BUCK delete mode 100644 submodules/PeersNearbyIconNode/BUCK delete mode 100644 submodules/PeersNearbyUI/BUCK delete mode 100644 submodules/PersistentStringHash/BUCK delete mode 100644 submodules/PhoneInputNode/BUCK delete mode 100644 submodules/PhoneNumberFormat/BUCK delete mode 100644 submodules/PhotoResources/BUCK delete mode 100644 submodules/PlatformRestrictionMatching/BUCK delete mode 100644 submodules/Postbox/BUCK delete mode 100644 submodules/PresentationDataUtils/BUCK delete mode 100644 submodules/ProgressNavigationButtonNode/BUCK delete mode 100644 submodules/QrCode/BUCK delete mode 100644 submodules/RMIntro/BUCK delete mode 100644 submodules/RadialStatusNode/BUCK delete mode 100644 submodules/RaiseToListen/BUCK delete mode 100644 submodules/RaiseToListen/Impl/BUCK delete mode 100644 submodules/Reachability/BUCK delete mode 100644 submodules/ReactionSelectionNode/BUCK delete mode 100644 submodules/RingBuffer/BUCK delete mode 100644 submodules/SSignalKit/SSignalKit/BUCK delete mode 100644 submodules/SSignalKit/SwiftSignalKit/BUCK delete mode 100644 submodules/SaveToCameraRoll/BUCK delete mode 100644 submodules/ScreenCaptureDetection/BUCK delete mode 100644 submodules/SearchBarNode/BUCK delete mode 100644 submodules/SearchPeerMembers/BUCK delete mode 100644 submodules/SearchUI/BUCK delete mode 100644 submodules/SegmentedControlNode/BUCK delete mode 100644 submodules/SelectablePeerNode/BUCK delete mode 100644 submodules/SemanticStatusNode/BUCK delete mode 100644 submodules/SettingsUI/BUCK delete mode 100644 submodules/ShareController/BUCK delete mode 100644 submodules/ShareItems/BUCK delete mode 100644 submodules/ShareItems/Impl/BUCK delete mode 100644 submodules/ShimmerEffect/BUCK delete mode 100644 submodules/SinglePhoneInputNode/BUCK delete mode 100644 submodules/SlotMachineAnimationNode/BUCK delete mode 100644 submodules/SolidRoundedButtonNode/BUCK delete mode 100644 submodules/SpotlightSupport/BUCK delete mode 100644 submodules/StatisticsUI/BUCK delete mode 100644 submodules/StickerPackPreviewUI/BUCK delete mode 100644 submodules/StickerResources/BUCK delete mode 100644 submodules/StringPluralization/BUCK delete mode 100644 submodules/StringTransliteration/BUCK delete mode 100644 submodules/Stripe/BUCK delete mode 100644 submodules/Sunrise/BUCK delete mode 100644 submodules/Svg/BUCK delete mode 100644 submodules/SwipeToDismissGesture/BUCK delete mode 100644 submodules/SwitchNode/BUCK delete mode 100644 submodules/SyncCore/BUCK delete mode 100644 submodules/TelegramAnimatedStickerNode/BUCK delete mode 100644 submodules/TelegramApi/BUCK delete mode 100644 submodules/TelegramAudio/BUCK delete mode 100644 submodules/TelegramBaseController/BUCK delete mode 100644 submodules/TelegramCallsUI/BUCK delete mode 100644 submodules/TelegramCallsUI/CallsEmoji/BUCK delete mode 100644 submodules/TelegramCore/BUCK delete mode 100644 submodules/TelegramIntents/BUCK delete mode 100644 submodules/TelegramNotices/BUCK delete mode 100644 submodules/TelegramPermissions/BUCK delete mode 100644 submodules/TelegramPermissionsUI/BUCK delete mode 100644 submodules/TelegramPresentationData/BUCK delete mode 100644 submodules/TelegramStringFormatting/BUCK delete mode 100644 submodules/TelegramUI/BUCK delete mode 100644 submodules/TelegramUIPreferences/BUCK delete mode 100644 submodules/TelegramUniversalVideoContent/BUCK delete mode 100644 submodules/TelegramUpdateUI/BUCK delete mode 100644 submodules/TelegramVoip/BUCK delete mode 100644 submodules/TemporaryCachedPeerDataManager/BUCK delete mode 100644 submodules/TextFormat/BUCK delete mode 100644 submodules/TextSelectionNode/BUCK delete mode 100644 submodules/TgVoip/BUCK delete mode 100644 submodules/TgVoipWebrtc/BUCK delete mode 100644 submodules/TinyThumbnail/BUCK delete mode 100644 submodules/TonBinding/BUCK delete mode 100644 submodules/TooltipUI/BUCK delete mode 100644 submodules/TouchDownGesture/BUCK delete mode 100644 submodules/Tuples/BUCK delete mode 100644 submodules/UIKitRuntimeUtils/BUCK delete mode 100644 submodules/UndoUI/BUCK delete mode 100644 submodules/UrlEscaping/BUCK delete mode 100644 submodules/UrlHandling/BUCK delete mode 100644 submodules/UrlWhitelist/BUCK delete mode 100644 submodules/WallpaperResources/BUCK delete mode 100644 submodules/WatchBridge/BUCK delete mode 100644 submodules/WatchBridge/Impl/BUCK delete mode 100644 submodules/WatchBridgeAudio/BUCK delete mode 100644 submodules/WatchBridgeAudio/Impl/BUCK delete mode 100644 submodules/WatchCommon/Host/BUCK delete mode 100644 submodules/WatchCommon/Watch/BUCK delete mode 100644 submodules/WebPBinding/BUCK delete mode 100644 submodules/WebSearchUI/BUCK delete mode 100644 submodules/WebUI/BUCK delete mode 100644 submodules/WebsiteType/BUCK delete mode 100644 submodules/WidgetItems/BUCK delete mode 100644 submodules/YuvConversion/BUCK delete mode 100644 submodules/ffmpeg/BUCK delete mode 100755 submodules/ffmpeg/Sources/FFMpeg/build-ffmpeg-buck.sh delete mode 100644 submodules/libphonenumber/BUCK delete mode 100644 submodules/lottie-ios/BUCK delete mode 100644 submodules/openssl/BUCK delete mode 100644 submodules/openssl/build-openssl-buck.sh delete mode 100644 submodules/rlottie/BUCK delete mode 100644 submodules/sqlcipher/BUCK delete mode 100644 submodules/webp/BUCK delete mode 100644 third-party/BUCK delete mode 100644 third-party/mozjpeg/BUCK delete mode 100755 third-party/mozjpeg/build-mozjpeg-buck.sh delete mode 100644 third-party/webrtc/BUCK delete mode 100755 third-party/webrtc/build-webrtc-buck.sh delete mode 100644 third-party/yasm/BUCK delete mode 100644 tools/buck-build/buck-2be0e8fa79117daa854e79dd7d9ce32048d506a8.patch delete mode 100644 tools/buck-build/prepare_buck_source.sh create mode 100644 versions.json diff --git a/BUCK b/BUCK deleted file mode 100644 index ea67fb9dd5..0000000000 --- a/BUCK +++ /dev/null @@ -1,553 +0,0 @@ -load("//Config:utils.bzl", - "library_configs", -) - -load("//Config:configs.bzl", - "app_binary_configs", - "share_extension_configs", - "widget_extension_configs", - "notification_content_extension_configs", - "notification_service_extension_configs", - "intents_extension_configs", - "watch_extension_binary_configs", - "watch_binary_configs", - "info_plist_substitutions", - "app_info_plist_substitutions", - "share_extension_info_plist_substitutions", - "widget_extension_info_plist_substitutions", - "notification_content_extension_info_plist_substitutions", - "notification_service_extension_info_plist_substitutions", - "intents_extension_info_plist_substitutions", - "watch_extension_info_plist_substitutions", - "watch_info_plist_substitutions", - "DEVELOPMENT_LANGUAGE", -) - -load("//Config:buck_rule_macros.bzl", - "apple_lib", - "framework_binary_dependencies", - "framework_bundle_dependencies", - "glob_map", - "glob_sub_map", - "merge_maps", -) - -framework_dependencies = [ - "//submodules/MtProtoKit:MtProtoKit", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit", - "//submodules/Postbox:Postbox", - "//submodules/TelegramApi:TelegramApi", - "//submodules/SyncCore:SyncCore", - "//submodules/TelegramCore:TelegramCore", - "//submodules/AsyncDisplayKit:AsyncDisplayKit", - "//submodules/Display:Display", - "//submodules/TelegramUI:TelegramUI", -] - -resource_dependencies = [ - "//submodules/LegacyComponents:LegacyComponentsResources", - "//submodules/TelegramUI:TelegramUIAssets", - "//submodules/TelegramUI:TelegramUIResources", - #"//submodules/WalletUI:WalletUIAssets", - #"//submodules/WalletUI:WalletUIResources", - "//submodules/PasswordSetupUI:PasswordSetupUIResources", - "//submodules/PasswordSetupUI:PasswordSetupUIAssets", - "//submodules/OverlayStatusController:OverlayStatusControllerResources", - "//:AppResources", - "//:AppStringResources", - "//:InfoPlistStringResources", - "//:AppIntentVocabularyResources", - "//:Icons", - "//:AdditionalIcons", - "//:LaunchScreen", -] - -build_phase_scripts = [ -] - -apple_resource( - name = "AppResources", - files = glob([ - "Telegram-iOS/Resources/**/*", - ], exclude = ["Telegram-iOS/Resources/**/.*"]), - visibility = ["PUBLIC"], -) - -apple_resource( - name = "AppStringResources", - files = [], - variants = glob([ - "Telegram-iOS/*.lproj/Localizable.strings", - ]), - visibility = ["PUBLIC"], -) - -apple_resource( - name = "AppIntentVocabularyResources", - files = [], - variants = glob([ - "Telegram-iOS/*.lproj/AppIntentVocabulary.plist", - ]), - visibility = ["PUBLIC"], -) - -apple_resource( - name = "InfoPlistStringResources", - files = [], - variants = glob([ - "Telegram-iOS/*.lproj/InfoPlist.strings", - ]), - visibility = ["PUBLIC"], -) - -apple_asset_catalog( - name = "Icons", - dirs = [ - "Telegram-iOS/Icons.xcassets", - "Telegram-iOS/AppIcons.xcassets", - ], - app_icon = "AppIconLLC", - visibility = ["PUBLIC"], -) - -apple_resource( - name = "AdditionalIcons", - files = glob([ - "Telegram-iOS/*.png", - ]), - visibility = ["PUBLIC"], -) - -apple_resource( - name = "LaunchScreen", - files = [ - "Telegram-iOS/Base.lproj/LaunchScreen.xib", - ], - visibility = ["PUBLIC"], -) - -apple_library( - name = "AppLibrary", - visibility = [ - "//:", - "//...", - ], - configs = library_configs(), - swift_version = native.read_config("swift", "version"), - srcs = [ - "Telegram-iOS/main.m", - "Telegram-iOS/Application.swift" - ], - deps = [ - ] - + framework_binary_dependencies(framework_dependencies), -) - -apple_binary( - name = "AppBinary", - visibility = [ - "//:", - "//...", - ], - configs = app_binary_configs(), - swift_version = native.read_config("swift", "version"), - srcs = [ - "SupportFiles/Empty.swift", - ], - deps = [ - ":AppLibrary", - ] - + resource_dependencies, -) - -apple_bundle( - name = "Telegram", - visibility = [ - "//:", - ], - extension = "app", - binary = ":AppBinary", - product_name = "Telegram", - info_plist = "Telegram-iOS/Info.plist", - info_plist_substitutions = app_info_plist_substitutions(), - deps = [ - ":ShareExtension", - ":WidgetExtension", - ":NotificationContentExtension", - ":NotificationServiceExtension", - ":IntentsExtension", - ":WatchApp#watch", - ] - + framework_bundle_dependencies(framework_dependencies), -) - -# Share Extension - -apple_binary( - name = "ShareBinary", - srcs = glob([ - "Share/**/*.swift", - ]), - configs = share_extension_configs(), - linker_flags = [ - "-e", - "_NSExtensionMain", - "-Xlinker", - "-rpath", - "-Xlinker", - "/usr/lib/swift", - "-Xlinker", - "-rpath", - "-Xlinker", - "@executable_path/../../Frameworks", - ], - deps = [ - "//submodules/TelegramUI:TelegramUI#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) - -apple_bundle( - name = "ShareExtension", - binary = ":ShareBinary", - extension = "appex", - info_plist = "Share/Info.plist", - info_plist_substitutions = share_extension_info_plist_substitutions(), - deps = [ - ], - xcode_product_type = "com.apple.product-type.app-extension", -) - -# Widget - -apple_binary( - name = "WidgetBinary", - srcs = glob([ - "Widget/**/*.swift", - ]), - configs = widget_extension_configs(), - swift_compiler_flags = [ - "-application-extension", - ], - linker_flags = [ - "-e", - "_NSExtensionMain", - "-Xlinker", - "-rpath", - "-Xlinker", - "/usr/lib/swift", - "-Xlinker", - "-rpath", - "-Xlinker", - "@executable_path/../../Frameworks", - ], - deps = [ - "//submodules/BuildConfig:BuildConfig", - "//submodules/WidgetItems:WidgetItems", - "//submodules/AppLockState:AppLockState", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/NotificationCenter.framework", - ], -) - -apple_bundle( - name = "WidgetExtension", - binary = ":WidgetBinary", - extension = "appex", - info_plist = "Widget/Info.plist", - info_plist_substitutions = widget_extension_info_plist_substitutions(), - deps = [ - ], - xcode_product_type = "com.apple.product-type.app-extension", -) - -# Notification Content - -apple_binary( - name = "NotificationContentBinary", - srcs = glob([ - "NotificationContent/**/*.swift", - ]), - configs = notification_content_extension_configs(), - swift_compiler_flags = [ - "-application-extension", - ], - linker_flags = [ - "-e", - "_NSExtensionMain", - "-Xlinker", - "-rpath", - "-Xlinker", - "/usr/lib/swift", - "-Xlinker", - "-rpath", - "-Xlinker", - "@executable_path/../../Frameworks", - ], - deps = [ - "//submodules/TelegramUI:TelegramUI#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UserNotificationsUI.framework", - ], -) - -apple_bundle( - name = "NotificationContentExtension", - binary = ":NotificationContentBinary", - extension = "appex", - info_plist = "NotificationContent/Info.plist", - info_plist_substitutions = notification_content_extension_info_plist_substitutions(), - deps = [ - ], - xcode_product_type = "com.apple.product-type.app-extension", -) - -#Notification Service - -apple_binary( - name = "NotificationServiceBinary", - srcs = glob([ - "NotificationService/**/*.m", - "NotificationService/**/*.swift", - ]), - headers = glob([ - "NotificationService/**/*.h", - ]), - bridging_header = "NotificationService/NotificationService-Bridging-Header.h", - configs = notification_service_extension_configs(), - swift_compiler_flags = [ - "-application-extension", - ], - linker_flags = [ - "-e", - "_NSExtensionMain", - "-Xlinker", - "-rpath", - "-Xlinker", - "/usr/lib/swift", - "-Xlinker", - "-rpath", - "-Xlinker", - "@executable_path/../../Frameworks", - ], - deps = [ - "//submodules/BuildConfig:BuildConfig", - "//submodules/MtProtoKit:MtProtoKit#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/EncryptionProvider:EncryptionProvider", - "//submodules/Database/ValueBox:ValueBox", - "//submodules/Database/PostboxDataTypes:PostboxDataTypes", - "//submodules/Database/MessageHistoryReadStateTable:MessageHistoryReadStateTable", - "//submodules/Database/MessageHistoryMetadataTable:MessageHistoryMetadataTable", - "//submodules/Database/PreferencesTable:PreferencesTable", - "//submodules/Database/PeerTable:PeerTable", - "//submodules/sqlcipher:sqlcipher", - "//submodules/AppLockState:AppLockState", - "//submodules/NotificationsPresentationData:NotificationsPresentationData", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UserNotifications.framework", - ], -) - -apple_bundle( - name = "NotificationServiceExtension", - binary = ":NotificationServiceBinary", - extension = "appex", - info_plist = "NotificationService/Info.plist", - info_plist_substitutions = notification_service_extension_info_plist_substitutions(), - deps = [ - ], - xcode_product_type = "com.apple.product-type.app-extension", -) - -# Intents - -apple_binary( - name = "IntentsBinary", - srcs = glob([ - "SiriIntents/**/*.swift", - ]), - configs = intents_extension_configs(), - swift_compiler_flags = [ - "-application-extension", - ], - linker_flags = [ - "-e", - "_NSExtensionMain", - "-Xlinker", - "-rpath", - "-Xlinker", - "/usr/lib/swift", - "-Xlinker", - "-rpath", - "-Xlinker", - "@executable_path/../../Frameworks", - ], - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramApi:TelegramApi#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/BuildConfig:BuildConfig", - "//submodules/OpenSSLEncryptionProvider:OpenSSLEncryptionProvider", - "//submodules/AppLockState:AppLockState", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/Intents.framework", - "$SDKROOT/System/Library/Frameworks/Contacts.framework", - ], -) - -apple_bundle( - name = "IntentsExtension", - binary = ":IntentsBinary", - extension = "appex", - info_plist = "SiriIntents/Info.plist", - info_plist_substitutions = intents_extension_info_plist_substitutions(), - deps = [ - ], - xcode_product_type = "com.apple.product-type.app-extension", -) - -# Watch - -apple_resource( - name = "WatchAppStringResources", - files = [], - variants = glob([ - "Telegram-iOS/*.lproj/Localizable.strings", - ]), - visibility = ["PUBLIC"], -) - -apple_resource( - name = "WatchAppExtensionResources", - files = glob([ - "Watch/Extension/Resources/**/*", - ], exclude = ["Watch/Extension/Resources/**/.*"]), - visibility = ["PUBLIC"], -) - -apple_binary( - name = "WatchAppExtensionBinary", - srcs = glob([ - "Watch/Extension/**/*.m", - "Watch/SSignalKit/**/*.m", - "Watch/Bridge/**/*.m", - "Watch/WatchCommonWatch/**/*.m", - ]), - headers = merge_maps([ - glob_map(glob([ - "Watch/Extension/*.h", - "Watch/Bridge/*.h", - ])), - glob_sub_map("Watch/Extension/", glob([ - "Watch/Extension/SSignalKit/*.h", - ])), - glob_sub_map("Watch/", glob([ - "Watch/WatchCommonWatch/*.h", - ])), - ]), - compiler_flags = [ - "-DTARGET_OS_WATCH=1", - ], - linker_flags = [ - "-e", - "_WKExtensionMain", - "-lWKExtensionMainLegacy", - ], - configs = watch_extension_binary_configs(), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/UserNotifications.framework", - "$SDKROOT/System/Library/Frameworks/CoreLocation.framework", - "$SDKROOT/System/Library/Frameworks/CoreGraphics.framework", - ], - deps = [ - ":WatchAppStringResources", - ":WatchAppExtensionResources", - ], -) - -apple_bundle( - name = "WatchAppExtension", - binary = ":WatchAppExtensionBinary", - extension = "appex", - info_plist = "Watch/Extension/Info.plist", - info_plist_substitutions = watch_extension_info_plist_substitutions(), - xcode_product_type = "com.apple.product-type.watchkit2-extension", -) - -apple_resource( - name = "WatchAppResources", - dirs = [], - files = glob(["Watch/Extension/Resources/*.png"]) -) - -apple_asset_catalog( - name = "WatchAppAssets", - dirs = [ - "Watch/App/Assets.xcassets", - ], - app_icon = "AppIcon", - visibility = ["PUBLIC"], -) - -apple_resource( - name = "WatchAppInterface", - files = [ - "Watch/App/Base.lproj/Interface.storyboard", - ], - visibility = ["PUBLIC"], -) - -apple_binary( - name = "WatchAppBinary", - configs = watch_binary_configs(), - deps = [ - ":WatchAppResources", - ":WatchAppAssets", - ":WatchAppInterface", - ":WatchAppStringResources", - ], -) - -apple_bundle( - name = "WatchApp", - binary = ":WatchAppBinary", - visibility = [ - "//:", - ], - extension = "app", - info_plist = "Watch/App/Info.plist", - info_plist_substitutions = watch_info_plist_substitutions(), - xcode_product_type = "com.apple.product-type.application.watchapp2", - deps = [ - ":WatchAppExtension", - ], -) - -# Package - -apple_package( - name = "AppPackage", - bundle = ":Telegram", -) - -xcode_workspace_config( - name = "workspace", - workspace_name = "Telegram_Buck", - src_target = ":Telegram", -) diff --git a/Config/BUCK b/Config/BUCK deleted file mode 100644 index babd7d22cd..0000000000 --- a/Config/BUCK +++ /dev/null @@ -1,10 +0,0 @@ -# This file can be depended upon for any apple_test_lib rules. -genrule( - name = "test_info_plist", - visibility = ["PUBLIC"], - srcs = [ - "BuckSupportFiles/TestInfo.plist", - ], - out = 'TestInfo.plist', - cmd = 'cp $SRCDIR/BuckSupportFiles/TestInfo.plist $OUT', -) diff --git a/Config/BuckSupportFiles/TestInfo.plist b/Config/BuckSupportFiles/TestInfo.plist deleted file mode 100644 index 6c40a6cd0c..0000000000 --- a/Config/BuckSupportFiles/TestInfo.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Config/buck_rule_macros.bzl b/Config/buck_rule_macros.bzl deleted file mode 100644 index 0c101f023a..0000000000 --- a/Config/buck_rule_macros.bzl +++ /dev/null @@ -1,321 +0,0 @@ -load("//Config:utils.bzl", - "library_configs", - "dynamic_library_configs", -) - -text_section_items = [ - "__text", -] - -text_section_rename_linker_flags = [] #["-Wl,-rename_section,__TEXT,%s,__MEXT,%s" % (name, name) for name in text_section_items] + ["-Wl,-segprot,__MEXT,rx,rx"] - -section_rename_linker_flags = text_section_rename_linker_flags - -def apple_lib( - name, - visibility = ["PUBLIC"], - srcs = [], - headers = [], - exported_headers = [], - extra_xcode_files = [], - deps = [], - exported_deps = [], - additional_linker_flags = None, - exported_preprocessor_flags = [], - exported_linker_flags = [], - frameworks = [], - weak_frameworks = [], - swift_version = None, - modular = True, - compiler_flags = None, - platform_compiler_flags = None, - swift_compiler_flags = None, - warning_as_error = False, - suppress_warnings = False, - has_cpp = False, - framework = False): - swift_version = swift_version or native.read_config('swift', 'version') - swift_compiler_flags = swift_compiler_flags or [] - - resolved_frameworks = frameworks - - if native.read_config("xcode", "beta") == "True": - warning_as_error = False - - if platform_compiler_flags != None: - if compiler_flags != None: - fail("compiler_flags and platform_compiler_flags are mutually exclusive") - compiler_flags = [] - for i in range(len(platform_compiler_flags)): - if warning_as_error: - platform_compiler_flags[i][1].append("-Werror") - elif suppress_warnings: - platform_compiler_flags[i][1].append("-w") - else: - compiler_flags = compiler_flags or [] - if warning_as_error: - compiler_flags.append("-Werror") - elif suppress_warnings: - compiler_flags.append("-w") - - if warning_as_error: - swift_compiler_flags.append("-warnings-as-errors") - elif suppress_warnings: - swift_compiler_flags.append("-suppress-warnings") - - if framework: - additional_linker_flags = additional_linker_flags or [] - if has_cpp: - linker_flags = [ - "-lc++", - "-lz" - ] - else: - linker_flags = [] - - if native.read_config("custom", "mode") == "project": - resolved_linker_flags = linker_flags + additional_linker_flags + ["-Wl,-install_name,@rpath/lib%s.dylib" % (name)] - resolved_frameworks = resolved_frameworks + ["$SDKROOT/System/Library/Frameworks/%s.framework" % x for x in weak_frameworks] - else: - resolved_linker_flags = linker_flags + additional_linker_flags + ["-Wl,-install_name,@rpath/%s.framework/%s" % (name, name)] - for framework in weak_frameworks: - resolved_linker_flags = resolved_linker_flags + ["-Wl,-weak_framework,%s" % framework] - - resolved_linker_flags = resolved_linker_flags + section_rename_linker_flags - - native.apple_library( - name = name + "", - srcs = srcs, - header_namespace = name, - module_name = name, - soname = "lib" + name + ".dylib", - headers = headers, - exported_headers = exported_headers, - deps = deps, - exported_deps = exported_deps, - extra_xcode_files = extra_xcode_files, - frameworks = resolved_frameworks, - visibility = visibility, - swift_version = swift_version, - configs = dynamic_library_configs(), - modular = modular, - compiler_flags = compiler_flags, - platform_compiler_flags = platform_compiler_flags, - swift_compiler_flags = swift_compiler_flags, - preferred_linkage = "shared", - #link_style = "static", - linker_flags = resolved_linker_flags, - ) - else: - additional_linker_flags = additional_linker_flags or [] - if has_cpp: - linker_flags = [ - "-lc++", - "-lz" - ] - else: - linker_flags = [] - - resolved_exported_linker_flags = exported_linker_flags + linker_flags + additional_linker_flags - - if native.read_config("custom", "mode") == "project": - resolved_frameworks = resolved_frameworks + ["$SDKROOT/System/Library/Frameworks/%s.framework" % x for x in weak_frameworks] - else: - for framework in weak_frameworks: - resolved_exported_linker_flags = resolved_exported_linker_flags + ["-Wl,-weak_framework,%s" % framework] - - native.apple_library( - name = name, - srcs = srcs, - headers = headers, - exported_headers = exported_headers, - deps = deps, - exported_deps = exported_deps, - exported_linker_flags = resolved_exported_linker_flags, - extra_xcode_files = extra_xcode_files, - frameworks = resolved_frameworks, - visibility = visibility, - swift_version = swift_version, - configs = library_configs(), - modular = modular, - compiler_flags = compiler_flags, - platform_compiler_flags = platform_compiler_flags, - swift_compiler_flags = swift_compiler_flags, - preferred_linkage = "static", - exported_preprocessor_flags = exported_preprocessor_flags, - ) - -def static_library( - name, - visibility = ["PUBLIC"], - has_cpp = False, - srcs = [], - headers = [], - exported_headers = [], - extra_xcode_files = [], - deps = [], - additional_linker_flags = None, - exported_preprocessor_flags = [], - exported_linker_flags = [], - frameworks = [], - weak_frameworks = [], - info_plist = None, - info_plist_substitutions = {}, - modular = True, - compiler_flags = None, - platform_compiler_flags = None, - swift_compiler_flags = None, - warning_as_error = False, - suppress_warnings = True - ): - apple_lib( - name = name, - srcs = srcs, - has_cpp = has_cpp, - exported_headers = exported_headers, - headers = headers, - modular = modular, - compiler_flags = compiler_flags, - platform_compiler_flags = platform_compiler_flags, - swift_compiler_flags = swift_compiler_flags, - extra_xcode_files = extra_xcode_files, - deps = deps, - additional_linker_flags = additional_linker_flags, - exported_preprocessor_flags = exported_preprocessor_flags, - exported_linker_flags = exported_linker_flags, - frameworks = frameworks, - weak_frameworks = weak_frameworks, - warning_as_error = warning_as_error, - suppress_warnings = suppress_warnings - ) - -def framework( - name, - visibility = ["PUBLIC"], - has_cpp = False, - srcs = [], - headers = [], - exported_headers = [], - extra_xcode_files = [], - deps = [], - exported_deps = [], - additional_linker_flags = None, - frameworks = [], - weak_frameworks = [], - info_plist = None, - info_plist_substitutions = {}, - modular = True, - compiler_flags = None, - platform_compiler_flags = None, - swift_compiler_flags = None, - warning_as_error = False, - suppress_warnings = True): - apple_lib( - name = name, - srcs = srcs, - has_cpp = has_cpp, - exported_headers = exported_headers, - headers = headers, - modular = modular, - compiler_flags = compiler_flags, - platform_compiler_flags = platform_compiler_flags, - swift_compiler_flags = swift_compiler_flags, - extra_xcode_files = extra_xcode_files, - deps = deps, - exported_deps = exported_deps, - additional_linker_flags = additional_linker_flags, - frameworks = frameworks, - weak_frameworks = weak_frameworks, - warning_as_error = warning_as_error, - suppress_warnings = suppress_warnings, - framework = True - ) - - -CXX_SRC_EXT = ["mm", "cpp", "S"] -def apple_cxx_lib( - srcs = [], - additional_exported_linker_flags = [], - **kwargs): - c_srcs, cxx_srcs = [], [] - - cxx_compile_flags = native.read_config("cxx", "cxxflags").split(" ") - cxx_compile_flags.append("-w") - - for file_ in srcs: - if file_.split(".")[-1] in CXX_SRC_EXT: - cxx_srcs.append((file_, cxx_compile_flags)) - else: - c_srcs.append(file_) - apple_lib( - srcs = c_srcs + cxx_srcs, - exported_linker_flags = [ - "-lc++", - "-lz" - ] + additional_exported_linker_flags, - **kwargs - ) - -def framework_binary_dependencies(names): - result = [] - for name in names: - result.append(name + "#shared") - return result - -def framework_bundle_dependencies(names): - result = [] - if native.read_config("custom", "mode") == "project": - for name in names: - pass - else: - for name in names: - result.append(name + "#shared") - return result - -def gen_header_targets(header_paths, prefix, flavor, source_rule, source_path): - result = dict() - for header_path in header_paths: - name = prefix + header_path.replace('/', '_sub_') - native.genrule( - name = name + flavor, - cmd = 'cp $(location :' + source_rule + ')/' + source_path + '/' + header_path + ' $OUT', - out = name, - ) - result[header_path] = ':' + name + flavor - return result - -def merge_maps(dicts): - result = dict() - for d in dicts: - for key in d: - if key in result and result[key] != d[key]: - fail( - "Conflicting files in file search paths. " + - "\"%s\" maps to both \"%s\" and \"%s\"." % - (key, result[key], d[key]), - ) - result.update(d) - return result - -def basename(p): - return p.rpartition("/")[-1] - -def glob_map(glob_results): - result = dict() - for path in glob_results: - file_name = basename(path) - if file_name in result: - fail('\"%s\" maps to both \"%s\" and \"%s\"' % (file_name, result[file_name], path)) - result[file_name] = path - return result - -def glob_sub_map(prefix, glob_specs, exclude = []): - result = dict() - for path in native.glob(glob_specs, exclude = exclude): - if not path.startswith(prefix): - fail('\"%s\" does not start with \"%s\"' % (path, prefix)) - file_key = path[len(prefix):] - if file_key in result: - fail('\"%s\" maps to both \"%s\" and \"%s\"' % (file_key, result[file_key], path)) - result[file_key] = path - return result diff --git a/Telegram/BUCK b/Telegram/BUCK deleted file mode 100644 index 0ba80dc35b..0000000000 --- a/Telegram/BUCK +++ /dev/null @@ -1,548 +0,0 @@ -load("//Config:utils.bzl", - "library_configs", -) - -load("//Config:configs.bzl", - "app_binary_configs", - "share_extension_configs", - "widget_extension_configs", - "notification_content_extension_configs", - "notification_service_extension_configs", - "intents_extension_configs", - "watch_extension_binary_configs", - "watch_binary_configs", - "info_plist_substitutions", - "app_info_plist_substitutions", - "share_extension_info_plist_substitutions", - "widget_extension_info_plist_substitutions", - "notification_content_extension_info_plist_substitutions", - "notification_service_extension_info_plist_substitutions", - "intents_extension_info_plist_substitutions", - "watch_extension_info_plist_substitutions", - "watch_info_plist_substitutions", - "DEVELOPMENT_LANGUAGE", -) - -load("//Config:buck_rule_macros.bzl", - "apple_lib", - "framework_binary_dependencies", - "framework_bundle_dependencies", - "glob_map", - "glob_sub_map", - "merge_maps", -) - -framework_dependencies = [ - "//submodules/MtProtoKit:MtProtoKit", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit", - "//submodules/Postbox:Postbox", - "//submodules/TelegramApi:TelegramApi", - "//submodules/SyncCore:SyncCore", - "//submodules/TelegramCore:TelegramCore", - "//submodules/AsyncDisplayKit:AsyncDisplayKit", - "//submodules/Display:Display", - "//submodules/TelegramUI:TelegramUI", -] - -resource_dependencies = [ - "//submodules/LegacyComponents:LegacyComponentsAssets", - "//submodules/LegacyComponents:LegacyComponentsResources", - "//submodules/TelegramUI:TelegramUIAssets", - "//submodules/TelegramUI:TelegramUIResources", - #"//submodules/WalletUI:WalletUIAssets", - #"//submodules/WalletUI:WalletUIResources", - "//submodules/PasswordSetupUI:PasswordSetupUIResources", - "//submodules/PasswordSetupUI:PasswordSetupUIAssets", - "//submodules/OverlayStatusController:OverlayStatusControllerResources", - ":AppResources", - ":AppStringResources", - ":InfoPlistStringResources", - ":AppIntentVocabularyResources", - ":Icons", - ":AdditionalIcons", - ":LaunchScreen", -] - -build_phase_scripts = [ -] - -apple_resource( - name = "AppResources", - files = glob([ - "Telegram-iOS/Resources/**/*", - ], exclude = ["Telegram-iOS/Resources/**/.*"]), - visibility = ["PUBLIC"], -) - -apple_resource( - name = "AppStringResources", - files = [], - variants = glob([ - "Telegram-iOS/*.lproj/Localizable.strings", - ]), - visibility = ["PUBLIC"], -) - -apple_resource( - name = "AppIntentVocabularyResources", - files = [], - variants = glob([ - "Telegram-iOS/*.lproj/AppIntentVocabulary.plist", - ]), - visibility = ["PUBLIC"], -) - -apple_resource( - name = "InfoPlistStringResources", - files = [], - variants = glob([ - "Telegram-iOS/*.lproj/InfoPlist.strings", - ]), - visibility = ["PUBLIC"], -) - -apple_asset_catalog( - name = "Icons", - dirs = [ - "Telegram-iOS/Icons.xcassets", - "Telegram-iOS/AppIcons.xcassets", - ], - app_icon = "AppIconLLC", - visibility = ["PUBLIC"], -) - -apple_resource( - name = "AdditionalIcons", - files = glob([ - "Telegram-iOS/*.png", - ]), - visibility = ["PUBLIC"], -) - -apple_resource( - name = "LaunchScreen", - files = [ - "Telegram-iOS/Base.lproj/LaunchScreen.xib", - ], - visibility = ["PUBLIC"], -) - -apple_library( - name = "AppLibrary", - visibility = [ - "//...", - ], - configs = library_configs(), - swift_version = native.read_config("swift", "version"), - srcs = [ - "Telegram-iOS/main.m", - "Telegram-iOS/Application.swift" - ], - deps = [ - ] - + framework_binary_dependencies(framework_dependencies), -) - -apple_binary( - name = "AppBinary", - visibility = [ - "//...", - ], - configs = app_binary_configs(), - swift_version = native.read_config("swift", "version"), - srcs = [ - "SupportFiles/Empty.swift", - ], - deps = [ - ":AppLibrary", - ] - + resource_dependencies, -) - -apple_bundle( - name = "Telegram", - visibility = [ - "//Telegram:...", - ], - extension = "app", - binary = ":AppBinary", - product_name = "Telegram", - info_plist = "Telegram-iOS/Info.plist", - info_plist_substitutions = app_info_plist_substitutions(), - deps = [ - ":ShareExtension", - ":WidgetExtension", - ":NotificationContentExtension", - ":NotificationServiceExtension", - ":IntentsExtension", - ":WatchApp#watch", - ] - + framework_bundle_dependencies(framework_dependencies), -) - -# Share Extension - -apple_binary( - name = "ShareBinary", - srcs = glob([ - "Share/**/*.swift", - ]), - configs = share_extension_configs(), - linker_flags = [ - "-e", - "_NSExtensionMain", - "-Xlinker", - "-rpath", - "-Xlinker", - "/usr/lib/swift", - "-Xlinker", - "-rpath", - "-Xlinker", - "@executable_path/../../Frameworks", - ], - deps = [ - "//submodules/TelegramUI:TelegramUI#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) - -apple_bundle( - name = "ShareExtension", - binary = ":ShareBinary", - extension = "appex", - info_plist = "Share/Info.plist", - info_plist_substitutions = share_extension_info_plist_substitutions(), - deps = [ - ], - xcode_product_type = "com.apple.product-type.app-extension", -) - -# Widget - -apple_binary( - name = "WidgetBinary", - srcs = glob([ - "Widget/**/*.swift", - ]), - configs = widget_extension_configs(), - swift_compiler_flags = [ - "-application-extension", - ], - linker_flags = [ - "-e", - "_NSExtensionMain", - "-Xlinker", - "-rpath", - "-Xlinker", - "/usr/lib/swift", - "-Xlinker", - "-rpath", - "-Xlinker", - "@executable_path/../../Frameworks", - ], - deps = [ - "//submodules/BuildConfig:BuildConfig", - "//submodules/WidgetItems:WidgetItems", - "//submodules/AppLockState:AppLockState", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/NotificationCenter.framework", - ], -) - -apple_bundle( - name = "WidgetExtension", - binary = ":WidgetBinary", - extension = "appex", - info_plist = "Widget/Info.plist", - info_plist_substitutions = widget_extension_info_plist_substitutions(), - deps = [ - ], - xcode_product_type = "com.apple.product-type.app-extension", -) - -# Notification Content - -apple_binary( - name = "NotificationContentBinary", - srcs = glob([ - "NotificationContent/**/*.swift", - ]), - configs = notification_content_extension_configs(), - swift_compiler_flags = [ - "-application-extension", - ], - linker_flags = [ - "-e", - "_NSExtensionMain", - "-Xlinker", - "-rpath", - "-Xlinker", - "/usr/lib/swift", - "-Xlinker", - "-rpath", - "-Xlinker", - "@executable_path/../../Frameworks", - ], - deps = [ - "//submodules/TelegramUI:TelegramUI#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UserNotificationsUI.framework", - ], -) - -apple_bundle( - name = "NotificationContentExtension", - binary = ":NotificationContentBinary", - extension = "appex", - info_plist = "NotificationContent/Info.plist", - info_plist_substitutions = notification_content_extension_info_plist_substitutions(), - deps = [ - ], - xcode_product_type = "com.apple.product-type.app-extension", -) - -#Notification Service - -apple_binary( - name = "NotificationServiceBinary", - srcs = glob([ - "NotificationService/Sources/*.swift", - ]), - configs = notification_service_extension_configs(), - swift_compiler_flags = [ - "-application-extension", - ], - linker_flags = [ - "-e", - "_NSExtensionMain", - "-Xlinker", - "-rpath", - "-Xlinker", - "/usr/lib/swift", - "-Xlinker", - "-rpath", - "-Xlinker", - "@executable_path/../../Frameworks", - ], - deps = [ - "//Telegram/NotificationService/NotificationServiceObjC:NotificationServiceObjC", - "//submodules/BuildConfig:BuildConfig", - "//submodules/MtProtoKit:MtProtoKit#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/EncryptionProvider:EncryptionProvider", - "//submodules/Database/ValueBox:ValueBox", - "//submodules/Database/PostboxDataTypes:PostboxDataTypes", - "//submodules/Database/MessageHistoryReadStateTable:MessageHistoryReadStateTable", - "//submodules/Database/MessageHistoryMetadataTable:MessageHistoryMetadataTable", - "//submodules/Database/PreferencesTable:PreferencesTable", - "//submodules/Database/PeerTable:PeerTable", - "//submodules/sqlcipher:sqlcipher", - "//submodules/AppLockState:AppLockState", - "//submodules/NotificationsPresentationData:NotificationsPresentationData", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UserNotifications.framework", - ], -) - -apple_bundle( - name = "NotificationServiceExtension", - binary = ":NotificationServiceBinary", - extension = "appex", - info_plist = "NotificationService/Info.plist", - info_plist_substitutions = notification_service_extension_info_plist_substitutions(), - deps = [ - ], - xcode_product_type = "com.apple.product-type.app-extension", -) - -# Intents - -apple_binary( - name = "IntentsBinary", - srcs = glob([ - "SiriIntents/**/*.swift", - ]), - configs = intents_extension_configs(), - swift_compiler_flags = [ - "-application-extension", - ], - linker_flags = [ - "-e", - "_NSExtensionMain", - "-Xlinker", - "-rpath", - "-Xlinker", - "/usr/lib/swift", - "-Xlinker", - "-rpath", - "-Xlinker", - "@executable_path/../../Frameworks", - ], - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramApi:TelegramApi#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/BuildConfig:BuildConfig", - "//submodules/OpenSSLEncryptionProvider:OpenSSLEncryptionProvider", - "//submodules/AppLockState:AppLockState", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/Intents.framework", - "$SDKROOT/System/Library/Frameworks/Contacts.framework", - ], -) - -apple_bundle( - name = "IntentsExtension", - binary = ":IntentsBinary", - extension = "appex", - info_plist = "SiriIntents/Info.plist", - info_plist_substitutions = intents_extension_info_plist_substitutions(), - deps = [ - ], - xcode_product_type = "com.apple.product-type.app-extension", -) - -# Watch - -apple_resource( - name = "WatchAppStringResources", - files = [], - variants = glob([ - "Telegram-iOS/*.lproj/Localizable.strings", - ]), - visibility = ["PUBLIC"], -) - -apple_resource( - name = "WatchAppExtensionResources", - files = glob([ - "Watch/Extension/Resources/**/*", - ], exclude = ["Watch/Extension/Resources/**/.*"]), - visibility = ["PUBLIC"], -) - -apple_binary( - name = "WatchAppExtensionBinary", - srcs = glob([ - "Watch/Extension/**/*.m", - "Watch/SSignalKit/**/*.m", - "Watch/Bridge/**/*.m", - "Watch/WatchCommonWatch/**/*.m", - ]), - headers = merge_maps([ - glob_map(glob([ - "Watch/Extension/*.h", - "Watch/Bridge/*.h", - ])), - glob_sub_map("Watch/Extension/", glob([ - "Watch/Extension/SSignalKit/*.h", - ])), - glob_sub_map("Watch/", glob([ - "Watch/WatchCommonWatch/*.h", - ])), - ]), - compiler_flags = [ - "-DTARGET_OS_WATCH=1", - ], - linker_flags = [ - "-e", - "_WKExtensionMain", - "-lWKExtensionMainLegacy", - ], - configs = watch_extension_binary_configs(), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/UserNotifications.framework", - "$SDKROOT/System/Library/Frameworks/CoreLocation.framework", - "$SDKROOT/System/Library/Frameworks/CoreGraphics.framework", - ], - deps = [ - ":WatchAppStringResources", - ":WatchAppExtensionResources", - ], -) - -apple_bundle( - name = "WatchAppExtension", - binary = ":WatchAppExtensionBinary", - extension = "appex", - info_plist = "Watch/Extension/Info.plist", - info_plist_substitutions = watch_extension_info_plist_substitutions(), - xcode_product_type = "com.apple.product-type.watchkit2-extension", -) - -apple_resource( - name = "WatchAppResources", - dirs = [], - files = glob(["Watch/Extension/Resources/*.png"]) -) - -apple_asset_catalog( - name = "WatchAppAssets", - dirs = [ - "Watch/App/Assets.xcassets", - ], - app_icon = "AppIcon", - visibility = ["PUBLIC"], -) - -apple_resource( - name = "WatchAppInterface", - files = [ - "Watch/App/Base.lproj/Interface.storyboard", - ], - visibility = ["PUBLIC"], -) - -apple_binary( - name = "WatchAppBinary", - configs = watch_binary_configs(), - deps = [ - ":WatchAppResources", - ":WatchAppAssets", - ":WatchAppInterface", - ":WatchAppStringResources", - ], -) - -apple_bundle( - name = "WatchApp", - binary = ":WatchAppBinary", - visibility = [ - "//Telegram:...", - ], - extension = "app", - info_plist = "Watch/App/Info.plist", - info_plist_substitutions = watch_info_plist_substitutions(), - xcode_product_type = "com.apple.product-type.application.watchapp2", - deps = [ - ":WatchAppExtension", - ], -) - -# Package - -apple_package( - name = "AppPackage", - bundle = ":Telegram", -) - -xcode_workspace_config( - name = "workspace", - workspace_name = "Telegram_Buck", - src_target = ":Telegram", -) diff --git a/Telegram/BUILD b/Telegram/BUILD index 45d52d72a5..f3ad0c827a 100644 --- a/Telegram/BUILD +++ b/Telegram/BUILD @@ -1,3 +1,7 @@ +load("@bazel_skylib//rules:common_settings.bzl", + "bool_flag", +) + load("@build_bazel_rules_apple//apple:ios.bzl", "ios_application", "ios_extension", @@ -18,13 +22,10 @@ load("//build-system/bazel-utils:plist_fragment.bzl", ) load( - "//build-input/data:variables.bzl", - "telegram_build_number", - "telegram_version", + "@build_configuration//:variables.bzl", "telegram_bundle_id", "telegram_aps_environment", "telegram_team_id", - "telegram_disable_extensions", ) config_setting( @@ -34,6 +35,19 @@ config_setting( }, ) +bool_flag( + name = "disableExtensions", + build_setting_default = False, + visibility = ["//visibility:public"], +) + +config_setting( + name = "disableExtensionsSetting", + flag_values = { + ":disableExtensions": "True", + }, +) + genrule( name = "empty", outs = ["empty.swift"], @@ -190,14 +204,20 @@ swift_library( ) plist_fragment( - name = "AdditionalInfoPlist", + name = "BuildNumberInfoPlist", extension = "plist", template = """ - CFBundleShortVersionString - {telegram_version} CFBundleVersion - {telegram_build_number} + {buildNumber} + """ +) + +plist_fragment( + name = "UrlTypesInfoPlist", + extension = "plist", + template = + """ CFBundleURLTypes @@ -210,16 +230,6 @@ plist_fragment( telegram - - CFBundleTypeRole - Viewer - CFBundleURLName - {telegram_bundle_id}.ton - CFBundleURLSchemes - - ton - - CFBundleTypeRole Viewer @@ -232,8 +242,6 @@ plist_fragment( """.format( - telegram_version = telegram_version, - telegram_build_number = telegram_build_number, telegram_bundle_id = telegram_bundle_id, ) ) @@ -371,13 +379,8 @@ plist_fragment( template = """ CFBundleShortVersionString - {telegram_version} - CFBundleVersion - {telegram_build_number} - """.format( - telegram_version = telegram_version, - telegram_build_number = telegram_build_number, - ) + {telegramVersion} + """ ) plist_fragment( @@ -478,11 +481,12 @@ watchos_extension( infoplists = [ ":WatchExtensionInfoPlist", ":VersionInfoPlist", + ":BuildNumberInfoPlist", ":AppNameInfoPlist", ":WatchExtensionNSExtensionInfoPlist", ], minimum_os_version = "5.0", - provisioning_profile = "//build-input/data/provisioning-profiles:WatchExtension.mobileprovision", + provisioning_profile = "@build_configuration//provisioning:WatchExtension.mobileprovision", resources = [ ":TelegramWatchExtensionResources", ], @@ -505,11 +509,12 @@ watchos_application( infoplists = [ ":WatchAppInfoPlist", ":VersionInfoPlist", + "BuildNumberInfoPlist", ":AppNameInfoPlist", ":WatchAppCompanionInfoPlist", ], minimum_os_version = "5.0", - provisioning_profile = "//build-input/data/provisioning-profiles:WatchApp.mobileprovision", + provisioning_profile = "@build_configuration//provisioning:WatchApp.mobileprovision", resources = [ ":TelegramWatchAppResources", ":TelegramWatchAppAssets", @@ -528,20 +533,14 @@ plist_fragment( """ CFBundleIdentifier {telegram_bundle_id}.MtProtoKit - CFBundleVersion - {telegram_build_number} CFBundleDevelopmentRegion en CFBundleName MtProtoKit - CFBundleShortVersionString - {telegram_version} CFBundlePackageType FMWK """.format( telegram_bundle_id = telegram_bundle_id, - telegram_version = telegram_version, - telegram_build_number = telegram_build_number, ) ) @@ -556,6 +555,8 @@ ios_framework( ], infoplists = [ ":MtProtoKitInfoPlist", + ":BuildNumberInfoPlist", + ":VersionInfoPlist", ], minimum_os_version = "9.0", ipa_post_processor = strip_framework, @@ -571,20 +572,14 @@ plist_fragment( """ CFBundleIdentifier {telegram_bundle_id}.SwiftSignalKit - CFBundleVersion - {telegram_build_number} CFBundleDevelopmentRegion en CFBundleName SwiftSignalKit - CFBundleShortVersionString - {telegram_version} CFBundlePackageType FMWK """.format( telegram_bundle_id = telegram_bundle_id, - telegram_version = telegram_version, - telegram_build_number = telegram_build_number, ) ) @@ -599,6 +594,8 @@ ios_framework( ], infoplists = [ ":SwiftSignalKitInfoPlist", + ":BuildNumberInfoPlist", + ":VersionInfoPlist", ], minimum_os_version = "9.0", ipa_post_processor = strip_framework, @@ -614,20 +611,14 @@ plist_fragment( """ CFBundleIdentifier {telegram_bundle_id}.Postbox - CFBundleVersion - {telegram_build_number} CFBundleDevelopmentRegion en CFBundleName Postbox - CFBundleShortVersionString - {telegram_version} CFBundlePackageType FMWK """.format( telegram_bundle_id = telegram_bundle_id, - telegram_version = telegram_version, - telegram_build_number = telegram_build_number, ) ) @@ -642,6 +633,8 @@ ios_framework( ], infoplists = [ ":PostboxInfoPlist", + ":BuildNumberInfoPlist", + ":VersionInfoPlist", ], frameworks = [ ":SwiftSignalKitFramework", @@ -660,20 +653,14 @@ plist_fragment( """ CFBundleIdentifier {telegram_bundle_id}.TelegramApi - CFBundleVersion - {telegram_build_number} CFBundleDevelopmentRegion en CFBundleName TelegramApi - CFBundleShortVersionString - {telegram_version} CFBundlePackageType FMWK """.format( telegram_bundle_id = telegram_bundle_id, - telegram_version = telegram_version, - telegram_build_number = telegram_build_number, ) ) @@ -688,6 +675,8 @@ ios_framework( ], infoplists = [ ":TelegramApiInfoPlist", + ":BuildNumberInfoPlist", + ":VersionInfoPlist", ], minimum_os_version = "9.0", ipa_post_processor = strip_framework, @@ -703,20 +692,14 @@ plist_fragment( """ CFBundleIdentifier {telegram_bundle_id}.SyncCore - CFBundleVersion - {telegram_build_number} CFBundleDevelopmentRegion en CFBundleName SyncCore - CFBundleShortVersionString - {telegram_version} CFBundlePackageType FMWK """.format( telegram_bundle_id = telegram_bundle_id, - telegram_version = telegram_version, - telegram_build_number = telegram_build_number, ) ) @@ -731,6 +714,8 @@ ios_framework( ], infoplists = [ ":SyncCoreInfoPlist", + ":BuildNumberInfoPlist", + ":VersionInfoPlist", ], frameworks = [ ":SwiftSignalKitFramework", @@ -750,20 +735,14 @@ plist_fragment( """ CFBundleIdentifier {telegram_bundle_id}.TelegramCore - CFBundleVersion - {telegram_build_number} CFBundleDevelopmentRegion en CFBundleName TelegramCore - CFBundleShortVersionString - {telegram_version} CFBundlePackageType FMWK """.format( telegram_bundle_id = telegram_bundle_id, - telegram_version = telegram_version, - telegram_build_number = telegram_build_number, ) ) @@ -778,13 +757,14 @@ ios_framework( ], infoplists = [ ":TelegramCoreInfoPlist", + ":BuildNumberInfoPlist", + ":VersionInfoPlist", ], frameworks = [ ":MtProtoKitFramework", ":SwiftSignalKitFramework", ":PostboxFramework", ":SyncCoreFramework", - #":TelegramApiFramework", ], minimum_os_version = "9.0", ipa_post_processor = strip_framework, @@ -800,20 +780,14 @@ plist_fragment( """ CFBundleIdentifier {telegram_bundle_id}.AsyncDisplayKit - CFBundleVersion - {telegram_build_number} CFBundleDevelopmentRegion en CFBundleName AsyncDisplayKit - CFBundleShortVersionString - {telegram_version} CFBundlePackageType FMWK """.format( telegram_bundle_id = telegram_bundle_id, - telegram_version = telegram_version, - telegram_build_number = telegram_build_number, ) ) @@ -828,6 +802,8 @@ ios_framework( ], infoplists = [ ":AsyncDisplayKitInfoPlist", + ":BuildNumberInfoPlist", + ":VersionInfoPlist", ], minimum_os_version = "9.0", ipa_post_processor = strip_framework, @@ -843,20 +819,14 @@ plist_fragment( """ CFBundleIdentifier {telegram_bundle_id}.Display - CFBundleVersion - {telegram_build_number} CFBundleDevelopmentRegion en CFBundleName Display - CFBundleShortVersionString - {telegram_version} CFBundlePackageType FMWK """.format( telegram_bundle_id = telegram_bundle_id, - telegram_version = telegram_version, - telegram_build_number = telegram_build_number, ) ) @@ -914,6 +884,8 @@ ios_framework( ], infoplists = [ ":DisplayInfoPlist", + ":BuildNumberInfoPlist", + ":VersionInfoPlist", ], frameworks = [ ":SwiftSignalKitFramework", @@ -933,20 +905,14 @@ plist_fragment( """ CFBundleIdentifier {telegram_bundle_id}.TelegramUI - CFBundleVersion - {telegram_build_number} CFBundleDevelopmentRegion en CFBundleName TelegramUI - CFBundleShortVersionString - {telegram_version} CFBundlePackageType FMWK """.format( telegram_bundle_id = telegram_bundle_id, - telegram_version = telegram_version, - telegram_build_number = telegram_build_number, ) ) @@ -961,12 +927,13 @@ ios_framework( ], infoplists = [ ":TelegramUIInfoPlist", + ":BuildNumberInfoPlist", + ":VersionInfoPlist", ], frameworks = [ ":MtProtoKitFramework", ":SwiftSignalKitFramework", ":PostboxFramework", - #":TelegramApiFramework", ":SyncCoreFramework", ":TelegramCoreFramework", ":AsyncDisplayKitFramework", @@ -1052,10 +1019,11 @@ ios_extension( infoplists = [ ":ShareInfoPlist", ":VersionInfoPlist", + ":BuildNumberInfoPlist", ":AppNameInfoPlist", ], minimum_os_version = "9.0", - provisioning_profile = "//build-input/data/provisioning-profiles:Share.mobileprovision", + provisioning_profile = "@build_configuration//provisioning:Share.mobileprovision", deps = [":ShareExtensionLib"], frameworks = [ ":TelegramUIFramework" @@ -1120,10 +1088,11 @@ ios_extension( infoplists = [ ":NotificationContentInfoPlist", ":VersionInfoPlist", + ":BuildNumberInfoPlist", ":AppNameInfoPlist", ], minimum_os_version = "10.0", - provisioning_profile = "//build-input/data/provisioning-profiles:NotificationContent.mobileprovision", + provisioning_profile = "@build_configuration//provisioning:NotificationContent.mobileprovision", deps = [":NotificationContentExtensionLib"], frameworks = [ ":TelegramUIFramework" @@ -1182,11 +1151,12 @@ ios_extension( infoplists = [ ":WidgetInfoPlist", ":VersionInfoPlist", + ":BuildNumberInfoPlist", ":AppNameInfoPlist", ], minimum_os_version = "14.0", provides_main = True, - provisioning_profile = "//build-input/data/provisioning-profiles:Widget.mobileprovision", + provisioning_profile = "@build_configuration//provisioning:Widget.mobileprovision", deps = [":WidgetExtensionLib"], frameworks = [], ) @@ -1261,16 +1231,16 @@ ios_extension( infoplists = [ ":IntentsInfoPlist", ":VersionInfoPlist", + ":BuildNumberInfoPlist", ":AppNameInfoPlist", ], minimum_os_version = "10.0", - provisioning_profile = "//build-input/data/provisioning-profiles:Intents.mobileprovision", + provisioning_profile = "@build_configuration//provisioning:Intents.mobileprovision", deps = [":IntentsExtensionLib"], frameworks = [ ":SwiftSignalKitFramework", ":PostboxFramework", ":TelegramCoreFramework", - #":TelegramApiFramework", ":SyncCoreFramework", ], ) @@ -1312,17 +1282,16 @@ ios_extension( infoplists = [ ":NotificationServiceInfoPlist", ":VersionInfoPlist", + ":BuildNumberInfoPlist", ":AppNameInfoPlist", ], minimum_os_version = "10.0", - provisioning_profile = "//build-input/data/provisioning-profiles:NotificationService.mobileprovision", + provisioning_profile = "@build_configuration//provisioning:NotificationService.mobileprovision", deps = ["//Telegram/NotificationService:NotificationServiceExtensionLib"], frameworks = [ ":MtProtoKitFramework", ":SwiftSignalKitFramework", ":PostboxFramework", - #":TelegramApiFramework", - #":SyncCoreFramework", ], ) @@ -1503,11 +1472,13 @@ ios_application( ), families = ["iphone", "ipad"], minimum_os_version = "9.0", - provisioning_profile = "//build-input/data/provisioning-profiles:Telegram.mobileprovision", + provisioning_profile = "@build_configuration//provisioning:Telegram.mobileprovision", entitlements = ":TelegramEntitlements.entitlements", infoplists = [ ":TelegramInfoPlist", - ":AdditionalInfoPlist", + ":BuildNumberInfoPlist", + ":VersionInfoPlist", + ":UrlTypesInfoPlist", ], ipa_post_processor = ":AddAlternateIcons", resources = [ @@ -1528,13 +1499,16 @@ ios_application( strings = [ ":AppStringResources", ], - extensions = [] if telegram_disable_extensions else [ - ":ShareExtension", - ":NotificationContentExtension", - ":NotificationServiceExtension", - ":IntentsExtension", - #":WidgetExtension", - ], + extensions = select({ + ":disableExtensionsSetting": [], + "//conditions:default": [ + ":ShareExtension", + ":NotificationContentExtension", + ":NotificationServiceExtension", + ":IntentsExtension", + ":WidgetExtension", + ], + }), watch_application = ":TelegramWatchApp", deps = [ ":Main", diff --git a/Telegram/NotificationService/NotificationServiceObjC/BUCK b/Telegram/NotificationService/NotificationServiceObjC/BUCK deleted file mode 100644 index 4c0ef51377..0000000000 --- a/Telegram/NotificationService/NotificationServiceObjC/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "NotificationServiceObjC", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - "//submodules/BuildConfig:BuildConfig", - "//submodules/MtProtoKit:MtProtoKit#shared", - "//submodules/NotificationsPresentationData:NotificationsPresentationData", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/build-system/Make/BuildEnvironment.py b/build-system/Make/BuildEnvironment.py new file mode 100644 index 0000000000..ce0a313253 --- /dev/null +++ b/build-system/Make/BuildEnvironment.py @@ -0,0 +1,148 @@ +import json +import os +import platform +import subprocess + + +def is_apple_silicon(): + if platform.processor() == 'arm': + return True + else: + return False + + +def get_clean_env(): + clean_env = os.environ.copy() + clean_env['PATH'] = '/usr/bin:/bin:/usr/sbin:/sbin' + return clean_env + + +def resolve_executable(program): + def is_executable(fpath): + return os.path.isfile(fpath) and os.access(fpath, os.X_OK) + + for path in get_clean_env()["PATH"].split(os.pathsep): + executable_file = os.path.join(path, program) + if is_executable(executable_file): + return executable_file + return None + + +def run_executable_with_output(path, arguments): + executable_path = resolve_executable(path) + if executable_path is None: + raise Exception('Could not resolve {} to a valid executable file'.format(path)) + + process = subprocess.Popen( + [executable_path] + arguments, + stdout=subprocess.PIPE, + stderr=subprocess.STDOUT, + env=get_clean_env() + ) + output_data, _ = process.communicate() + output_string = output_data.decode('utf-8') + return output_string + + +def call_executable(arguments, use_clean_environment=True, check_result=True): + executable_path = resolve_executable(arguments[0]) + if executable_path is None: + raise Exception('Could not resolve {} to a valid executable file'.format(arguments[0])) + + if use_clean_environment: + resolved_env = get_clean_env() + else: + resolved_env = os.environ + + resolved_arguments = [executable_path] + arguments[1:] + + if check_result: + subprocess.check_call(resolved_arguments, env=resolved_env) + else: + subprocess.call(resolved_arguments, env=resolved_env) + + +def get_bazel_version(bazel_path): + command_result = run_executable_with_output(bazel_path, ['--version']).strip('\n') + if not command_result.startswith('bazel '): + raise Exception('{} is not a valid bazel binary'.format(bazel_path)) + command_result.replace('bazel ', '') + return command_result + + +def get_xcode_version(): + xcode_path = run_executable_with_output('xcode-select', ['-p']).strip('\n') + if not os.path.isdir(xcode_path): + print('The path reported by \'xcode-select -p\' does not exist') + exit(1) + + plist_path = '{}/../Info.plist'.format(xcode_path) + + info_plist_lines = run_executable_with_output('plutil', [ + '-p', plist_path + ]).split('\n') + + pattern = 'CFBundleShortVersionString" => ' + for line in info_plist_lines: + index = line.find(pattern) + if index != -1: + version = line[index + len(pattern):].strip('"') + return version + + print('Could not parse the Xcode version from {}'.format(plist_path)) + exit(1) + + +class BuildEnvironment: + def __init__( + self, + base_path, + bazel_path, + bazel_x86_64_path, + override_bazel_version, + override_xcode_version + ): + self.base_path = os.path.expanduser(base_path) + self.bazel_path = os.path.expanduser(bazel_path) + if bazel_x86_64_path is not None: + self.bazel_x86_64_path = os.path.expanduser(bazel_x86_64_path) + else: + self.bazel_x86_64_path = None + + configuration_path = os.path.join(self.base_path, 'versions.json') + with open(configuration_path) as file: + configuration_dict = json.load(file) + if configuration_dict['app'] is None: + raise Exception('Missing app version in {}'.format(configuration_path)) + else: + self.app_version = configuration_dict['app'] + if configuration_dict['bazel'] is None: + raise Exception('Missing bazel version in {}'.format(configuration_path)) + else: + self.bazel_version = configuration_dict['bazel'] + if configuration_dict['xcode'] is None: + raise Exception('Missing xcode version in {}'.format(configuration_path)) + else: + self.xcode_version = configuration_dict['xcode'] + + actual_bazel_version = get_bazel_version(self.bazel_path) + if actual_bazel_version != self.bazel_version: + if override_bazel_version: + print('Overriding the required bazel version {} with {} as reported by {}'.format( + self.bazel_version, actual_bazel_version, self.bazel_path)) + self.bazel_version = actual_bazel_version + else: + print('Required bazel version is {}, but {} is reported by {}'.format( + self.bazel_version, actual_bazel_version, self.bazel_path)) + exit(1) + + actual_xcode_version = get_xcode_version() + if actual_xcode_version != self.xcode_version: + if override_xcode_version: + print('Overriding the required Xcode version {} with {} as reported by \'xcode-select -p\''.format( + self.xcode_version, actual_xcode_version, self.bazel_path)) + self.xcode_version = actual_xcode_version + else: + print('Required Xcode version is {}, but {} is reported by \'xcode-select -p\''.format( + self.xcode_version, actual_xcode_version, self.bazel_path)) + exit(1) diff --git a/build-system/Make/Make.py b/build-system/Make/Make.py new file mode 100644 index 0000000000..214a6cd422 --- /dev/null +++ b/build-system/Make/Make.py @@ -0,0 +1,472 @@ +#!/bin/python3 + +import argparse +import os +import shlex +import sys +import tempfile + +from BuildEnvironment import is_apple_silicon, resolve_executable, call_executable, BuildEnvironment +from ProjectGeneration import generate + + +class BazelCommandLine: + def __init__(self, bazel_path, bazel_x86_64_path, override_bazel_version, override_xcode_version): + self.build_environment = BuildEnvironment( + base_path=os.getcwd(), + bazel_path=bazel_path, + bazel_x86_64_path=bazel_x86_64_path, + override_bazel_version=override_bazel_version, + override_xcode_version=override_xcode_version + ) + self.remote_cache = None + self.cache_dir = None + self.additional_args = None + self.build_number = None + self.configuration_args = None + self.configuration_path = None + + self.common_args = [ + # https://docs.bazel.build/versions/master/command-line-reference.html + # Ask bazel to print the actual resolved command line options. + '--announce_rc', + + # https://github.com/bazelbuild/rules_swift + # If enabled, Swift compilation actions will use the same global Clang module + # cache used by Objective-C compilation actions. This is disabled by default + # because under some circumstances Clang module cache corruption can cause the + # Swift compiler to crash (sometimes when switching configurations or syncing a + # repository), but disabling it also causes a noticeable build time regression + # so it can be explicitly re-enabled by users who are not affected by those + # crashes. + '--features=swift.use_global_module_cache', + + # https://docs.bazel.build/versions/master/command-line-reference.html + # Print the subcommand details in case of failure. + '--verbose_failures', + ] + + self.common_build_args = [ + # https://github.com/bazelbuild/rules_swift + # If enabled and whole module optimisation is being used, the `*.swiftdoc`, + # `*.swiftmodule` and `*-Swift.h` are generated with a separate action + # rather than as part of the compilation. + '--features=swift.split_derived_files_generation', + + # https://github.com/bazelbuild/rules_swift + # If enabled the skip function bodies frontend flag is passed when using derived + # files generation. + '--features=swift.skip_function_bodies_for_derived_files', + + # Set the number of parallel processes to match the available CPU core count. + '--jobs={}'.format(os.cpu_count()), + ] + + self.common_debug_args = [ + # https://github.com/bazelbuild/rules_swift + # If enabled, Swift compilation actions will use batch mode by passing + # `-enable-batch-mode` to `swiftc`. This is a new compilation mode as of + # Swift 4.2 that is intended to speed up non-incremental non-WMO builds by + # invoking a smaller number of frontend processes and passing them batches of + # source files. + '--features=swift.enable_batch_mode', + + # https://docs.bazel.build/versions/master/command-line-reference.html + # Set the number of parallel jobs per module to saturate the available CPU resources. + '--swiftcopt=-j{}'.format(os.cpu_count() - 1), + ] + + self.common_release_args = [ + # https://github.com/bazelbuild/rules_swift + # Enable whole module optimization. + '--features=swift.opt_uses_wmo', + + # https://github.com/bazelbuild/rules_swift + # Use -Osize instead of -O when building swift modules. + '--features=swift.opt_uses_osize', + + # --num-threads 0 forces swiftc to generate one object file per module; it: + # 1. resolves issues with the linker caused by the swift-objc mixing. + # 2. makes the resulting binaries significantly smaller (up to 9% for this project). + '--swiftcopt=-num-threads', '--swiftcopt=0', + + # Strip unsused code. + '--features=dead_strip', + '--objc_enable_binary_stripping', + + # Always embed bitcode into Watch binaries. This is required by the App Store. + '--apple_bitcode=watchos=embedded', + ] + + def add_remote_cache(self, host): + self.remote_cache = host + + def add_cache_dir(self, path): + self.cache_dir = path + + def add_additional_args(self, additional_args): + self.additional_args = additional_args + + def set_build_number(self, build_number): + self.build_number = build_number + + def set_configuration_path(self, path): + self.configuration_path = path + + def set_configuration(self, configuration): + if configuration == 'debug_arm64': + self.configuration_args = [ + # bazel debug build configuration + '-c', 'dbg', + + # Build single-architecture binaries. It is almost 2 times faster is 32-bit support is not required. + '--ios_multi_cpus=arm64', + + # Always build universal Watch binaries. + '--watchos_cpus=armv7k,arm64_32' + ] + self.common_debug_args + elif configuration == 'release_arm64': + self.configuration_args = [ + # bazel optimized build configuration + '-c', 'opt', + + # Build single-architecture binaries. It is almost 2 times faster is 32-bit support is not required. + '--ios_multi_cpus=arm64', + + # Always build universal Watch binaries. + '--watchos_cpus=armv7k,arm64_32' + ] + self.common_release_args + elif configuration == 'release': + self.configuration_args = [ + # bazel optimized build configuration + '-c', 'opt', + + # Build universal binaries. + '--ios_multi_cpus=armv7,arm64', + + # Always build universal Watch binaries. + '--watchos_cpus=armv7k,arm64_32' + + # Generate DSYM files when building. + '--apple_generate_dsym', + + # Require DSYM files as build output. + '--output_groups=+dsyms' + ] + self.common_release_args + else: + raise Exception('Unknown configuration {}'.format(configuration)) + + def invoke_clean(self): + combined_arguments = [ + self.build_environment.bazel_path, + 'clean', + '--expunge' + ] + + print('TelegramBuild: running {}'.format(combined_arguments)) + call_executable(combined_arguments) + + def get_define_arguments(self): + return [ + '--define=buildNumber={}'.format(self.build_number), + '--define=telegramVersion={}'.format(self.build_environment.app_version) + ] + + def get_project_generation_arguments(self): + combined_arguments = [] + combined_arguments += self.common_args + combined_arguments += self.common_debug_args + combined_arguments += self.get_define_arguments() + + if self.remote_cache is not None: + combined_arguments += [ + '--remote_cache={}'.format(self.remote_cache), + '--experimental_remote_downloader="{}"'.format(self.remote_cache) + ] + elif self.cache_dir is not None: + combined_arguments += [ + '--disk_cache={path}'.format(path=self.cache_dir) + ] + + return combined_arguments + + def invoke_build(self): + combined_arguments = [ + self.build_environment.bazel_path, + 'build', + 'Telegram/Telegram' + ] + + if self.configuration_path is None: + raise Exception('configuration_path is not defined') + + combined_arguments += [ + '--override_repository=build_configuration={}'.format(self.configuration_path) + ] + + combined_arguments += self.common_args + combined_arguments += self.common_build_args + combined_arguments += self.get_define_arguments() + + if self.remote_cache is not None: + combined_arguments += [ + '--remote_cache={}'.format(self.remote_cache), + '--experimental_remote_downloader="{}"'.format(self.remote_cache) + ] + elif self.cache_dir is not None: + combined_arguments += [ + '--disk_cache={path}'.format(path=self.cache_dir) + ] + + combined_arguments += self.configuration_args + + print('TelegramBuild: running {}'.format(combined_arguments)) + call_executable(combined_arguments) + + +def clean(arguments): + bazel_command_line = BazelCommandLine( + bazel_path=arguments.bazel, + bazel_x86_64_path=None, + override_bazel_version=arguments.overrideBazelVersion, + override_xcode_version=arguments.overrideXcodeVersion + ) + + bazel_command_line.invoke_clean() + + +def resolve_configuration(bazel_command_line: BazelCommandLine, arguments): + if arguments.configurationGenerator is not None: + configuration_generator_arguments = shlex.split(arguments.configurationGenerator) + + configuration_generator_executable = resolve_executable(configuration_generator_arguments[0]) + + if configuration_generator_executable is None: + print('{} is not a valid executable'.format(configuration_generator_arguments[0])) + exit(1) + + temp_configuration_path = tempfile.mkdtemp() + + resolved_configuration_generator_arguments = [configuration_generator_executable] + resolved_configuration_generator_arguments += configuration_generator_arguments[1:] + resolved_configuration_generator_arguments += [temp_configuration_path] + + call_executable(resolved_configuration_generator_arguments, use_clean_environment=False) + + print('TelegramBuild: using generated configuration in {}'.format(temp_configuration_path)) + bazel_command_line.set_configuration_path(temp_configuration_path) + elif arguments.configurationPath is not None: + absolute_configuration_path = os.path.abspath(arguments.configurationPath) + if not os.path.isdir(absolute_configuration_path): + print('Error: {} does not exist'.format(absolute_configuration_path)) + exit(1) + bazel_command_line.set_configuration_path(absolute_configuration_path) + else: + raise Exception('Neither configurationPath nor configurationGenerator are set') + + +def generate_project(arguments): + bazel_command_line = BazelCommandLine( + bazel_path=arguments.bazel, + bazel_x86_64_path=arguments.bazel_x86_64, + override_bazel_version=arguments.overrideBazelVersion, + override_xcode_version=arguments.overrideXcodeVersion + ) + + if arguments.cacheDir is not None: + bazel_command_line.add_cache_dir(arguments.cacheDir) + elif arguments.cacheHost is not None: + bazel_command_line.add_remote_cache(arguments.cacheDir) + + resolve_configuration(bazel_command_line, arguments) + + bazel_command_line.set_build_number(arguments.buildNumber) + + disable_extensions = False + if arguments.disableExtensions is not None: + disable_extensions = arguments.disableExtensions + + call_executable(['killall', 'Xcode'], check_result=False) + + generate( + build_environment=bazel_command_line.build_environment, + disable_extensions=disable_extensions, + configuration_path=bazel_command_line.configuration_path, + bazel_app_arguments=bazel_command_line.get_project_generation_arguments() + ) + + +def build(arguments): + bazel_command_line = BazelCommandLine( + bazel_path=arguments.bazel, + bazel_x86_64_path=None, + override_bazel_version=arguments.overrideBazelVersion, + override_xcode_version=arguments.overrideXcodeVersion + ) + + if arguments.cacheDir is not None: + bazel_command_line.add_cache_dir(arguments.cacheDir) + elif arguments.cacheHost is not None: + bazel_command_line.add_remote_cache(arguments.cacheDir) + + resolve_configuration(bazel_command_line, arguments) + + bazel_command_line.set_configuration(arguments.configuration) + bazel_command_line.set_build_number(arguments.buildNumber) + + bazel_command_line.invoke_build() + + +def add_project_and_build_common_arguments(current_parser: argparse.ArgumentParser): + group = current_parser.add_mutually_exclusive_group(required=True) + group.add_argument( + '--configurationPath', + help=''' + Path to a folder containing build configuration and provisioning profiles. + See build-system/example-configuration for an example. + ''', + metavar='path' + ) + group.add_argument( + '--configurationGenerator', + help=''' + A command line invocation that will dynamically generate the configuration data + (project constants and provisioning profiles). + The expression will be parsed according to the shell parsing rules into program and arguments parts. + The program will be then invoked with the given arguments plus the path to the output directory. + See build-system/generate-configuration.sh for an example. + Example: --configurationGenerator="sh ~/my_script.sh argument1" + ''', + metavar='command' + ) + + +if __name__ == '__main__': + parser = argparse.ArgumentParser(prog='Make') + + parser.add_argument( + '--verbose', + action='store_true', + default=False, + help='Print debug info' + ) + + parser.add_argument( + '--bazel', + required=True, + help='Use custom bazel binary', + metavar='path' + ) + + parser.add_argument( + '--overrideBazelVersion', + action='store_true', + help='Override bazel version with the actual version reported by the bazel binary' + ) + + parser.add_argument( + '--overrideXcodeVersion', + action='store_true', + help='Override xcode version with the actual version reported by \'xcode-select -p\'' + ) + + parser.add_argument( + '--bazelArguments', + required=False, + help='Add additional arguments to all bazel invocations.', + metavar='arguments' + ) + + cacheTypeGroup = parser.add_mutually_exclusive_group() + cacheTypeGroup.add_argument( + '--cacheHost', + required=False, + help='Use remote build artifact cache to speed up rebuilds (See https://github.com/buchgr/bazel-remote).', + metavar='http://host:9092' + ) + cacheTypeGroup.add_argument( + '--cacheDir', + required=False, + help='Cache build artifacts in a local directory to speed up rebuilds.', + metavar='path' + ) + + subparsers = parser.add_subparsers(dest='commandName', help='Commands') + + cleanParser = subparsers.add_parser( + 'clean', help=''' + Clean local bazel cache. Does not affect files cached remotely (via --cacheHost=...) or + locally in an external directory ('--cacheDir=...') + ''' + ) + + generateProjectParser = subparsers.add_parser('generateProject', help='Generate Xcode project') + if is_apple_silicon(): + generateProjectParser.add_argument( + '--bazel_x86_64', + required=True, + help='A standalone bazel x86_64 binary is required to generate a project on Apple Silicon.', + metavar='path' + ) + generateProjectParser.add_argument( + '--buildNumber', + required=False, + type=int, + default=10000, + help='Build number.', + metavar='number' + ) + add_project_and_build_common_arguments(generateProjectParser) + generateProjectParser.add_argument( + '--disableExtensions', + action='store_true', + default=False, + help=''' + The generated project will not include app extensions. + This allows Xcode to properly index the source code. + ''' + ) + + buildParser = subparsers.add_parser('build', help='Build the app') + buildParser.add_argument( + '--buildNumber', + required=True, + type=int, + help='Build number.', + metavar='number' + ) + add_project_and_build_common_arguments(buildParser) + buildParser.add_argument( + '--configuration', + choices=[ + 'debug_arm64', + 'release_arm64', + 'release_universal' + ], + required=True, + help='Build configuration' + ) + + if len(sys.argv) < 2: + parser.print_help() + sys.exit(1) + + args = parser.parse_args() + + if args.verbose: + print(args) + + if args.commandName is None: + exit(0) + + try: + if args.commandName == 'clean': + clean(arguments=args) + elif args.commandName == 'generateProject': + generate_project(arguments=args) + elif args.commandName == 'build': + build(arguments=args) + else: + raise Exception('Unknown command') + except KeyboardInterrupt: + pass diff --git a/build-system/Make/ProjectGeneration.py b/build-system/Make/ProjectGeneration.py new file mode 100644 index 0000000000..dab2520e34 --- /dev/null +++ b/build-system/Make/ProjectGeneration.py @@ -0,0 +1,155 @@ +import json +import os +import shutil + +from BuildEnvironment import is_apple_silicon, call_executable, BuildEnvironment + + +def remove_directory(path): + if os.path.isdir(path): + shutil.rmtree(path) + + +def generate(build_environment: BuildEnvironment, disable_extensions, configuration_path, bazel_app_arguments): + project_path = os.path.join(build_environment.base_path, 'build-input/gen/project') + app_target = 'Telegram' + + ''' + TULSI_APP="build-input/gen/project/Tulsi.app" + TULSI="$TULSI_APP/Contents/MacOS/Tulsi" + + rm -rf "$GEN_DIRECTORY/${APP_TARGET}.tulsiproj" + rm -rf "$TULSI_APP" + ''' + + os.makedirs(project_path, exist_ok=True) + remove_directory('{}/Tulsi.app'.format(project_path)) + remove_directory('{project}/{target}.tulsiproj'.format(project=project_path, target=app_target)) + + tulsi_path = os.path.join(project_path, 'Tulsi.app/Contents/MacOS/Tulsi') + + if is_apple_silicon(): + tulsi_build_bazel_path = build_environment.bazel_x86_64_path + if tulsi_build_bazel_path is None or not os.path.isfile(tulsi_build_bazel_path): + print('Could not find a valid bazel x86_64 binary at {}'.format(tulsi_build_bazel_path)) + exit(1) + else: + tulsi_build_bazel_path = build_environment.bazel_path + + current_dir = os.getcwd() + os.chdir(os.path.join(build_environment.base_path, 'build-system/tulsi')) + call_executable([ + tulsi_build_bazel_path, + 'build', '//:tulsi', + '--xcode_version={}'.format(build_environment.xcode_version), + '--use_top_level_targets_for_symlinks', + '--verbose_failures' + ]) + os.chdir(current_dir) + + bazel_wrapper_path = os.path.abspath('build-input/gen/project/bazel') + + bazel_wrapper_arguments = [] + bazel_wrapper_arguments += ['--override_repository=build_configuration={}'.format(configuration_path)] + if disable_extensions and False: + bazel_wrapper_arguments += ['--//Telegram:disableExtensions'] + + with open(bazel_wrapper_path, 'wb') as bazel_wrapper: + bazel_wrapper.write('''#!/bin/sh +{bazel} "$@" {arguments} +'''.format( + bazel=build_environment.bazel_path, + arguments=' '.join(bazel_wrapper_arguments) + ).encode('utf-8')) + + call_executable(['chmod', '+x', bazel_wrapper_path]) + + call_executable([ + 'unzip', '-oq', + 'build-system/tulsi/bazel-bin/tulsi.zip', + '-d', project_path + ]) + + user_defaults_path = os.path.expanduser('~/Library/Preferences/com.google.Tulsi.plist') + if os.path.isfile(user_defaults_path): + os.unlink(user_defaults_path) + + with open(user_defaults_path, 'wb') as user_defaults: + user_defaults.write(''' + + + + + defaultBazelURL + {} + + +'''.format(bazel_wrapper_path).encode('utf-8')) + + bazel_build_arguments = [] + bazel_build_arguments += ['--override_repository=build_configuration={}'.format(configuration_path)] + if disable_extensions: + bazel_build_arguments += ['--//Telegram:disableExtensions'] + + call_executable([ + tulsi_path, + '--', + '--verbose', + '--create-tulsiproj', app_target, + '--workspaceroot', './', + '--bazel', bazel_wrapper_path, + '--outputfolder', project_path, + '--target', '{target}:{target}'.format(target=app_target), + '--build-options', ' '.join(bazel_build_arguments) + ]) + + additional_arguments = [] + additional_arguments += ['--override_repository=build_configuration={}'.format(configuration_path)] + additional_arguments += bazel_app_arguments + if disable_extensions: + additional_arguments += ['--//Telegram:disableExtensions'] + + additional_arguments_string = ' '.join(additional_arguments) + + tulsi_config_path = 'build-input/gen/project/{target}.tulsiproj/Configs/{target}.tulsigen'.format(target=app_target) + with open(tulsi_config_path, 'rb') as tulsi_config: + tulsi_config_json = json.load(tulsi_config) + for category in ['BazelBuildOptionsDebug', 'BazelBuildOptionsRelease']: + tulsi_config_json['optionSet'][category]['p'] += ' {}'.format(additional_arguments_string) + tulsi_config_json['sourceFilters'] = [ + 'Telegram/...', + 'submodules/...', + 'third-party/...' + ] + with open(tulsi_config_path, 'wb') as tulsi_config: + tulsi_config.write(json.dumps(tulsi_config_json, indent=2).encode('utf-8')) + + call_executable([ + tulsi_path, + '--', + '--verbose', + '--genconfig', '{project}/{target}.tulsiproj:{target}'.format(project=project_path, target=app_target), + '--bazel', bazel_wrapper_path, + '--outputfolder', project_path, + '--no-open-xcode' + ]) + + xcodeproj_path = '{project}/{target}.xcodeproj'.format(project=project_path, target=app_target) + + bazel_build_settings_path = '{}/.tulsi/Scripts/bazel_build_settings.py'.format(xcodeproj_path) + + with open(bazel_build_settings_path, 'rb') as bazel_build_settings: + bazel_build_settings_contents = bazel_build_settings.read().decode('utf-8') + bazel_build_settings_contents = bazel_build_settings_contents.replace( + 'BUILD_SETTINGS = BazelBuildSettings(', + 'import os\nBUILD_SETTINGS = BazelBuildSettings(' + ) + bazel_build_settings_contents = bazel_build_settings_contents.replace( + '\'--cpu=ios_arm64\'', + '\'--cpu=ios_arm64\'.replace(\'ios_arm64\', \'ios_sim_arm64\' if os.environ.get(\'EFFECTIVE_PLATFORM_NAME\') ' + '== \'-iphonesimulator\' else \'ios_arm64\')' + ) + with open(bazel_build_settings_path, 'wb') as bazel_build_settings: + bazel_build_settings.write(bazel_build_settings_contents.encode('utf-8')) + + call_executable(['open', xcodeproj_path]) diff --git a/build-system/bazel-rules/rules_swift b/build-system/bazel-rules/rules_swift index eca50db5a9..bfb54953ce 160000 --- a/build-system/bazel-rules/rules_swift +++ b/build-system/bazel-rules/rules_swift @@ -1 +1 @@ -Subproject commit eca50db5a95a50b2be8367d644aebf4d1d880c52 +Subproject commit bfb54953cee1bc985ba8113dd2e635e1d294abdb diff --git a/build-system/bazel_version b/build-system/bazel_version deleted file mode 100644 index 7c69a55dbb..0000000000 --- a/build-system/bazel_version +++ /dev/null @@ -1 +0,0 @@ -3.7.0 diff --git a/build-input/BUILD b/build-system/example-configuration/BUILD similarity index 100% rename from build-input/BUILD rename to build-system/example-configuration/BUILD diff --git a/submodules/WatchCommon/BUCK b/build-system/example-configuration/WORKSPACE similarity index 100% rename from submodules/WatchCommon/BUCK rename to build-system/example-configuration/WORKSPACE diff --git a/build-system/example-configuration/provisioning/BUILD b/build-system/example-configuration/provisioning/BUILD new file mode 100644 index 0000000000..9abb88a19d --- /dev/null +++ b/build-system/example-configuration/provisioning/BUILD @@ -0,0 +1,11 @@ + +exports_files([ + "Intents.mobileprovision", + "NotificationContent.mobileprovision", + "NotificationService.mobileprovision", + "Share.mobileprovision", + "Telegram.mobileprovision", + "WatchApp.mobileprovision", + "WatchExtension.mobileprovision", + "Widget.mobileprovision", +]) diff --git a/build-system/example-configuration/provisioning/Intents.mobileprovision b/build-system/example-configuration/provisioning/Intents.mobileprovision new file mode 100644 index 0000000000000000000000000000000000000000..8cb484f943475109f8084a30cc018da6febabadc GIT binary patch literal 4632 zcmcgwd2|zX9&g%GCckd0xB*@Hq2|DS6gVI_Jq^31_@D8cAX?pu${RG%N)#{hG6$DpNlwVy zL}60#L2E>aG>K|@rGL*HaW_JTh4#Vq`Z$?y7uA_zj7X4rS#c@u@&YFs+m4eANpS=l zYjo2b-DpkIDkU4#8bgQ9t@3&* zrO8Uyigp+{vPURP2xZG6;-XyvC;+J(kSf}6xo(O|H$@>2>SaAgeKt85LWrig#19N8 z`9|B_Kd#!$`^9*XD3K&6GEx!}B^aKR^}_~}T_jV)+#td(IxRv#is1A?*zZccUbKs7 zN6lt9)NL?;BBEf{41tvRhl3bI#nZ7kZPaA}2z2rtAPhxNJf6j}0odzw!Y~X$VH3m$ z-4H_fF(8~^=!oCNh7>Bbxx>YTjNW88(IJ?TAYt?5P-h-YIlBW&ClF}!bh~_BcRYu5 zgD!}|yb#Ev1_tZEks$8&MC>k)GiT@qExl&}9AvyW3aR`sZqA}On78AI675EFc5h1D zLoeLR`f;QUg~LWr?m<8?Bb|OI8!~z*myzj?m@I4{=>-U%E@P)5PtccRf=Wv)#a*79(E~6hJnltMC!aO+o*9v>#p@|z z={9F!XTV}j1VEQD2_&tyC8e8}RU6cA%?F$cO#O2kj2QNJ?RmQ)0JoK~hW$ez-M7%ic+ zl0@1?ZLVO=z3>b7@vYP6U&!;(H%MusDMB6b^A@jLZcDO?5am)?bxBG~bBb6pnQAjzOl^?CmXk$Np1hm)B^lJ6 zjb%6h_jc>Rcs%7LTt1&o2zKbyCL^sir~GO*7PsUQN}THUn=)}*nrR7GY&ak6B-@ZS zMF62`T@+WEJCyM@jmsSNwD@d+9K^u1(H>8PO$tNElz}@{8A~RTM;U@)6?ui+WJCd- zgE3_7GFs_tQRfY5Q=V2EsI*FxGr546yv3Kw$mLupNw#>5lvZKPQv?u=SzQTxwjFb2dI_Mf$Mum&FN=gofsk?} zo8kmsN`wWvtJJmY^#YgaX`H=RMb7GDuSkCnZDljO*awByOp+su{1O((h_ow3v;7_Q zrw9oX9Lo@SX@cZ=f)Xk0=RD5vB$pHutf!NUWX88fX+|K6On4D7_4Pd<^$=*0iTfB( zN|z|G{HTvF%cR%J##)75a&0Y3bQM}BS1_I^wx8z9;Sf@BGFf@4lo7>zD4Ri%f>a>*xRhX+RJQDBi6FmsyDYyP zZh<5cKMku&b1H2pOXbOMhNFdiPfqp6;U^%|bLFC;sMJ}4pjaQ3V-u2NY3|1-6nS|< zQEI0E+6yL>i_KdJLI}qi#c|9nq&TwiXCz5a8sZ|Rs&rT~psJ=I8CC@pB!jC95=qsO>&CaP%sn;d4fj}Bjfon0UspB}a7wL>3{quyUTVsZD<+Ee=EO=FI1x@Yt1 zmGk$9Z}w(_OJ{GLwl)6sv#R0W9QcI5M$pPh^oy6xMDDDntLc;Jw^ruvo?Hifm|Wos zUD>pF+@!l!>TfIDm|JRmaDVf*jjFL57ZnZ}4;g%G=FJ^BbJ~Fs&#Z9l+%6ObANlh9 zz&B3+^~@g2w$-aTPDk3UhyFVkyG;4UBX>)Lu9txL*||#|Htu}o-ct|zHfv6vJw5-! zk;Co@UAuhGiRFifTs8H!apQ(R_s{+H^GDa*ym;g4{lD2EopN;WUuGS5Oy0Gox<*nZ zc~C51;1V&AR}GU$zN@XRsUA2Fm{?q2U0ja^#?%dJsgn#CFtDb!^sT0@Ry?n&L|05F z5nV~uV|!0L-+JrLX$>QyFFIdKQ=`_G8T5MAJ+6l zj9Pz(sd)}K=*78Rw<#>IZo2!GCl{Rh0-f<~wfP#)Mz4Q+VAQdNV`PKwpYzB9D7{wr zXn*>%JGVV_u3*Lf7@mEX?)~{qix0hXWPWzV`U4YQZTCMfuXB7n`s76RmI5>Tcgq&v z{=$(ZD<7dhkUlpytoq^{^zxaHkEXWmoxE^gYoV}p>MMe<@TOG{e42Uug=6Qy4gVpY zp8xpxTQ^3hDkwX75)(dIzx%ySbKiaa*5mRy(?=hgq@TLWu`fC8^PQdHy6kt-HMegZ z{nf#1tyk{-X6z-O?c92D%bO3cUnVb9KP#5plf`Na{lXbu)KUJ)zM&wQ1dJ{fczun$ zp|lt%0e)Lr)Yr;K)?VI>ELz*S;=bz-AKi25`NR1sT@SqT1dy()7lU0ZDQGUOl}COR z2l%>%zW+qjUs~NDk8JogP^;*JVq2&!NU9235>?IE?lD^sJz!k86{KGOgM~A{OYTp` zTUW1`7&vp;@HgG9c4F8V!!0-bPfMK|x^2YeRq(9or)J%t9kqVLSL?Q) z+JQ|RrhD%^cHdgy&+g%$@3(J$?d^uSExQlQoTL5wi31wb`OW*NE3BGB%U4y+iX5DM z7TdA+xr6k~^h4LJ$vUoIbNJpzPt8t!DxLA|uqmHW(159Tq#w8f8aQEsbj@=tz+Gn vLyjK5a>vUrEuC~$f4i_mw=8{Hcy#v*|2}^Ht(y<-;m`RyXE%S@OB(+N72paU literal 0 HcmV?d00001 diff --git a/build-system/example-configuration/provisioning/NotificationContent.mobileprovision b/build-system/example-configuration/provisioning/NotificationContent.mobileprovision new file mode 100644 index 0000000000000000000000000000000000000000..bd054573e96889963fbf96db225efcf8d55be245 GIT binary patch literal 4655 zcmcgw36K+I7M^4d%#1iH3Wx~ftcoyZ(zz!vGuWN(T$9e(Im=@^NvG3EC+T!|CWi_` z7D2@m7%49nmytt+#q}sp)Dc}oShZFc4-^zE9YNWxbyXC1w=+i)S=@5BO1mmm{r~^_ z-~HbAI>11aWZp8BlBkh8iG44N5N7#)}VZOIn(w!g*y@EJ1Y{Qd8x2(Jrb~&CEl#5}?tB{q|(X+&;SQzK43PyxQuL4j2QaK=1s4=;2zDhSAPzAeXqetU9IcS`ZrrG3w zC{Qtxvb%p=w3+h@VIxpHg_A_2!X%2*93h+V9!&HTblLTK!TV!QBDf0egej74K`*=) zHJjm3QLhID$AURC1d_rJ18oqQ$ixzqQI`WC(8(D<7>b}+B4^75V6W2&!!QJeO%NA! zLkRA-0pTP~Mf@%%q)=(h1{WPNdQ;(~fj1*T-0I1r&H|Wr76VEr5Kw!HE}z$($RkD2 z1(7x{1ahdJwiz%ah`BuxyUXLu>x-ae>@0wRv=>7ml^@2;ITQm6b_`LXMKo{sriDH9 zH0NR8lya?*#a{93|Ba*XtJ!N0I z%{kZ^u=J&a=2(B&209T4a)K~PA`TE1&Yfw!@D72t9A_$MyoA-zQ8cDgH3a3pv|P)^6>8Owb8MOt=g+_N$_*Leizx zA}M<&>D7=*O*GDukuD#sW~jcP71mg+0T=?bF_(%!LVm93OhQJ`)F_gF2oW6Su`$mBMs6Y2doAv&L~rTywZ|k zEjCRbgA2A#%aq`J&$zlMn=Ecv7oBa41hHet=s9RZ6K_D zmckM#&gx^7GH*eJ#ZbRWX0(M<4!9rkpiI^gHFn@h)EJR<@yS3kVRVE%eI71UaByKb ztLb2~$xJbW6Y*S6&uHt!%WZ9<0XIu3&v-*cguc$xL{jMQ)gCvFC1YR`B6wWN5=@%q zIVm3Iss2jWmUQ!McC>MhkqXc?4q}ms9@@!dIiU~oo!Jyil<_6Z6A@{Dnqnq8>Q7-3 z##x5O3(_RPaX2X;+5d7m%Mom<2JX1dC`I!`84ypwMj{z?(kPCW0eKt&rBnq1tCz;{ zvI=^gOstb1!`RLW)^`4PtQ8_sl_=n2IEGUx!O>yCRw>D*vrHv0lI{xnNGgC=BYj>C z@(FAwP`?@$KAj*^wM3Q7DCb304U*ucJkBMgI8CQ>Rf8))`2*@I|7zHI0#E)lpVg{U zt3#D5M})I1#TQ0%Ya$*$!84;IrwmE0%!&)jby7P;A$f*ke|%DrS0@!^*Lr!?8ADI&<@BmT3Dwl4Ue4F~PUhiEJV|)!dkfdo?p^?5&tPRO#Z;+%GZFXMVS4sl2$h!syLXp=^0dp5JzoPuec6 zI(V*p3UF5WYRl=(Zp3PEn~gRE9{scsHk+o1J#Jvuw8;uU4k&bTtx_r11*c6`)-Hc; z@g-4vt-+$ky84o+wGJqWn#CoNsBZsdvpWa#4=>t7{q@*8Z?D|-uvz=aohv_{5(;)) zv29rS5WVW)+vnN7StgsEnRde;_Z^r;zH`r%6~$W`KI=|hJ!AjIyEm;FT(UQOtv4II z<(h3h+Y(rDU@;!^~~8^`bh_dZCbkGlW21 z&?*xBtD&J@JZS*9q`bbkyq*cnXgaN>c76JI z=h7WLEmJQY`GDQJ|L!dpeQ?tQ8y~!X+kICJd-`0TY>XZ>mY!YP+Wz|(x%O7mMT@}G zo>|;~y~6U+#??EwFZ=9E^osAr=1V<8UjNg9X&)?~Av^8(DTPWdO!Wtu6fIMca}=q7VPBtuwL zKtbAx5gUJa?eJeVE`ICPr60-{Eu6k@PWOTr9J^CJf7=lcH|72%z3axI>0iA$x9|L2 z-_1PZiyhlW9{kgWwYSMj;zxy&+g`4=(9fLVWf|2k`E@1H9AJ8-z$Nwamdaw12>4ZH zA!(3LZ8+z|yW7)~7sl3qo|lYl{o>jtckp8f$TUfWU^j?L+A|yEkzd3BuBm1G4+_bd z;ud*i-7n#_nm#DBg@%%-?!9}7rN%8Iiz5qmzmnVfV&^~iTJN@hdw8}}3^l&h`f$VH zbB?b3{@tNx3P+EtmfmpvTy<{OW#1~Ylb1fbKr-Ba;-)37U!T`9Y`T1J^D~Q{JDb~@ zdZp)yLwBxu|4=91VOVwUYwUIT<<2A9U%#L9&mO%0^xdDX+HmXUC-%IAT>R{#!>#1g zhmO4R;+lmoe|&81%THeL_~ilZ)z~|O&W5Jrtq1hifcHK9_;bVB$KqWl)(m4^Yzt+?^ obks$*P22L(w8JywJIO=C_3whk!NuGsTjJ>X4_8NcL?gX4IpC?MhyPZZ?LW%EwpIJ%qNyf@Fyvx07t&1Nr~WV5?@VtGVC z?TILgR8fk6A}FWgV+K@OLF)_ZP}_ov0#>I2_0f@5)H-%^k0es;*v{zAWM=>W|M&mi z-}n1Az_Ql1IV;U8zZfqXE#9~cSSA*U!_{?&EjdJnt%oZ(Z*#nm$g*d_w+0% zrf5l?U^yz2p5H0&20A4~I+}@5X>xw24>L-2oeO%$_FM)#4Oqy9NEn*pc!|pg*)0Z1 zr&J~b8HOfgG8ls;F1y8xNdz7;8RF=abS8M7nJbeO3WaXGO4S|Bq^g9R%*AFHg5^tg zftgge&>iDror0Jl?%z>I*o{$9zISX}Pm(D03gRrV15Xh>vg%UU<#<+5wihF4f@E)$P;wc^#;NFLrx;N8tsTFZ9RfscrR+P zz>%`S01A!;3l<0@g&zhwATpUvBq@`=06?IdGlDP_L$PGRQ3%0)w;P6G2#T5^F6@O6 zJm>(TDVmA}JxoNQ(pZchI%4vtqbVbALBhD*S47<LF>?22m@(9hC-?!j9CgO29}%{qD0GR(do|!d+6DF zg&>BgQ8;P>gEcDp)(Uwu=;&fUwSPC z*d4OkGGR+1A9a9k1cKZkOp=HTgoSf=#vr^yprgQ4H|D4kbCN=*5UK z&Dd!~Va09oQm)YF?>@M&Ma1 z;U}Z=zPK?g4`k$8woj46Wdz`W%vyl(B(Q{oK}#_v4_RZLFlfNtRz?#vyXYY0vyq{K zQlY_oDNDqX;RvhR|@;jv)e`9G`S0^Ff(e??n1sXg2JIVrE>1n)0f+s+96*wMg2T zP5CvXQWNiE$(Swxs~O4`w!<2$Jp@C5HsMhbNF>OW-6_ZfI&_rA8x&GWZ^zh}foDjS zAIuiQNds6wKoCbYC`=Y$Qiz)eaDi^KOh{xHBnc2TgsQm_vkGyM72Hu2%9soW&IG!B zMyP-ykYE5rB1Xs^g~37y5$@9TwD~+X}Z{4 zDqGItL|8KshbPv&YD!tHGZXV zKAMmS)0vmgu!Q9QNS490#01~gC$f>~)N^Ab?)A)Qu(xLJP{~$#olDi>>`h6GVX572 zXk<{G;V>#iU>SQuFX*AtJV6p{uTrDxk&P^dyNu6gfopmWSB*xiS4U#Hh*YBm)KZm3 zt(58%8iiD+Qz?~lc|@Zlv}cR;56$2;RwH8M4H8F!*drSplzW>7pN*Af4yZI|fQmS< zu~{q<3zI)EzVpThZEg0oG>-#>Akl;b7DjKDisY(O@?6PTK9S6>JNPR3 zB;fq&)%I~?y@=iDwU`_TJosrLY_?7k`@BHMl<^8c4k+|;tze)&JY~GHartA5uZTJu z4Hk`RYOaVTHUSmUSaC%pYC3ZDjPA9?CzkA|KKt~o!)so7!lHfh?lm7yiiEqa8Q80Q zl)m%W;foz-R?22%r`-JVp`#t-Tk9wFmsho%>`7lc?a0=9A6~b1`GM&5{#055D95Nj;1nyb3bn?Ra2PZvwr)$r%d}ZvBe|$B1|Ea%xy3e|M-QC7h zv0mGue=T)fpxnRhE)k#q4Ujyu^wx(=dtSWnDm=w-l_)%6wC^>kob>zJ-q(Wp_Qn_Fsc&8;oMc~hfzg>(|UD{6Z5m5-k3zH!g| z_Q|tPyvOc1a_=KE-}~i*Tem+jaQ~vcKAY#STjR$}mFG81?0hUiZn(`na|t-+xuy9P z3hPT-?|Sj^l_yW5*L)+k%=T^Z2cHd1dGDravM~=V*|rkOuIG;($bNGB?gziD*c`u$ zF1|zm*7DB&LvJ2gUbu6^!OLFi4L&1pb-h3J#Ffl1D)izTR`=hs>&UHZw^8p%pPn97 zo&FN~?Wga*o7w%!oSRSYk8?YAz4s-!@pF9V@*Oj7+!CLsAf3bs z2mir_y?@@i^iQwfcwD|@!PG;udgi_0dM!Qw?|b^9t%Yx;_uR5&>OcQ@mF<#OzMeke zlRX0`w*UU24Xfo9@l!&{JzlN0$d8=iRT=d!`HdCPEMRJ_z}uST?X|^d5pa2J(bgiL z+;ZWmF>8`>ViZ&{|NPk9{p?pLd*5at+u9}syG2ydp4TFe{Uio(t?k2qP_&&VZkNY4 z{uEwo=z~IAXsL*rpdfLoW9=U{Z5O`JR_FWg-LQ#!xMS1H@+0f!-D+Gh#IkYV(W#4PHAT}WbF1FjUi|F%4gKr76N{Ek i-_5?;ZhB^m66)Buw)v~;K0hwW$QNB3{qV&h(D*meW(;Kj literal 0 HcmV?d00001 diff --git a/build-system/example-configuration/provisioning/Share.mobileprovision b/build-system/example-configuration/provisioning/Share.mobileprovision new file mode 100644 index 0000000000000000000000000000000000000000..e49de2d713a6c6c3aa158448d2b18f3c6c1c6e21 GIT binary patch literal 4613 zcmcgwd6X0N9pCIO3)$sR)&d2@b&Ddb*-Y-uvb#8wnaw#lC#M2VlF4K?lVmb8*&HB8 z1U&HMkOvB4%K7S)MoEHfhP8~Ysh&8j3aB6uZCo^UQEj1NRmZGs zoNnqRSdL02I-6y!Kywq32qnW*g6wQ|W8IRr=2>0!9hbv49p<+qO$<$Oe3RV`S&X`- zW{Fe^G7L>fr7#9J*)2vF)+F$dN)c;wQ*)H(nRcl(lgYH=MXJ_NGF~L)q;@vR5GbqazkH9TLO3s&X$%tyo{CTeYiEfFl`V0?Sr)HksZ(oo-CCE@f(r<)L_1`PxI@qj??R16IGESz zK*5z@#t4C=@WVhWM8;Cl7^T-{00?w&-5?BwQ7o3RX8f?n;ecTnfRkK%G?Mjq@u$IWrBJ)>D1Htu))Om6CMEfYST6fatFLwI-oE`gDyz#rDQ0Eprjc= zROgg?enSr$IHOq9%AmP0(+iox&H$*x9VSNYGuUY#`#>ad}4^(u3AEO6~Fqsid`FY*@!Lq|yVX zGJ%*5%pf3$qiPf;GcYN{%?a2+he0YNG7ORgi0b^s+z6Y5xJWaO5DF#rIvuA69qw)@ zgCdY%07N3)kRt?x89yT2r$P8UH38a$SRx>c_9S^qjr8^amTsztQ6$W~!jxi7R<)VI ziBu9-hkcyMm1b>%Y@=9tG?7TEj3$E$(pj?7aMGP~aoz-tx-!u;3t*nS z7L3J`9^C2mTKGV>R&CHzZN{We%|v6SY+Qknd7mL2v!v)2zsZ7efgVDIsN{ZxqO=iA zVeD4KR2ru-NT05=F*rb%g z+oI0tQidF*){!ZtCTnm4QCW*OnU=}eV1j6I>&Z5`K1bp}Bx-iXZFy4yllvGffyEM> z#mgw9o}3bkqCTZmZw)2va4+OWnY2BkZ^7fJJ}hnH^X+uBeAt{0b{!G?+meVwO?xX|CrJ#G*^2H+z|@VJB}m?X<{5&Uf8!h=6~Jl`w!%X_w3SJ7LLcN?(+QR+;!B7p!jj%3#SC@S3tMXifEm{sp=h2cLg0DWh{gR*>POBZ1P>yhgepN``O+X> zmO-zTiMH|ssM=aW*Vc2^ zhcZ`=2&Gwy&-G{1Py{Z(GyNpz4ML^Nk_(EJQ8_6gS%zYNd^VAlXA?zRJ8XRI&&WQ4x}GC=`(> zm8v$0HjKAPBEg_mCDUqfg;IX5SkJ&@U1BvPMphwlC~O_l{_(e~s{h$osNsM@O%fifr9vD@c@kI^7L_b@m1vGUv?%JA>fDjg%Xo7`-nx%s2;+)&wbdFD&t|~it zx~vhnxOlZ;WW5Wqbi0gtD+2d_FbJDdq! z=45ZzKX`cRo=wWhn{F=j>HBovwTl*xo89?FEw!c zMqWB|>69rKKl#_g;>8nc<}cs0=I}4}O4{GAfA9Ja>@!|iTU{fn5KYpRDY0FYo)~(Z!jS8{WA5R6HZ;p+)$wB-FWBnTb@38+v@GqpCnIC z4k^Dp13iEG!}pVW4$ipg)z(5`=gj>)f79H1e*L%fBTpYY18)2Re{At1mo3>8nJFi2 z#3?KP(S{e_-n#Iu*Oq)BTQF-v-?WaIFW6sAbpB&sPpB^Qy=3hznI<cu_|A`+Q?TG!2+gDsXX)tf90RE&_g4T8L|9 z<7zLtwZ8G;Sz~WR;%|!Yc+h3pk+Si*WOunCQd}trEe?EI)EwuNn z?(JFc1!rpRTfc9fbk6AM((lK~ufO`SNrAdiM|>v^rLXzcm_7NMx|zr)OE>)fKdXV= zzCTPl@VsuSC%9rnpnmSzr69{*^5r#WH}BOQ`TRTfzHPxTR9$_K);EV6YxyLt3ss9|gY2R}rr*39m$gi}&!ffC6+OE@MUpe@3 iK|JS#xn^tdE57FHGcFL`f*wC{e=IlGCAww+H2w>=?EPT? literal 0 HcmV?d00001 diff --git a/build-system/example-configuration/provisioning/Telegram.mobileprovision b/build-system/example-configuration/provisioning/Telegram.mobileprovision new file mode 100644 index 0000000000000000000000000000000000000000..1592674339b219bd9d2779c2abccdaf365494d3b GIT binary patch literal 6015 zcmcgw3zQS(z2EFEi_3zF+yX^`?fQf@$xL3G;O=^6GL!e@IeE6$PBN3pY$h|4nMo!I zDv*nyMcOK$N7~E9mP+voR;jfRBZS;L=00(LwZ zMEeDnk>vhh6!y98{R3LP9ufqW((4f%=@0tc5xifOq1U7Sf&PJ5lt{yHesxoIYUaq8Dr582Y73mwGu`zMHD?$ zjLv{#Sw{+t^Wcy;W+)MQ3h=|OA%F_!@SI=3s-#ecJ!Ciq*@=)xuq0eTHo-)_bW$-I zEO@lwPP=)D@|c~mpgV3)aEw1}3Hm+0V%`r|^Nib<2-`>`W-dV4N{S4UC@z`(p|U6g zG%aRqS>9C(l*fjwes4*j;^C5<59Z4Wy~`Fr$AVZf6@p0@p~swMQ`S^1golPuE>JAQ zEVR**9TREN8b{0m<4ySxi^rElU|=X0Hc@CgA=N?!*a`Wqj3ts#Q_1GTMba({v?&G^ zl~mpiDJTRHm<2;<1)B~#i(Uz3Fqn7R?UEA;MIEq$ zp|I)zOrs7sltCaRiK_cq2$|+gKmj$DC?sNIyv$h8@)+QAFk^y|^U6j~QS|sNUV)&B zJYgXdk|!1ceVkxO(_xd>#?e+rG~_srH@iJ9Gi>)&^dujxMx;2$Vi6@*5&=9`vqAYh zA0xu?xKB~zsIRB?rY95@)~OCTtwIchNKq^$;Ll_r2}&KoWSY90%M%a=%?Wzj-)E*L~WX#Ev-#AKY{9VZE2Ck>8UndqzFmkGmP3Eky?^3sEI!%Qzjr^emaQl z)SXVA#E48ghg&>ydd91*?s!u=<&3pAO{i`6q33~d+bFd?Rnw`FfSHU+E9aB`Q#767 z>tv#}J(c-9b=pZh3)VCxYh^;pYYCR+m9}%OKJ_d|xP69XiYS~PKL1R7T0EC8OEND~ z=chq;1}<&5+sL#nXEF^!)T;bkX4Dw8o&O{WH6g4`%hQtOG_STX?;HX zQ~`~9GR_nzocB%Xt%ey+rf5nWHCjx=`pLmW*A|Vsk(QkkDM<{GW~&t-wV)xJ)|x1g z)LPSKN=q6*0t9UUktL01s*R1mX|zO5ssX2HoDA5ozWMMl+R^-NuXjm6y^9Cxo$>8m zotjSdB?Xw%dR@`T_l)O> zd+v6;Lyme6{cV;165|WIHf!YakAVEiRd?L)+;`v`$M27SXXx0;chcUVPoHOP0)i^nVWau36Z1(}o@Q9Q@1=wJTnm^_wrf8C?GKy`5c}4$ZgJLknD} z26FL58qGhtySqAPt_H4ZjIV5rF9R0!Trk+9nK5H#S9j~buAXl7d&g9C)pSzP)pR`g z+}q#Rt=%`$H~*SrN5tKSxBk}^N51^+oe$i%=Rdx z?|$uxZ+}$x`hSvHd8h5wH3J(C{qpb{Wz)8oKKJZs;`?Av@aV#0R|z-Q*_HqP)eW~l ze)x_pyO`f{~$%i{N4seEOTcfr~#Q)1Wt$KCG5LBpL3jy}Ka z&Axd9T?fqc)5)D%-7CFwy61L2c)&3D_P&8XuA2QpIja5U!N(SxA2}SoQ literal 0 HcmV?d00001 diff --git a/build-system/example-configuration/provisioning/WatchApp.mobileprovision b/build-system/example-configuration/provisioning/WatchApp.mobileprovision new file mode 100644 index 0000000000000000000000000000000000000000..2b0558a24075004e55209dc4db8e53c1905a2a48 GIT binary patch literal 4629 zcmcgwd6X0N9p7Y^g=IlhL@6SyTM%WN%}mY>X4lSSCimo=oL-&GOeV9LTr-nvwXmdI z7V+TFCn8-HK`DoL@Sdoss4Z1c(YAOXo_!TjJZeR2TRYh!i5B0}KQ!;{d-+}8Q25_^Yr}L7&iN^C0w+WAU(2gv}3Sx&R06T4_j!uPA z31zb!tyCg7(&2I1{CI~XL#aevogJMCQOqt-DvQNpH&MOSO=eQni-OX_XR=O8=u-hIKmh^@l@C$01SBrGlakth9`@zVgw0#y$FK9FlmK_s2@g&unQnl z97~0L*_cYBvzdKd%o0qKDYIxpql7b1!n|cD;~j{oy+A}881RLH{$vRqfP66H3c`?p znK+jjN29nuK)HPZZ^<+O*+hKp$w?!`&D^DNdqp}st0Ia0#CTISeeQeU_0fDLMFm%&+5Wf4;N+w4kl7mt8{oE zWsBJ|0&Uk?f*xDQ6i%})pU&g5J99}FTu!n!XV_<;kf1gN#Y<7jL!r2!b$JWC2rvv! z8sZu2fV5hk>ch9JdoF_loA<%7#hM%k!o&Gb}25(qL;+rjKyRUERZ)~hKm>q zOAf#cYKFZe0u>{u^qzx|Q`7|HmSTxQJl3BPSshyF2b^ZMKdVkVM72G~+g&P$>dqc2%~KmzOvW%3}%$I^6Hz{2#XEMt zEeHf7@z)P|oEK<5EhX4+Czr@f=#I0TNLOj_6k^)ihCv!;&ngX%GN6L3QDFViC|}k| zuRELQ7Dt%1yT-8H#VW%}7)at8s7Z=MU6TX_nIPD-1TZQ2s9^X^K3fY&o3X|^Z8f56 z&^rH{V#heX9u6^+q|=R;Y8g?@hq@UIEhSKC^E@k-hjVHy4&MWr;VY*MMWfCd1l9UzoSD#4mgT>DLILX&in?b3(DSVc z8*1OkrbU{e`98HyV^oeUM!QNNU_)wlj#h~Q0AduS)hY}WNhma6 zOs|L;Vt_&i5`>;4sW_mL8p}6F(BR0VT@y8?25itc7CfVJcpUC)8vYDbngyWJoB=BG z&``5nCYR=WU~+Bdm$ge1{^g(n(6=@RTAC*T()`QO9f&kw^K2|%op~2@d<&C~3+n)1 z1WpCcs6K6E3g(Aa0Af(OKsq%myn03x%6#xP%1E^Q4K|}PM$?C@CkFCBU z>uhvbHm<3;BAe0#RAdw76`8E*$S-DhuPg0Zc!2%*qgP&Dy?>WYfB#LZ|28!i?YeBo zKJ_+k&6_X(%=N`GUr!VXI_rpAZO+5vE1|PN^9r00&k?(_+saFuADXR#&yP} zl`BfCEO#E9vuBfL=B5>u!CIQK+;sE7X^$!vygu>OU%lm-|HLiwW?7T$PN{%_)1*M2 zH$^75gSito?78d9 zio^8>@~RsRuPp9ddHAIxi;HVE9y+WG+ zQ#?46)O_|O{P;(2znV*Sw$~QpWx&sC zi?$Z56$^-+B5Iip51rtzPZnRaQiOm;1G~&ZIgoCBCF_6Zvm;F!~vnTee~ZD zZKuoIL2BryK&_zFfWx-ZZM;o1I$W{e14Fxuwaiw>{d7 z-?{$AwX`+zEawRAnS9Ts5B&128OrvLmuwF|ap=X|O9#w5S0*o-u)A;HpRTf!|1KfH z$`?mYJfIr4#9lzv`!`$%@Q9xdvSCq$@%jSK7yK{E4dwEBM1GKm~!MZ_%_xHHG@U ztvBZqOhY%x@pLNL)~IX-8XL%DBt_6ks;$wBb;w&9Z*H$^y&iTLv7i%aU>TYh8k}Cp zW-&H2$`uNbWf@YTfHAniX|s5+29bwCf!G@x8e@XM&Q>V0*=#djq-u_&5=BB@;p9>* z$q9Lz$V@I?XeI=rQ4}-4{X6Q2y96B(+UsPkaWda7inG9WJVCZ9ic4{q7dTPbc8p|5 zio+8Peq4ye8jzeoCW}V3Dh3J43>Z3s3*wQ5Ad>V>zX77HBiF&aV9r(o6sft2`%fp&^#s)}AgJ~Bxcxp) zJcsmvZiuq`Adp9mjJ*RxLYT)(INV-W&e#K52hM^R$oMc6(ga}4l0`8v@4yf>+JojC zzLdC!Ub>eJV2BolBPLMkML;npT>&T?HhC$xiRmHCRyLUQ0l43ganO)AHeAYN{W?q zObf2=B=NMB^idIISF|If^rw`1u1l4{6(nGX%zA)y$FP{4Me_vP4Ot0y2sGj@E2|5b zolJoCc2dEtTBXCh2}{_L;z_I4x)s~Lip?sXS*aB_?0sFKGFq#Vy zP6EMrt=-kl2>?ZL5koX(?s0T?>09ib8J6_BGeX=M?+z%;1_#pRMAIP`M3`{}YUKOo?%G15VIoR)~oVgA@s(#$Yiw2&)(uMb;HT zp_IvJRAL3gq0 zWT&9Era7x!*U92!I)&?q0B`kql(reqVRY8QN4N**O=}^bDdbcIwZSvcKIf#L2lOvvpm{rEGIRkfTGS&={M;V-9Re6=t zY(fEplQCu;3R>-N(&de5bDq{2skBC)GrNJ9vdN#yD3x3|Nj7;+REx@#r*I$|>vSg^ zJ=P?q3b0rbizj)TpH(Y-c?}jr0~&?N9!WakZpe$W8E4eggeOoFp=c2j!9?8T40}7h zd^qpqBXCC7#AOoco-|H&W!u{NTPI#@YeNmVPFDI2HdI9H>jFb2#Qt9Haf2{2fFog2 zz~vmtrZ|C@;}L=GE_H2LtH5RY8|MJ2h+2dAMGW=OW;Vl%eNbr5BssE(FA;$xSFSO(9_6C}^$ln7$~%jFDDa!E14`a8J@W_)v$W(2Z`g_mI?ll42PA3}>* zJcxjDx&(pcOM`e>2EArB)+`LbYx5w?iaXgN&Wb(|*_FP@%b>0po3d;XDI+nQPKqv% zh*rxfE|pdTVxpJJQ`%6R%2_g$ z0p%R2u)JjWKp7W#T~6uJ;Mft8+ib>42F1A!qZ1^SvQ_klRyrw=6v?%#b(&Vi&|h05G!jIFQtfPk~#N20&k1?X9UE0f^yZ z$Oc%P#5p>gDbB^S8!qul!;G?nXDY`6V~SVnN7Q)`TZhMDvLkT+OGDhO9V_*EfT`n0 zssJURGAQ+GwbBq8KT=(}{ISIsB#o5@ONLcd7bK&rfP$n>T98Pp4&QWL^V;0j1@F>- z`|8la)qA#D^v|zb{pr|nsOgq1JJruHYmObf)_!h@;=1(sWxqRcbSib|!LiGGR@8ja znw&fF@TLczyl-vq-pG7kCbVMSmbNYNuV2uN`DWiIxP2_Go=$JS>Q>|)DJ`W>rvI=u zckirP;AnDK>XaoyPh!Z*!|EK zPxznIpFDS}_vpCM4}@o~-u3zFgCnNQxnt_oG22e>mGw@jp1*wKeS5EYO+Ndhx(|PT z+&Syb`=!;AD#>GFNdu$AKu#Ggk$hWIQ!O372)MDhzM;6D3{0%OqN!FgY}oMXn$lNw zZH;(dRq0(ZokZ_Ss-D^N`HRiB?`W$ZH{;|H?%Bf+JU#8mFCX9Z)P^k&-?r1+>Hcg} z^q8se+WOIrzlu@oSDL3S0I%4-u=@^`^{q|!?tX5`7iZ90E=nykyc>OiSA*k^ES;#h zV#9*XOQ7_F!m+*SFYkHf@$-dF`)?!jRv8ZUHZDK#!QtNQn)Umxf2%$4qO#U`V#3KA z*+VjoiQD5%Za`LI)Ke7I9WkLFaSaQ!5t1bK^XLwOY`C;Ez zkW2?AlnPu{t*kFChD(5-l@_uZ<+z%wRf6`BDY6&0zVy=J(-$T$o8@}z$P6G|D-(lV zBPr;wtWgp_i2;0V{owyAWLHY-l|Y-s#=X5I3D&_xz-z6PAB0%ni#X$Htz1bW&!{4YA%2&N<$j zHedalske+8HgR*qhBfEbjLEN`9>3}1nzjZ-@3rUf3zjXrPQCx_>0i9md=2&b#rd)K zp6DCtzHKe_wq ztH-Z6czfNXe><%YPtV`ibjx+C&KzHPR@VHNYIAh%4fA8ykJ}8-OKhKV(YF7>#l3G1 HfX06Sr=2Et+sfzcCtqj5#O_a=)9Nr=J)%3 zf8YE2{d_0D(pJ^n74{X!Pg9In4lM0WVqn+XsS(4%Co{k{ir#5vg=xwu{k9e$j)Qh(BEF((o-XQF9 zSlc_)8V$trETz#PIMVKQIRbdQ%tNC=-5u>6DM{kzX*7jGp^K@W!rj{>skrLS&fDesDsAS>I8Q!GUb zM5aB=kTfM(G^6|Vdn}V6B-u;{NpTXBWGKNaP)Vj(<3tDo(a6$jFk1V}0evXg$W2ot zt14g>s9~lEA=OnPN1S?XSF@GV{AjMXlZI%5k8!fwl5^J<$rl>5kUPLeEa3Jxr z)e6b3gbEHAqU9eBxnVk;OQji`xd6bBPwaybn8fgO!CiFdQm*a8!qtv7#rGmG`g{_X-gl z?Z%LV4FZEGB&VV;0vF=8AnmuYWzz2Cqg)6e!sfh(frGJdk&Wq`sdxakg&7dTQH<_K zF|8YL+dLr*2(dvP^J4|nH*B{Hfq2{>EZTwqYsb?e6!VD%>&Tf6EjUBLsxJeM0^*B0 z`?E1eYB1r3d?*b2AcUq-FNDbFzN}S#haq=Cw3iGa%GK9dws8fcnTw`HrWnAfGRwPI zRO=-A!BW03;1T0aFRg`HPp2a~XxE_;21`bC#coa;6LChDbHkpjDbAV*T|Y(SoK%QT zfCI_C7#PliMqxmkCo~k`hV4dx@~7~Wo5xBdKL|TXe+;q`J|}O8*u89o3HH;`f=+9| zgBeHMkrgRtw=Lv#gsl;dar+Hkx6_qNyWvurakwIWGl_({Gf=V^BfTVwi`{PDpdbM> zEhNmzti9|R959;P{dt}W`}0!Tn;wj4>}C%-;Kgz=A57W_4Q3nEC-tR_-)KZRPc9QO z&^kkMK%hxe80qGj{+J6fI9*W$28=1cokXDJO^&u!% zh^4Ji0fis}Ghhf^KxjE`e!vU)>>4?d5s0QB%o?rc2I-XJqAB2x+k_`_kB6zek^>^8>a$VLo&D(x(0bU0m(*z;*uj_r&(UAPz{@Hwo<|1sd1sz1VJyM&+L9Ku+c3cFWvvB|hS7yP z4JB*NUSbSZI;S@l?S3Eyc80Tg5ESAZ)fu$WCatYR6F@T6@6UM3P7c>bc$~x2oahSk zI!&mg$5U8Dud%rkoEI5{gBYLpCT*QW2D6bGlaz^O(l&2A*dG+*C9jx3@`g?!pUIVT z1T|3T=^1XFM76DrHQ+W??HO&TsNB~jmdeQez24(S(PIQY;*>dJEhRmGQtM3L&jEW?j=)E~nnK?pocl++nY z6bV|!uK(w9UZez0PO#xlE`yoam1J0nszTsN*r-&)P8vqeDg=)rpqi;cVExi4Ue-ac zi%)e)BdFRnimvj`_uy3yLS2XqiHQ`!aI$X`vUzG+$maQ4EL4^n;HYXC*C23i1K7!I z$Dq9)2`QVVxJIH{GE`Hcu7*4Ss3k&7s|l9P7V0+Eu<<+8b^i58OB9j$ac*ih9BmD4i0@jBUooOCmI$=0D*^HGT zq(rJ+9>D@qR-oE{Tz(8EA1=GIK6i};q@E6Ap{^%GgNZc@M+&pb>tx#1CcwU!+U2q~ zGN?{!IFq69tgE5oEet17G$r)v40?-ZY%$tPfoj0s)RXi5U=gw_;S>&+yn zj>pY$wXs{Tr%Wc20;%|kVnZXdb&b`S7_dR&Slld{;Q_d}Y4{ncG>br`ISW*j;h|=w zLMc!5z-hH9Uokp)V2WX>I*n*ZWI~*WRN#oCn}X#o(>nn9yZ2byDNpQdYE{?y_tijGEu z72}$kD~gFtKt<7}tSA&sM=n0EYhCfa#Rr*BKY8WlH3#l<81G-d=DkVrSm!0X_Um@A zH@*4tIqol3XwJ)>z4DKT-71z#f1>WFp^2eujte!FZ#&wpfDwh?n zv)z7Z=H4y(>04G-4%-e}!?!M7GWpV;7bo3+lXu_4Ql;(4zrGrO@WXdLdBVB(=JkCa zlD++hzgglwOLy?jwF+tQF(CcLl54lx_C5KVV_U=9jYq%uaM>G^CvJ#ewC0Hq*1UY` zx%01@G2_e!{(eZcY)bQ@)mv^p^vg%p^ImIvb>UmyxsTtfY*sWWZkKBpI9(3pxf2zN zZ(CZLmE)HJv#RS0tLy2&)YelvTNUHRjc;zLy*0PC$mdOs-j&ly_O7C7$AJ$X>{`CB zXTsz;M_(6q9@%jB%-65EW7}Pucm4LV{lR|!``eOl+A5E3n%Hqqir(~V`^?4ADUU1} zyh`hQYTMc;?_F{1bL^7;C>?WxTSAeCqi4T<^;FF%n-|}?0?uue-aM51_=dfAd|Byt zKb^SZM)NDnI#wV4^O0qRn>M|8{!_h?2f&|Le9Te|c{CTj1gaQx4Cz%zxbbEZ6goeFKTs!nf*MS8bW{@0Tv>pLXEu z>8F3ZZ`aYgp5MCZda$D0EtlNA)oP3X#2H?dQU5|8swidyQ)&gSY6d6N7ULDb1+|5$ z1)SXS3*Tnr&6|_c&fEun`RJV4x!eAEyY3?(*Q%0(-J+-%&u9V3pTz*Nb;9T$52`bi z6F_q4=kQuXAC%idOGVL?`1WORkMq%o-e9(jTlgNSXg)rF!IM|6-T2a1^S*iJp`n8Z z9&zvLetZ_Y^|Oy>T+z1T?#!{FaU1W!Ziyb9bWIcW?&B{mU+h^iO;djBrE}(}?)u&C zB|V3y^<>yrCV%=u{>?k)A6fYRvi#kT9nZHtZJbfE9KYwr=W+|cdAs-Q!W27V?p2+O zl;55jShHP-W!643e?!w}9)3;crRTW|j(sqF@6P`!)~#N(honRP&vYx5_hlAu_V&Oa;dDk>f-f_ n4(^> "$FASTFILE" -echo " produce(" >> "$FASTFILE" -echo " username: '$APPLE_ID'," >> "$FASTFILE" -echo " app_identifier: '${BASE_BUNDLE_ID}'," >> "$FASTFILE" -echo " app_name: '$APP_NAME'," >> "$FASTFILE" -echo " language: 'English'," >> "$FASTFILE" -echo " app_version: '1.0'," >> "$FASTFILE" -echo " team_id: '$TEAM_ID'," >> "$FASTFILE" -echo " skip_itc: true," >> "$FASTFILE" -echo " )" >> "$FASTFILE" - -echo " produce(" >> "$FASTFILE" -echo " username: '$APPLE_ID'," >> "$FASTFILE" -echo " app_identifier: '${BASE_BUNDLE_ID}.watchkitapp'," >> "$FASTFILE" -echo " app_name: '$APP_NAME Watch App'," >> "$FASTFILE" -echo " language: 'English'," >> "$FASTFILE" -echo " app_version: '1.0'," >> "$FASTFILE" -echo " team_id: '$TEAM_ID'," >> "$FASTFILE" -echo " skip_itc: true," >> "$FASTFILE" -echo " )" >> "$FASTFILE" - -echo " produce(" >> "$FASTFILE" -echo " username: '$APPLE_ID'," >> "$FASTFILE" -echo " app_identifier: '${BASE_BUNDLE_ID}.watchkitapp.watchkitextension'," >> "$FASTFILE" -echo " app_name: '$APP_NAME Watch App Extension'," >> "$FASTFILE" -echo " language: 'English'," >> "$FASTFILE" -echo " app_version: '1.0'," >> "$FASTFILE" -echo " team_id: '$TEAM_ID'," >> "$FASTFILE" -echo " skip_itc: true," >> "$FASTFILE" -echo " )" >> "$FASTFILE" - -for EXTENSION in ${APP_EXTENSIONS[@]}; do - echo " produce(" >> "$FASTFILE" - echo " username: '$APPLE_ID'," >> "$FASTFILE" - echo " app_identifier: '${BASE_BUNDLE_ID}.${EXTENSION}'," >> "$FASTFILE" - echo " app_name: '${APP_NAME} ${EXTENSION}'," >> "$FASTFILE" - echo " language: 'English'," >> "$FASTFILE" - echo " app_version: '1.0'," >> "$FASTFILE" - echo " team_id: '$TEAM_ID'," >> "$FASTFILE" - echo " skip_itc: true," >> "$FASTFILE" - echo " )" >> "$FASTFILE" -done - -echo "end" >> "$FASTFILE" - -pushd "$BASE_DIR" - -fastlane cert ${CREDENTIALS[@]} --development - -fastlane manage_app - -fastlane produce group -g "group.$BASE_BUNDLE_ID" -n "$APP_NAME Group" ${CREDENTIALS[@]} - -fastlane produce enable_services -a "$BASE_BUNDLE_ID" ${CREDENTIALS[@]} \ - --app-group \ - --push-notification \ - --sirikit - -fastlane produce associate_group -a "$BASE_BUNDLE_ID" "group.$BASE_BUNDLE_ID" ${CREDENTIALS[@]} -for EXTENSION in ${APP_EXTENSIONS[@]}; do - fastlane produce enable_services -a "${BASE_BUNDLE_ID}.${EXTENSION}" ${CREDENTIALS[@]} \ - --app-group - - fastlane produce associate_group -a "${BASE_BUNDLE_ID}.${EXTENSION}" "group.$BASE_BUNDLE_ID" ${CREDENTIALS[@]} -done - -for DEVELOPMENT_FLAG in "--development"; do - fastlane sigh -a "$BASE_BUNDLE_ID" ${CREDENTIALS[@]} -o "$PROVISIONING_DIRECTORY" $DEVELOPMENT_FLAG \ - --skip_install - for EXTENSION in ${APP_EXTENSIONS[@]}; do - fastlane sigh -a "${BASE_BUNDLE_ID}.${EXTENSION}" ${CREDENTIALS[@]} -o "$PROVISIONING_DIRECTORY" $DEVELOPMENT_FLAG \ - --skip_install - done -done - -popd - -rm -rf "$BASE_DIR" diff --git a/build-system/xcode_version b/build-system/xcode_version deleted file mode 100644 index 40e6bd96a6..0000000000 --- a/build-system/xcode_version +++ /dev/null @@ -1 +0,0 @@ -12.1 diff --git a/buildbox/buck/buck-2be0e8fa79117daa854e79dd7d9ce32048d506a8.patch b/buildbox/buck/buck-2be0e8fa79117daa854e79dd7d9ce32048d506a8.patch deleted file mode 100644 index fe6ee40c41..0000000000 --- a/buildbox/buck/buck-2be0e8fa79117daa854e79dd7d9ce32048d506a8.patch +++ /dev/null @@ -1,157 +0,0 @@ -diff --git a/.gitignore b/.gitignore -index 78ce658b9a..30c0369ab7 100644 ---- a/.gitignore -+++ b/.gitignore -@@ -3,6 +3,7 @@ - - # IntelliJ build - /intellij-out/ -+/.idea/ - - # Buck - /buck-out -diff --git a/.idea/modules.xml b/.idea/modules.xml -deleted file mode 100644 -index 7ff823b554..0000000000 ---- a/.idea/modules.xml -+++ /dev/null -@@ -1,16 +0,0 @@ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -\ No newline at end of file -diff --git a/src/com/facebook/buck/apple/AppleBundle.java b/src/com/facebook/buck/apple/AppleBundle.java -index d895ab9a79..ad42beb302 100644 ---- a/src/com/facebook/buck/apple/AppleBundle.java -+++ b/src/com/facebook/buck/apple/AppleBundle.java -@@ -992,7 +992,11 @@ public class AppleBundle extends AbstractBuildRuleWithDeclaredAndExtraDeps - keys.put("DTPlatformName", new NSString(platform.getName())); - keys.put("DTPlatformVersion", new NSString(sdkVersion)); - keys.put("DTSDKName", new NSString(sdkName + sdkVersion)); -- keys.put("MinimumOSVersion", new NSString(minOSVersion)); -+ if (infoPlistSubstitutions.containsKey("MinimumOSVersion")) { -+ keys.put("MinimumOSVersion", new NSString(infoPlistSubstitutions.get("MinimumOSVersion"))); -+ } else { -+ keys.put("MinimumOSVersion", new NSString(minOSVersion)); -+ } - if (platformBuildVersion.isPresent()) { - keys.put("DTPlatformBuild", new NSString(platformBuildVersion.get())); - keys.put("DTSDKBuild", new NSString(platformBuildVersion.get())); -@@ -1185,9 +1189,10 @@ public class AppleBundle extends AbstractBuildRuleWithDeclaredAndExtraDeps - - // .framework bundles will be code-signed when they're copied into the containing bundle. - private boolean needCodeSign() { -- return binary.isPresent() -+ return false; -+ /*return binary.isPresent() - && ApplePlatform.needsCodeSign(platform.getName()) -- && !extension.equals(FRAMEWORK_EXTENSION); -+ && !extension.equals(FRAMEWORK_EXTENSION);*/ - } - - @Override -diff --git a/src/com/facebook/buck/apple/MultiarchFileInfos.java b/src/com/facebook/buck/apple/MultiarchFileInfos.java -index c078b2e134..030f9fc289 100644 ---- a/src/com/facebook/buck/apple/MultiarchFileInfos.java -+++ b/src/com/facebook/buck/apple/MultiarchFileInfos.java -@@ -177,7 +177,12 @@ public class MultiarchFileInfos { - cxxBuckConfig.shouldCacheLinks(), - BuildTargetPaths.getGenPath( - projectFilesystem, buildTarget, multiarchOutputPathFormat)); -- graphBuilder.addToIndex(multiarchFile); -+ Optional existingRule2 = graphBuilder.getRuleOptional(multiarchFile.getBuildTarget()); -+ if (existingRule2.isPresent()) { -+ return existingRule2.get(); -+ } else { -+ graphBuilder.addToIndex(multiarchFile); -+ } - return multiarchFile; - } else { - return new NoopBuildRule(buildTarget, projectFilesystem); -diff --git a/src/com/facebook/buck/features/apple/project/ProjectGenerator.java b/src/com/facebook/buck/features/apple/project/ProjectGenerator.java -index 8db968b982..b10f793d8e 100644 ---- a/src/com/facebook/buck/features/apple/project/ProjectGenerator.java -+++ b/src/com/facebook/buck/features/apple/project/ProjectGenerator.java -@@ -825,6 +825,7 @@ public class ProjectGenerator { - Optional.of(xcodeDescriptions.getXCodeDescriptions())); - if (bundleRequiresRemovalOfAllTransitiveFrameworks(targetNode)) { - copiedRules = rulesWithoutFrameworkBundles(copiedRules); -+ copiedRules = rulesWithoutDylibs(copiedRules); - } else if (bundleRequiresAllTransitiveFrameworks(binaryNode, bundleLoaderNode)) { - copiedRules = - ImmutableSet.>builder() -@@ -954,6 +955,22 @@ public class ProjectGenerator { - .toImmutableList(); - } - -+ private ImmutableList> rulesWithoutDylibs( -+ Iterable> copiedRules) { -+ return RichStream.from(copiedRules) -+ .filter( -+ input -> -+ TargetNodes.castArg(input, AppleLibraryDescriptionArg.class) -+ .map(argTargetNode -> { -+ if (argTargetNode.getBuildTarget().getFlavors().contains(CxxDescriptionEnhancer.SHARED_FLAVOR)) { -+ return false; -+ } -+ return true; -+ }) -+ .orElse(true)) -+ .toImmutableList(); -+ } -+ - private ImmutableList> rulesWithoutBundleLoader( - Iterable> copiedRules, TargetNode bundleLoader) { - return RichStream.from(copiedRules).filter(x -> !bundleLoader.equals(x)).toImmutableList(); -@@ -2316,8 +2333,9 @@ public class ProjectGenerator { - .transform( - bundleExtension -> { - switch (bundleExtension) { -- case APP: - case APPEX: -+ return false; -+ case APP: - case PLUGIN: - case BUNDLE: - case XCTEST: -@@ -2515,7 +2533,7 @@ public class ProjectGenerator { - - librarySearchPaths.add("$DT_TOOLCHAIN_DIR/usr/lib/swift/$PLATFORM_NAME"); - if (options.shouldLinkSystemSwift()) { -- librarySearchPaths.add("$DT_TOOLCHAIN_DIR/usr/lib/swift-5.0/$PLATFORM_NAME"); -+ //librarySearchPaths.add("$DT_TOOLCHAIN_DIR/usr/lib/swift-5.0/$PLATFORM_NAME"); - } - } - -@@ -3444,7 +3462,7 @@ public class ProjectGenerator { - - PBXFileReference fileReference = getLibraryFileReference(targetNode); - PBXBuildFile buildFile = new PBXBuildFile(fileReference); -- if (fileReference.getExplicitFileType().equals(Optional.of("wrapper.framework"))) { -+ if (fileReference.getExplicitFileType().equals(Optional.of("wrapper.framework")) || fileReference.getExplicitFileType().equals(Optional.of("compiled.mach-o.dylib"))) { - UnflavoredBuildTargetView buildTarget = - targetNode.getBuildTarget().getUnflavoredBuildTarget(); - if (frameworkTargets.contains(buildTarget)) { -@@ -4696,6 +4714,9 @@ public class ProjectGenerator { - - private static boolean bundleRequiresRemovalOfAllTransitiveFrameworks( - TargetNode targetNode) { -+ if (targetNode.getConstructorArg().getXcodeProductType().equals(Optional.of("com.apple.product-type.app-extension"))) { -+ return true; -+ } - return isFrameworkBundle(targetNode.getConstructorArg()); - } - diff --git a/buildbox/buck/prepare_buck_source.sh b/buildbox/buck/prepare_buck_source.sh deleted file mode 100644 index 2430dda76e..0000000000 --- a/buildbox/buck/prepare_buck_source.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -ls [] - -if [ ! -f "" ]; then - exit 1 -fi diff --git a/submodules/AccountContext/BUCK b/submodules/AccountContext/BUCK deleted file mode 100644 index 6a3a3d431f..0000000000 --- a/submodules/AccountContext/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "AccountContext", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramAudio:TelegramAudio", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/TemporaryCachedPeerDataManager:TemporaryCachedPeerDataManager", - "//submodules/DeviceLocationManager:DeviceLocationManager", - "//submodules/MediaPlayer:UniversalMediaPlayer", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - #"//submodules/WalletCore:WalletCore", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], - weak_frameworks = [ - "Contacts", - ], -) diff --git a/submodules/AccountUtils/BUCK b/submodules/AccountUtils/BUCK deleted file mode 100644 index f5cec5d49c..0000000000 --- a/submodules/AccountUtils/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "AccountUtils", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/ActionSheetPeerItem/BUCK b/submodules/ActionSheetPeerItem/BUCK deleted file mode 100644 index dcbc59dd47..0000000000 --- a/submodules/ActionSheetPeerItem/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ActionSheetPeerItem", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/AvatarNode:AvatarNode", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ActivityIndicator/BUCK b/submodules/ActivityIndicator/BUCK deleted file mode 100644 index 334ac6aecf..0000000000 --- a/submodules/ActivityIndicator/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ActivityIndicator", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/AlertUI/BUCK b/submodules/AlertUI/BUCK deleted file mode 100644 index bde039a00d..0000000000 --- a/submodules/AlertUI/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "AlertUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/AnimatedAvatarSetNode/BUCK b/submodules/AnimatedAvatarSetNode/BUCK deleted file mode 100644 index e2e89ba114..0000000000 --- a/submodules/AnimatedAvatarSetNode/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "AnimatedAvatarSetNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Display:Display#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/AvatarNode:AvatarNode", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/AnimatedCountLabelNode/BUCK b/submodules/AnimatedCountLabelNode/BUCK deleted file mode 100644 index 5943d1f49c..0000000000 --- a/submodules/AnimatedCountLabelNode/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "AnimatedCountLabelNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Display:Display#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/AnimatedNavigationStripeNode/BUCK b/submodules/AnimatedNavigationStripeNode/BUCK deleted file mode 100644 index 1dd8c4bbb4..0000000000 --- a/submodules/AnimatedNavigationStripeNode/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "AnimatedNavigationStripeNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Display:Display#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/AnimatedStickerNode/BUCK b/submodules/AnimatedStickerNode/BUCK deleted file mode 100644 index 1e6a948afa..0000000000 --- a/submodules/AnimatedStickerNode/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "AnimatedStickerNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/YuvConversion:YuvConversion", - "//submodules/GZip:GZip", - "//submodules/rlottie:RLottieBinding", - "//submodules/MediaResources:MediaResources", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/AnimationUI/BUCK b/submodules/AnimationUI/BUCK deleted file mode 100644 index 85c63613bc..0000000000 --- a/submodules/AnimationUI/BUCK +++ /dev/null @@ -1,29 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "AnimationUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/YuvConversion:YuvConversion", - "//submodules/StickerResources:StickerResources", - "//submodules/MediaResources:MediaResources", - "//submodules/Tuples:Tuples", - "//submodules/GZip:GZip", - "//submodules/rlottie:RLottieBinding", - "//submodules/lottie-ios:Lottie", - "//submodules/AppBundle:AppBundle", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/MobileCoreServices.framework", - ], -) diff --git a/submodules/AppBundle/BUCK b/submodules/AppBundle/BUCK deleted file mode 100644 index 34e2293199..0000000000 --- a/submodules/AppBundle/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "AppBundle", - srcs = glob([ - "Sources/**/*.m", - ]), - headers = glob([ - "Sources/**/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/AppLock/BUCK b/submodules/AppLock/BUCK deleted file mode 100644 index 65a96d1c58..0000000000 --- a/submodules/AppLock/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "AppLock", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/MonotonicTime:MonotonicTime", - "//submodules/PasscodeUI:PasscodeUI", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/ImageBlur:ImageBlur", - "//submodules/AccountContext:AccountContext", - "//submodules/AppLockState:AppLockState", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/AppLockState/BUCK b/submodules/AppLockState/BUCK deleted file mode 100644 index 26e6f4360d..0000000000 --- a/submodules/AppLockState/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "AppLockState", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/MonotonicTime:MonotonicTime", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/ArchivedStickerPacksNotice/BUCK b/submodules/ArchivedStickerPacksNotice/BUCK deleted file mode 100644 index d544ffbad2..0000000000 --- a/submodules/ArchivedStickerPacksNotice/BUCK +++ /dev/null @@ -1,29 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ArchivedStickerPacksNotice", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/StickerResources:StickerResources", - "//submodules/AlertUI:AlertUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/MergeLists:MergeLists", - "//submodules/ItemListUI:ItemListUI", - "//submodules/ItemListStickerPackItem:ItemListStickerPackItem", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/AsyncDisplayKit/BUCK b/submodules/AsyncDisplayKit/BUCK deleted file mode 100644 index e4a512cf8e..0000000000 --- a/submodules/AsyncDisplayKit/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "framework") - -public_headers = glob([ - "Source/PublicHeaders/AsyncDisplayKit/*.h", -]) - -private_headers = glob([ - "Source/*.h", -]) - -framework( - name = "AsyncDisplayKit", - srcs = glob([ - "Source/**/*.m", - "Source/**/*.mm", - ]), - headers = private_headers, - exported_headers = public_headers, - compiler_flags = [ - "-DMINIMAL_ASDK", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/QuartzCore.framework", - "$SDKROOT/System/Library/Frameworks/CoreMedia.framework", - "$SDKROOT/System/Library/Frameworks/CoreText.framework", - "$SDKROOT/System/Library/Frameworks/CoreGraphics.framework", - ] -) diff --git a/submodules/AuthTransferUI/BUCK b/submodules/AuthTransferUI/BUCK deleted file mode 100644 index 69bd9a6a32..0000000000 --- a/submodules/AuthTransferUI/BUCK +++ /dev/null @@ -1,33 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "AuthTransferUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/QrCode:QrCode", - "//submodules/Camera:Camera", - "//submodules/GlassButtonNode:GlassButtonNode", - "//submodules/AlertUI:AlertUI", - "//submodules/AppBundle:AppBundle", - "//submodules/SolidRoundedButtonNode:SolidRoundedButtonNode", - "//submodules/OverlayStatusController:OverlayStatusController", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/Markdown:Markdown", - "//submodules/AnimationUI:AnimationUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/DeviceAccess:DeviceAccess", - "//submodules/UndoUI:UndoUI", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/AuthorizationUI/BUCK b/submodules/AuthorizationUI/BUCK deleted file mode 100644 index 7559527e89..0000000000 --- a/submodules/AuthorizationUI/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "AuthorizationUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Display:Display#shared", - "//submodules/TextFormat:TextFormat", - "//submodules/Markdown:Markdown", - "//submodules/TelegramPresentationData:TelegramPresentationData", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/AvatarNode/BUCK b/submodules/AvatarNode/BUCK deleted file mode 100644 index b4aa0ab0df..0000000000 --- a/submodules/AvatarNode/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "AvatarNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AnimationUI:AnimationUI", - "//submodules/AppBundle:AppBundle", - "//submodules/AccountContext:AccountContext", - "//submodules/Emoji:Emoji", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/BotPaymentsUI/BUCK b/submodules/BotPaymentsUI/BUCK deleted file mode 100644 index e8c0210d0e..0000000000 --- a/submodules/BotPaymentsUI/BUCK +++ /dev/null @@ -1,29 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "BotPaymentsUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/LocalAuth:LocalAuth", - "//submodules/AccountContext:AccountContext", - "//submodules/ItemListUI:ItemListUI", - "//submodules/PasswordSetupUI:PasswordSetupUI", - "//submodules/PhotoResources:PhotoResources", - "//submodules/TelegramNotices:TelegramNotices", - "//submodules/Stripe:Stripe", - "//submodules/CountrySelectionUI:CountrySelectionUI", - "//submodules/AppBundle:AppBundle", - "//submodules/PresentationDataUtils:PresentationDataUtils", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/BuildConfig/BUCK b/submodules/BuildConfig/BUCK deleted file mode 100644 index 8214c78f99..0000000000 --- a/submodules/BuildConfig/BUCK +++ /dev/null @@ -1,29 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") -load("//Config:app_configuration.bzl", "appConfig") - -static_library( - name = "BuildConfig", - srcs = glob([ - "Sources/*.m", - ]), - compiler_flags = [ - '-DAPP_CONFIG_API_ID=' + appConfig()["apiId"], - '-DAPP_CONFIG_API_HASH="' + appConfig()["apiHash"] + '"', - '-DAPP_CONFIG_APP_CENTER_ID="' + appConfig()["appCenterId"] + '"', - '-DAPP_CONFIG_IS_INTERNAL_BUILD=' + appConfig()["isInternalBuild"], - '-DAPP_CONFIG_IS_APPSTORE_BUILD=' + appConfig()["isAppStoreBuild"], - '-DAPP_CONFIG_APPSTORE_ID=' + appConfig()["appStoreId"], - '-DAPP_SPECIFIC_URL_SCHEME="' + appConfig()["appSpecificUrlScheme"] + '"', - ], - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/BuildConfigExtra/BUCK b/submodules/BuildConfigExtra/BUCK deleted file mode 100644 index 7c4e20f519..0000000000 --- a/submodules/BuildConfigExtra/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "BuildConfigExtra", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - "//submodules/PKCS:PKCS", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/CallListUI/BUCK b/submodules/CallListUI/BUCK deleted file mode 100644 index 5499fccd86..0000000000 --- a/submodules/CallListUI/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "CallListUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/AccountContext:AccountContext", - "//submodules/ItemListUI:ItemListUI", - "//submodules/AvatarNode:AvatarNode", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/AlertUI:AlertUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/TelegramNotices:TelegramNotices", - "//submodules/MergeLists:MergeLists", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/Camera/BUCK b/submodules/Camera/BUCK deleted file mode 100644 index 186174ee4c..0000000000 --- a/submodules/Camera/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "Camera", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/AVFoundation.framework", - ], -) diff --git a/submodules/ChatInterfaceState/BUCK b/submodules/ChatInterfaceState/BUCK deleted file mode 100644 index 13b14d8c7b..0000000000 --- a/submodules/ChatInterfaceState/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ChatInterfaceState", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TextFormat:TextFormat", - "//submodules/AccountContext:AccountContext", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ChatListFilterSettingsHeaderItem/BUCK b/submodules/ChatListFilterSettingsHeaderItem/BUCK deleted file mode 100644 index de34d12381..0000000000 --- a/submodules/ChatListFilterSettingsHeaderItem/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ChatListFilterSettingsHeaderItem", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/ItemListUI:ItemListUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/AppBundle:AppBundle", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ChatListSearchItemHeader/BUCK b/submodules/ChatListSearchItemHeader/BUCK deleted file mode 100644 index a72c11eea8..0000000000 --- a/submodules/ChatListSearchItemHeader/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ChatListSearchItemHeader", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/ListSectionHeaderNode:ListSectionHeaderNode", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ChatListSearchItemNode/BUCK b/submodules/ChatListSearchItemNode/BUCK deleted file mode 100644 index b6b530bc87..0000000000 --- a/submodules/ChatListSearchItemNode/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ChatListSearchItemNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/SearchBarNode:SearchBarNode", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ChatListSearchRecentPeersNode/BUCK b/submodules/ChatListSearchRecentPeersNode/BUCK deleted file mode 100644 index 6aefe829e5..0000000000 --- a/submodules/ChatListSearchRecentPeersNode/BUCK +++ /dev/null @@ -1,26 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ChatListSearchRecentPeersNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/ListSectionHeaderNode:ListSectionHeaderNode", - "//submodules/HorizontalPeerItem:HorizontalPeerItem", - "//submodules/MergeLists:MergeLists", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/ContextUI:ContextUI", - "//submodules/AccountContext:AccountContext", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ChatListUI/BUCK b/submodules/ChatListUI/BUCK deleted file mode 100644 index 84d1f8d7f1..0000000000 --- a/submodules/ChatListUI/BUCK +++ /dev/null @@ -1,64 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ChatListUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramBaseController:TelegramBaseController", - "//submodules/OverlayStatusController:OverlayStatusController", - "//submodules/AlertUI:AlertUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/UndoUI:UndoUI", - "//submodules/TelegramNotices:TelegramNotices", - "//submodules/SearchUI:SearchUI", - "//submodules/MergeLists:MergeLists", - "//submodules/ActivityIndicator:ActivityIndicator", - "//submodules/SearchBarNode:SearchBarNode", - "//submodules/ChatListSearchRecentPeersNode:ChatListSearchRecentPeersNode", - "//submodules/ChatListSearchItemNode:ChatListSearchItemNode", - "//submodules/ChatListSearchItemHeader:ChatListSearchItemHeader", - "//submodules/TemporaryCachedPeerDataManager:TemporaryCachedPeerDataManager", - "//submodules/PeerPresenceStatusManager:PeerPresenceStatusManager", - "//submodules/PeerOnlineMarkerNode:PeerOnlineMarkerNode", - "//submodules/LocalizedPeerData:LocalizedPeerData", - "//submodules/ChatTitleActivityNode:ChatTitleActivityNode", - "//submodules/DeleteChatPeerActionSheetItem:DeleteChatPeerActionSheetItem", - "//submodules/LanguageSuggestionUI:LanguageSuggestionUI", - "//submodules/ContactsPeerItem:ContactsPeerItem", - "//submodules/ContactListUI:ContactListUI", - "//submodules/PhotoResources:PhotoResources", - "//submodules/AppBundle:AppBundle", - "//submodules/ContextUI:ContextUI", - "//submodules/PhoneNumberFormat:PhoneNumberFormat", - "//submodules/TelegramIntents:TelegramIntents", - "//submodules/ItemListPeerActionItem:ItemListPeerActionItem", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/SolidRoundedButtonNode:SolidRoundedButtonNode", - "//submodules/TooltipUI:TooltipUI", - "//submodules/ListMessageItem:ListMessageItem", - "//submodules/ChatMessageInteractiveMediaBadge:ChatMessageInteractiveMediaBadge", - "//submodules/MediaPlayer:UniversalMediaPlayer", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/GalleryData:GalleryData", - "//submodules/InstantPageUI:InstantPageUI", - "//submodules/ListSectionHeaderNode:ListSectionHeaderNode", - "//submodules/ChatInterfaceState:ChatInterfaceState", - "//submodules/GridMessageSelectionNode:GridMessageSelectionNode", - "//submodules/ChatListFilterSettingsHeaderItem:ChatListFilterSettingsHeaderItem", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ChatMessageInteractiveMediaBadge/BUCK b/submodules/ChatMessageInteractiveMediaBadge/BUCK deleted file mode 100644 index 37339b5f96..0000000000 --- a/submodules/ChatMessageInteractiveMediaBadge/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ChatMessageInteractiveMediaBadge", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TextFormat:TextFormat", - "//submodules/RadialStatusNode:RadialStatusNode", - "//submodules/AppBundle:AppBundle", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ChatTitleActivityNode/BUCK b/submodules/ChatTitleActivityNode/BUCK deleted file mode 100644 index f573138541..0000000000 --- a/submodules/ChatTitleActivityNode/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ChatTitleActivityNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/LegacyComponents:LegacyComponents", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/CheckNode/BUCK b/submodules/CheckNode/BUCK deleted file mode 100644 index 78852663a9..0000000000 --- a/submodules/CheckNode/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "CheckNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/LegacyComponents:LegacyComponents", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/CloudData/BUCK b/submodules/CloudData/BUCK deleted file mode 100644 index 61dc3a640e..0000000000 --- a/submodules/CloudData/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "CloudData", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/MtProtoKit:MtProtoKit#shared", - "//submodules/EncryptionProvider:EncryptionProvider", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], - weak_frameworks = [ - "CloudKit", - ], -) diff --git a/submodules/ComposePollUI/BUCK b/submodules/ComposePollUI/BUCK deleted file mode 100644 index 7b414c169d..0000000000 --- a/submodules/ComposePollUI/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ComposePollUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/ItemListUI:ItemListUI", - "//submodules/AccountContext:AccountContext", - "//submodules/AlertUI:AlertUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/TextFormat:TextFormat", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ContactListUI/BUCK b/submodules/ContactListUI/BUCK deleted file mode 100644 index 6a6691d744..0000000000 --- a/submodules/ContactListUI/BUCK +++ /dev/null @@ -1,38 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ContactListUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/MergeLists:MergeLists", - "//submodules/SearchUI:SearchUI", - "//submodules/ChatListSearchItemHeader:ChatListSearchItemHeader", - "//submodules/ItemListPeerItem:ItemListPeerItem", - "//submodules/ContactsPeerItem:ContactsPeerItem", - "//submodules/ChatListSearchItemNode:ChatListSearchItemNode", - "//submodules/TelegramPermissionsUI:TelegramPermissionsUI", - "//submodules/TelegramNotices:TelegramNotices", - "//submodules/AlertUI:AlertUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/ShareController:ShareController", - "//submodules/AppBundle:AppBundle", - "//submodules/OverlayStatusController:OverlayStatusController", - "//submodules/PhoneNumberFormat:PhoneNumberFormat", - "//submodules/SolidRoundedButtonNode:SolidRoundedButtonNode", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ContactsPeerItem/BUCK b/submodules/ContactsPeerItem/BUCK deleted file mode 100644 index 3a6eea69dc..0000000000 --- a/submodules/ContactsPeerItem/BUCK +++ /dev/null @@ -1,32 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ContactsPeerItem", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/AvatarNode:AvatarNode", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/CheckNode:CheckNode", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/ItemListPeerItem:ItemListPeerItem", - "//submodules/PeerPresenceStatusManager:PeerPresenceStatusManager", - "//submodules/ItemListUI:ItemListUI", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/ListSectionHeaderNode:ListSectionHeaderNode", - "//submodules/ContextUI:ContextUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ContextUI/BUCK b/submodules/ContextUI/BUCK deleted file mode 100644 index 9249d703dd..0000000000 --- a/submodules/ContextUI/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ContextUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TextSelectionNode:TextSelectionNode", - "//submodules/ReactionSelectionNode:ReactionSelectionNode", - "//submodules/AppBundle:AppBundle", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/CounterContollerTitleView/BUCK b/submodules/CounterContollerTitleView/BUCK deleted file mode 100644 index 72f2ca552a..0000000000 --- a/submodules/CounterContollerTitleView/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "CounterContollerTitleView", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/CountrySelectionUI/BUCK b/submodules/CountrySelectionUI/BUCK deleted file mode 100644 index 06b334d255..0000000000 --- a/submodules/CountrySelectionUI/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "CountrySelectionUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/SearchBarNode:SearchBarNode", - "//submodules/AppBundle:AppBundle", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/Crc32/BUCK b/submodules/Crc32/BUCK deleted file mode 100644 index 5380c8191d..0000000000 --- a/submodules/Crc32/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "Crc32", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/CryptoUtils/BUCK b/submodules/CryptoUtils/BUCK deleted file mode 100644 index 411184de09..0000000000 --- a/submodules/CryptoUtils/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "CryptoUtils", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/Database/Buffers/BUCK b/submodules/Database/Buffers/BUCK deleted file mode 100644 index 9a4ddc96ff..0000000000 --- a/submodules/Database/Buffers/BUCK +++ /dev/null @@ -1,13 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "Buffers", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/Database/MessageHistoryMetadataTable/BUCK b/submodules/Database/MessageHistoryMetadataTable/BUCK deleted file mode 100644 index cc4d7c555c..0000000000 --- a/submodules/Database/MessageHistoryMetadataTable/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "MessageHistoryMetadataTable", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Database/ValueBox:ValueBox", - "//submodules/Database/Table:Table", - "//submodules/Database/PostboxDataTypes:PostboxDataTypes", - "//submodules/Database/PostboxCoding:PostboxCoding", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/Database/MessageHistoryReadStateTable/BUCK b/submodules/Database/MessageHistoryReadStateTable/BUCK deleted file mode 100644 index 39fda20a59..0000000000 --- a/submodules/Database/MessageHistoryReadStateTable/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "MessageHistoryReadStateTable", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Database/ValueBox:ValueBox", - "//submodules/Database/Table:Table", - "//submodules/Database/PostboxDataTypes:PostboxDataTypes", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/Database/MurmurHash/BUCK b/submodules/Database/MurmurHash/BUCK deleted file mode 100644 index 0879c6a67f..0000000000 --- a/submodules/Database/MurmurHash/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "MurmurHash", - srcs = glob([ - "Sources/**/*.swift", - "Sources/**/*.m", - ]), - headers = glob([ - "Sources/**/*.h", - ]), - exported_headers = glob([ - "Sources/**/*.h", - ]), - deps = [ - "//submodules/Database/MurmurHash/Impl:MurMurHashObjC", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/Database/MurmurHash/Impl/BUCK b/submodules/Database/MurmurHash/Impl/BUCK deleted file mode 100644 index d6c57bb02b..0000000000 --- a/submodules/Database/MurmurHash/Impl/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "MurMurHashObjC", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/Database/PeerTable/BUCK b/submodules/Database/PeerTable/BUCK deleted file mode 100644 index b046daaa62..0000000000 --- a/submodules/Database/PeerTable/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PeerTable", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Database/ValueBox:ValueBox", - "//submodules/Database/Table:Table", - "//submodules/Database/PostboxCoding:PostboxCoding", - "//submodules/Database/PostboxDataTypes:PostboxDataTypes", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/Database/PostboxCoding/BUCK b/submodules/Database/PostboxCoding/BUCK deleted file mode 100644 index 585d78b981..0000000000 --- a/submodules/Database/PostboxCoding/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PostboxCoding", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Database/Buffers:Buffers", - "//submodules/Database/MurmurHash:MurmurHash", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/Database/PostboxDataTypes/BUCK b/submodules/Database/PostboxDataTypes/BUCK deleted file mode 100644 index 837af3a0a7..0000000000 --- a/submodules/Database/PostboxDataTypes/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PostboxDataTypes", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Database/ValueBox:ValueBox", - "//submodules/Database/PostboxCoding:PostboxCoding", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/Database/PreferencesTable/BUCK b/submodules/Database/PreferencesTable/BUCK deleted file mode 100644 index 8da2151e7a..0000000000 --- a/submodules/Database/PreferencesTable/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PreferencesTable", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Database/ValueBox:ValueBox", - "//submodules/Database/Table:Table", - "//submodules/Database/PostboxCoding:PostboxCoding", - "//submodules/Database/PostboxDataTypes:PostboxDataTypes", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/Database/Table/BUCK b/submodules/Database/Table/BUCK deleted file mode 100644 index fd0bf366e4..0000000000 --- a/submodules/Database/Table/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "Table", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Database/ValueBox:ValueBox", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/Database/ValueBox/BUCK b/submodules/Database/ValueBox/BUCK deleted file mode 100644 index a12e9c0e07..0000000000 --- a/submodules/Database/ValueBox/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ValueBox", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/sqlcipher:sqlcipher", - "//submodules/Database/Buffers:Buffers", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/DateSelectionUI/BUCK b/submodules/DateSelectionUI/BUCK deleted file mode 100644 index a5a27f0595..0000000000 --- a/submodules/DateSelectionUI/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "DateSelectionUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/TelegramPresentationData:TelegramPresentationData", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/DeleteChatPeerActionSheetItem/BUCK b/submodules/DeleteChatPeerActionSheetItem/BUCK deleted file mode 100644 index 578a972961..0000000000 --- a/submodules/DeleteChatPeerActionSheetItem/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "DeleteChatPeerActionSheetItem", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/AvatarNode:AvatarNode", - "//submodules/TelegramPresentationData:TelegramPresentationData", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/DeviceAccess/BUCK b/submodules/DeviceAccess/BUCK deleted file mode 100644 index 89cb4a25f6..0000000000 --- a/submodules/DeviceAccess/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "DeviceAccess", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Display:Display#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/LegacyComponents:LegacyComponents", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/CoreLocation.framework", - ], -) diff --git a/submodules/DeviceLocationManager/BUCK b/submodules/DeviceLocationManager/BUCK deleted file mode 100644 index 7bd20856a8..0000000000 --- a/submodules/DeviceLocationManager/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "DeviceLocationManager", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/CoreLocation.framework", - ], -) diff --git a/submodules/DeviceProximity/BUCK b/submodules/DeviceProximity/BUCK deleted file mode 100644 index 94392f0568..0000000000 --- a/submodules/DeviceProximity/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "DeviceProximity", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/DirectionalPanGesture/BUCK b/submodules/DirectionalPanGesture/BUCK deleted file mode 100644 index c2ce482cf9..0000000000 --- a/submodules/DirectionalPanGesture/BUCK +++ /dev/null @@ -1,12 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "DirectionalPanGesture", - srcs = glob([ - "Sources/**/*.swift", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/Display/BUCK b/submodules/Display/BUCK deleted file mode 100644 index 6fb664021d..0000000000 --- a/submodules/Display/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "framework") - -framework( - name = "Display", - srcs = glob([ - "Source/**/*.swift", - ]), - deps = [ - "//submodules/ObjCRuntimeUtils:ObjCRuntimeUtils", - "//submodules/UIKitRuntimeUtils:UIKitRuntimeUtils", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AppBundle:AppBundle", - "//submodules/Markdown:Markdown", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/Emoji/BUCK b/submodules/Emoji/BUCK deleted file mode 100644 index 35e87da39c..0000000000 --- a/submodules/Emoji/BUCK +++ /dev/null @@ -1,13 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "Emoji", - srcs = glob([ - "Sources/**/*.swift", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/CoreText.framework", - "$SDKROOT/System/Library/Frameworks/AVFoundation.framework", - ], -) diff --git a/submodules/EncryptionKeyVisualization/BUCK b/submodules/EncryptionKeyVisualization/BUCK deleted file mode 100644 index 72ecc6e1db..0000000000 --- a/submodules/EncryptionKeyVisualization/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "EncryptionKeyVisualization", - srcs = glob([ - "Sources/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/EncryptionKeyVisualization/Impl:EncryptionKeyVisualizationImpl", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/EncryptionKeyVisualization/Impl/BUCK b/submodules/EncryptionKeyVisualization/Impl/BUCK deleted file mode 100644 index 19d1462ea0..0000000000 --- a/submodules/EncryptionKeyVisualization/Impl/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "EncryptionKeyVisualizationImpl", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/EncryptionProvider/BUCK b/submodules/EncryptionProvider/BUCK deleted file mode 100644 index c99c089695..0000000000 --- a/submodules/EncryptionProvider/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "EncryptionProvider", - srcs = glob([ - "Sources/**/*.m", - ]), - headers = glob([ - "PublicHeaders/**/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/FFMpegBinding/BUCK b/submodules/FFMpegBinding/BUCK deleted file mode 100644 index b011e6c299..0000000000 --- a/submodules/FFMpegBinding/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "FFMpegBinding", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "Public/**/*.h", - ]), - deps = [ - "//submodules/ffmpeg:ffmpeg", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/FastBlur/BUCK b/submodules/FastBlur/BUCK deleted file mode 100644 index 5e2cc7b602..0000000000 --- a/submodules/FastBlur/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "FastBlur", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/FileMediaResourceStatus/BUCK b/submodules/FileMediaResourceStatus/BUCK deleted file mode 100644 index 1fa2f38081..0000000000 --- a/submodules/FileMediaResourceStatus/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "FileMediaResourceStatus", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/MediaPlayer:UniversalMediaPlayer", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/WebKit.framework", - ], -) diff --git a/submodules/GZip/BUCK b/submodules/GZip/BUCK deleted file mode 100644 index e15e4b1bd4..0000000000 --- a/submodules/GZip/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "GZip", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "Sources/*.h", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/GalleryData/BUCK b/submodules/GalleryData/BUCK deleted file mode 100644 index 34c899e95f..0000000000 --- a/submodules/GalleryData/BUCK +++ /dev/null @@ -1,31 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "GalleryData", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/AppBundle:AppBundle", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/InstantPageUI:InstantPageUI", - "//submodules/GalleryUI:GalleryUI", - "//submodules/PeerAvatarGalleryUI:PeerAvatarGalleryUI", - "//submodules/MediaResources:MediaResources", - "//submodules/WebsiteType:WebsiteType", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/QuickLook.framework", - "$SDKROOT/System/Library/Frameworks/SafariServices.framework", - ], -) diff --git a/submodules/GalleryUI/BUCK b/submodules/GalleryUI/BUCK deleted file mode 100644 index 7b4130c6ab..0000000000 --- a/submodules/GalleryUI/BUCK +++ /dev/null @@ -1,36 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "GalleryUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TextFormat:TextFormat", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramUniversalVideoContent:TelegramUniversalVideoContent", - "//submodules/WebsiteType:WebsiteType", - "//submodules/ScreenCaptureDetection:ScreenCaptureDetection", - "//submodules/OpenInExternalAppUI:OpenInExternalAppUI", - "//submodules/ShareController:ShareController", - "//submodules/SwipeToDismissGesture:SwipeToDismissGesture", - "//submodules/CheckNode:CheckNode", - "//submodules/AppBundle:AppBundle", - "//submodules/StickerPackPreviewUI:StickerPackPreviewUI", - "//submodules/OverlayStatusController:OverlayStatusController", - "//submodules/PresentationDataUtils:PresentationDataUtils", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/QuickLook.framework", - "$SDKROOT/System/Library/Frameworks/SafariServices.framework", - ], -) diff --git a/submodules/GameUI/BUCK b/submodules/GameUI/BUCK deleted file mode 100644 index 4c37fd8b55..0000000000 --- a/submodules/GameUI/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "GameUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/ShareController:ShareController", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/WebKit.framework", - ], -) diff --git a/submodules/Geocoding/BUCK b/submodules/Geocoding/BUCK deleted file mode 100644 index 3c03b57353..0000000000 --- a/submodules/Geocoding/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "Geocoding", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/CoreLocation.framework", - ], -) diff --git a/submodules/GlassButtonNode/BUCK b/submodules/GlassButtonNode/BUCK deleted file mode 100644 index 4127cf308e..0000000000 --- a/submodules/GlassButtonNode/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "GlassButtonNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/GraphCore/BUCK b/submodules/GraphCore/BUCK deleted file mode 100644 index a43e82f354..0000000000 --- a/submodules/GraphCore/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "GraphCore", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/GraphUI/BUCK b/submodules/GraphUI/BUCK deleted file mode 100644 index f395853a92..0000000000 --- a/submodules/GraphUI/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "GraphUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/AppBundle:AppBundle", - "//submodules/GraphCore:GraphCore", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/GridMessageSelectionNode/BUCK b/submodules/GridMessageSelectionNode/BUCK deleted file mode 100644 index 47bdff99c9..0000000000 --- a/submodules/GridMessageSelectionNode/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "GridMessageSelectionNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/CheckNode:CheckNode", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/HashtagSearchUI/BUCK b/submodules/HashtagSearchUI/BUCK deleted file mode 100644 index 430c1f9319..0000000000 --- a/submodules/HashtagSearchUI/BUCK +++ /dev/null @@ -1,26 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "HashtagSearchUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramBaseController:TelegramBaseController", - "//submodules/ChatListUI:ChatListUI", - "//submodules/SegmentedControlNode:SegmentedControlNode", - "//submodules/ListMessageItem:ListMessageItem", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/HexColor/BUCK b/submodules/HexColor/BUCK deleted file mode 100644 index 2909a5aba5..0000000000 --- a/submodules/HexColor/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "HexColor", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TextFormat:TextFormat", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/HorizontalPeerItem/BUCK b/submodules/HorizontalPeerItem/BUCK deleted file mode 100644 index 20a7708257..0000000000 --- a/submodules/HorizontalPeerItem/BUCK +++ /dev/null @@ -1,26 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "HorizontalPeerItem", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/SelectablePeerNode:SelectablePeerNode", - "//submodules/PeerOnlineMarkerNode:PeerOnlineMarkerNode", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/ContextUI:ContextUI", - "//submodules/AccountContext:AccountContext", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ImageBlur/BUCK b/submodules/ImageBlur/BUCK deleted file mode 100644 index 092d53065b..0000000000 --- a/submodules/ImageBlur/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ImageBlur", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/FastBlur:FastBlur", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/Accelerate.framework", - ], -) diff --git a/submodules/ImageCompression/BUCK b/submodules/ImageCompression/BUCK deleted file mode 100644 index 49136e92c4..0000000000 --- a/submodules/ImageCompression/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ImageCompression", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/MozjpegBinding:MozjpegBinding", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/AVFoundation.framework", - ], -) diff --git a/submodules/ImageTransparency/BUCK b/submodules/ImageTransparency/BUCK deleted file mode 100644 index 28d47290df..0000000000 --- a/submodules/ImageTransparency/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ImageTransparency", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/Accelerate.framework", - ], -) diff --git a/submodules/InstantPageCache/BUCK b/submodules/InstantPageCache/BUCK deleted file mode 100644 index 18ecb10b55..0000000000 --- a/submodules/InstantPageCache/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "InstantPageCache", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/PersistentStringHash:PersistentStringHash", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/InstantPageUI/BUCK b/submodules/InstantPageUI/BUCK deleted file mode 100644 index 52ef2dc662..0000000000 --- a/submodules/InstantPageUI/BUCK +++ /dev/null @@ -1,29 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "InstantPageUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/GalleryUI:GalleryUI", - "//submodules/MusicAlbumArtResources:MusicAlbumArtResources", - "//submodules/LiveLocationPositionNode:LiveLocationPositionNode", - "//submodules/MosaicLayout:MosaicLayout", - "//submodules/LocationUI:LocationUI", - "//submodules/AppBundle:AppBundle", - "//submodules/LocationResources:LocationResources", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ItemListAddressItem/BUCK b/submodules/ItemListAddressItem/BUCK deleted file mode 100644 index ec8a651a03..0000000000 --- a/submodules/ItemListAddressItem/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ItemListAddressItem", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/ItemListUI:ItemListUI", - "//submodules/AccountContext:AccountContext", - "//submodules/TextFormat:TextFormat", - "//submodules/AppBundle:AppBundle", - "//submodules/PresentationDataUtils:PresentationDataUtils", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ItemListAvatarAndNameInfoItem/BUCK b/submodules/ItemListAvatarAndNameInfoItem/BUCK deleted file mode 100644 index 6dadb44c97..0000000000 --- a/submodules/ItemListAvatarAndNameInfoItem/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ItemListAvatarAndNameInfoItem", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/PeerPresenceStatusManager:PeerPresenceStatusManager", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/AvatarNode:AvatarNode", - "//submodules/ActivityIndicator:ActivityIndicator", - "//submodules/ItemListUI:ItemListUI", - "//submodules/AppBundle:AppBundle", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/PhoneNumberFormat:PhoneNumberFormat", - "//submodules/AccountContext:AccountContext", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ItemListPeerActionItem/BUCK b/submodules/ItemListPeerActionItem/BUCK deleted file mode 100644 index 604dc5c10a..0000000000 --- a/submodules/ItemListPeerActionItem/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ItemListPeerActionItem", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/ItemListUI:ItemListUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ItemListPeerItem/BUCK b/submodules/ItemListPeerItem/BUCK deleted file mode 100644 index ef054e0bec..0000000000 --- a/submodules/ItemListPeerItem/BUCK +++ /dev/null @@ -1,29 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ItemListPeerItem", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AvatarNode:AvatarNode", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/PeerPresenceStatusManager:PeerPresenceStatusManager", - "//submodules/ItemListUI:ItemListUI", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/ContextUI:ContextUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/AccountContext:AccountContext", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ItemListStickerPackItem/BUCK b/submodules/ItemListStickerPackItem/BUCK deleted file mode 100644 index 75bb09d26c..0000000000 --- a/submodules/ItemListStickerPackItem/BUCK +++ /dev/null @@ -1,26 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ItemListStickerPackItem", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/ItemListUI:ItemListUI", - "//submodules/StickerResources:StickerResources", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/TelegramAnimatedStickerNode:TelegramAnimatedStickerNode", - "//submodules/PresentationDataUtils:PresentationDataUtils", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ItemListStickerPackItem/Sources/ItemListStickerPackItem.swift b/submodules/ItemListStickerPackItem/Sources/ItemListStickerPackItem.swift index beb238b11d..15b371251d 100644 --- a/submodules/ItemListStickerPackItem/Sources/ItemListStickerPackItem.swift +++ b/submodules/ItemListStickerPackItem/Sources/ItemListStickerPackItem.swift @@ -671,7 +671,7 @@ class ItemListStickerPackItemNode: ItemListRevealOptionsItemNode { if let placeholderNode = strongSelf.placeholderNode { placeholderNode.frame = imageFrame - placeholderNode.update(backgroundColor: nil, foregroundColor: item.presentationData.theme.list.disclosureArrowColor.blitOver(item.presentationData.theme.list.itemBlocksBackgroundColor, alpha: 0.55), shimmeringColor: item.presentationData.theme.list.itemBlocksBackgroundColor.withAlphaComponent(0.4), data: item.packInfo.immediateThumbnailData, size: imageFrame.size, small: true) + placeholderNode.update(backgroundColor: nil, foregroundColor: item.presentationData.theme.list.disclosureArrowColor.blitOver(item.presentationData.theme.list.itemBlocksBackgroundColor, alpha: 0.55), shimmeringColor: item.presentationData.theme.list.itemBlocksBackgroundColor.withAlphaComponent(0.4), data: item.packInfo.immediateThumbnailData, size: imageFrame.size, imageSize: CGSize(width: 100.0, height: 100.0)) } } diff --git a/submodules/ItemListUI/BUCK b/submodules/ItemListUI/BUCK deleted file mode 100644 index 30e7128bb3..0000000000 --- a/submodules/ItemListUI/BUCK +++ /dev/null @@ -1,29 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ItemListUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/MergeLists:MergeLists", - "//submodules/TextFormat:TextFormat", - "//submodules/Markdown:Markdown", - "//submodules/ProgressNavigationButtonNode:ProgressNavigationButtonNode", - "//submodules/SwitchNode:SwitchNode", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/TelegramAnimatedStickerNode:TelegramAnimatedStickerNode", - "//submodules/CheckNode:CheckNode", - "//submodules/SegmentedControlNode:SegmentedControlNode", - "//submodules/AccountContext:AccountContext", - "//submodules/AnimationUI:AnimationUI", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ItemListVenueItem/BUCK b/submodules/ItemListVenueItem/BUCK deleted file mode 100644 index c7570bcf89..0000000000 --- a/submodules/ItemListVenueItem/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ItemListVenueItem", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/ItemListUI:ItemListUI", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/LocationResources:LocationResources", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/JoinLinkPreviewUI/BUCK b/submodules/JoinLinkPreviewUI/BUCK deleted file mode 100644 index 2871179be6..0000000000 --- a/submodules/JoinLinkPreviewUI/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "JoinLinkPreviewUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/AlertUI:AlertUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/ShareController:ShareController", - "//submodules/SelectablePeerNode:SelectablePeerNode", - "//submodules/PeerInfoUI:PeerInfoUI", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/LanguageLinkPreviewUI/BUCK b/submodules/LanguageLinkPreviewUI/BUCK deleted file mode 100644 index fae07dd0cc..0000000000 --- a/submodules/LanguageLinkPreviewUI/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LanguageLinkPreviewUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/TextFormat:TextFormat", - "//submodules/Markdown:Markdown", - "//submodules/ShareController:ShareController", - "//submodules/AlertUI:AlertUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/LanguageSuggestionUI/BUCK b/submodules/LanguageSuggestionUI/BUCK deleted file mode 100644 index 2e76df58b8..0000000000 --- a/submodules/LanguageSuggestionUI/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LanguageSuggestionUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/ActivityIndicator:ActivityIndicator", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/LegacyComponents/BUCK b/submodules/LegacyComponents/BUCK deleted file mode 100644 index 8e1dbc2173..0000000000 --- a/submodules/LegacyComponents/BUCK +++ /dev/null @@ -1,44 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -apple_resource( - name = "LegacyComponentsResources", - dirs = [ - "Resources/LegacyComponentsResources.bundle", - ], - visibility = ["PUBLIC"], -) - -apple_asset_catalog( - name = 'LegacyComponentsAssets', - dirs = [ - "LegacyImages.xcassets", - ], - visibility = ["PUBLIC"], -) - -static_library( - name = "LegacyComponents", - srcs = glob([ - "Sources/*.m", - "Sources/*.mm", - "Sources/*.c", - "Sources/*.cpp", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - "//submodules/SSignalKit/SSignalKit:SSignalKit", - "//submodules/AppBundle:AppBundle", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], - weak_frameworks = [ - "Vision", - ], -) diff --git a/submodules/LegacyDataImport/BUCK b/submodules/LegacyDataImport/BUCK deleted file mode 100644 index 3ca8359f67..0000000000 --- a/submodules/LegacyDataImport/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LegacyDataImport", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/TelegramNotices:TelegramNotices", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/RadialStatusNode:RadialStatusNode", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/LegacyDataImport/Impl:LegacyDataImportImpl", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/LegacyDataImport/Impl/BUCK b/submodules/LegacyDataImport/Impl/BUCK deleted file mode 100644 index 4ec9c8c66a..0000000000 --- a/submodules/LegacyDataImport/Impl/BUCK +++ /dev/null @@ -1,28 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LegacyDataImportImpl", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/TelegramNotices:TelegramNotices", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/RadialStatusNode:RadialStatusNode", - "//submodules/LegacyComponents:LegacyComponents", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/LegacyMediaPickerUI/BUCK b/submodules/LegacyMediaPickerUI/BUCK deleted file mode 100644 index e1d07d37f2..0000000000 --- a/submodules/LegacyMediaPickerUI/BUCK +++ /dev/null @@ -1,32 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LegacyMediaPickerUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/LegacyUI:LegacyUI", - "//submodules/MimeTypes:MimeTypes", - "//submodules/LocalMediaResources:LocalMediaResources", - "//submodules/SearchPeerMembers:SearchPeerMembers", - "//submodules/SaveToCameraRoll:SaveToCameraRoll", - "//submodules/LegacyMediaPickerUI/LegacyImageProcessors:LegacyImageProcessors", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/TelegramAnimatedStickerNode:TelegramAnimatedStickerNode", - "//submodules/StickerResources:StickerResources", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/LegacyMediaPickerUI/LegacyImageProcessors/BUCK b/submodules/LegacyMediaPickerUI/LegacyImageProcessors/BUCK deleted file mode 100644 index ffaba87aaf..0000000000 --- a/submodules/LegacyMediaPickerUI/LegacyImageProcessors/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LegacyImageProcessors", - srcs = glob([ - "Sources/**/*.m", - ]), - headers = glob([ - "Sources/**/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - "//submodules/LegacyComponents:LegacyComponents", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/LegacyUI/BUCK b/submodules/LegacyUI/BUCK deleted file mode 100644 index 9ad361eab1..0000000000 --- a/submodules/LegacyUI/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LegacyUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramAudio:TelegramAudio", - "//submodules/DeviceAccess:DeviceAccess", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/StickerResources:StickerResources", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/LightweightAccountData/BUCK b/submodules/LightweightAccountData/BUCK deleted file mode 100644 index d74ce3fa82..0000000000 --- a/submodules/LightweightAccountData/BUCK +++ /dev/null @@ -1,11 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LightweightAccountData", - srcs = glob([ - "Sources/**/*.swift", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/ListMessageItem/BUCK b/submodules/ListMessageItem/BUCK deleted file mode 100644 index 64f9dd50e7..0000000000 --- a/submodules/ListMessageItem/BUCK +++ /dev/null @@ -1,36 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ListMessageItem", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/ItemListUI:ItemListUI", - "//submodules/AccountContext:AccountContext", - "//submodules/TextFormat:TextFormat", - "//submodules/AppBundle:AppBundle", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/ListSectionHeaderNode:ListSectionHeaderNode", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/UrlHandling:UrlHandling", - "//submodules/UrlWhitelist:UrlWhitelist", - "//submodules/WebsiteType:WebsiteType", - "//submodules/PhotoResources:PhotoResources", - "//submodules/RadialStatusNode:RadialStatusNode", - "//submodules/SemanticStatusNode:SemanticStatusNode", - "//submodules/MusicAlbumArtResources:MusicAlbumArtResources", - "//submodules/MediaPlayer:UniversalMediaPlayer", - "//submodules/ContextUI:ContextUI", - "//submodules/FileMediaResourceStatus:FileMediaResourceStatus", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ListSectionHeaderNode/BUCK b/submodules/ListSectionHeaderNode/BUCK deleted file mode 100644 index 25fbe0526c..0000000000 --- a/submodules/ListSectionHeaderNode/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ListSectionHeaderNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/LiveLocationManager/BUCK b/submodules/LiveLocationManager/BUCK deleted file mode 100644 index ac29a1feee..0000000000 --- a/submodules/LiveLocationManager/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LiveLocationManager", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/DeviceLocationManager:DeviceLocationManager", - "//submodules/AccountContext:AccountContext", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/CoreLocation.framework", - ], -) diff --git a/submodules/LiveLocationPositionNode/BUCK b/submodules/LiveLocationPositionNode/BUCK deleted file mode 100644 index f3bb9e3c8b..0000000000 --- a/submodules/LiveLocationPositionNode/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LiveLocationPositionNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AvatarNode:AvatarNode", - "//submodules/AppBundle:AppBundle", - "//submodules/LocationResources:LocationResources", - "//submodules/AccountContext:AccountContext", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/LiveLocationTimerNode/BUCK b/submodules/LiveLocationTimerNode/BUCK deleted file mode 100644 index 90f16ad856..0000000000 --- a/submodules/LiveLocationTimerNode/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LiveLocationTimerNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/LocalAuth/BUCK b/submodules/LocalAuth/BUCK deleted file mode 100644 index 7d9d8d639b..0000000000 --- a/submodules/LocalAuth/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LocalAuth", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/LocalAuthentication.framework", - ], -) diff --git a/submodules/LocalMediaResources/BUCK b/submodules/LocalMediaResources/BUCK deleted file mode 100644 index 12b32376f0..0000000000 --- a/submodules/LocalMediaResources/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LocalMediaResources", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/ImageCompression:ImageCompression", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], - weak_frameworks = [ - "Photos", - ], -) diff --git a/submodules/LocalizedPeerData/BUCK b/submodules/LocalizedPeerData/BUCK deleted file mode 100644 index 150c58a399..0000000000 --- a/submodules/LocalizedPeerData/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LocalizedPeerData", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/PhoneNumberFormat:PhoneNumberFormat", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/LocationResources/BUCK b/submodules/LocationResources/BUCK deleted file mode 100644 index be15ac9649..0000000000 --- a/submodules/LocationResources/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LocationResources", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Display:Display#shared", - "//submodules/AppBundle:AppBundle", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/MapKit.framework", - ], -) diff --git a/submodules/LocationUI/BUCK b/submodules/LocationUI/BUCK deleted file mode 100644 index 3424f578b2..0000000000 --- a/submodules/LocationUI/BUCK +++ /dev/null @@ -1,49 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "LocationUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/ShareController:ShareController", - "//submodules/AccountContext:AccountContext", - "//submodules/OpenInExternalAppUI:OpenInExternalAppUI", - "//submodules/ItemListUI:ItemListUI", - "//submodules/LegacyUI:LegacyUI", - "//submodules/AppBundle:AppBundle", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/LocationResources:LocationResources", - "//submodules/ListSectionHeaderNode:ListSectionHeaderNode", - "//submodules/SegmentedControlNode:SegmentedControlNode", - "//submodules/Geocoding:Geocoding", - "//submodules/ItemListVenueItem:ItemListVenueItem", - "//submodules/MergeLists:MergeLists", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/SearchBarNode:SearchBarNode", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/DeviceAccess:DeviceAccess", - "//submodules/ChatListSearchItemHeader:ChatListSearchItemHeader", - "//submodules/PhoneNumberFormat:PhoneNumberFormat", - "//submodules/PersistentStringHash:PersistentStringHash", - "//submodules/SolidRoundedButtonNode:SolidRoundedButtonNode", - "//submodules/LiveLocationTimerNode:LiveLocationTimerNode", - "//submodules/TelegramNotices:TelegramNotices", - "//submodules/TooltipUI:TooltipUI", - "//submodules/UndoUI:UndoUI", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/CoreLocation.framework", - "$SDKROOT/System/Library/Frameworks/MapKit.framework", - ], -) diff --git a/submodules/ManagedAnimationNode/BUCK b/submodules/ManagedAnimationNode/BUCK deleted file mode 100644 index 932e9cbb9c..0000000000 --- a/submodules/ManagedAnimationNode/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ManagedAnimationNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Display:Display#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/GZip:GZip", - "//submodules/rlottie:RLottieBinding", - "//submodules/AppBundle:AppBundle", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/MapResourceToAvatarSizes/BUCK b/submodules/MapResourceToAvatarSizes/BUCK deleted file mode 100644 index 42e165bed4..0000000000 --- a/submodules/MapResourceToAvatarSizes/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "MapResourceToAvatarSizes", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/Markdown/BUCK b/submodules/Markdown/BUCK deleted file mode 100644 index 8b9ed246b4..0000000000 --- a/submodules/Markdown/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "Markdown", - srcs = glob([ - "Source/**/*.swift", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/MediaPlayer/BUCK b/submodules/MediaPlayer/BUCK deleted file mode 100644 index e041921605..0000000000 --- a/submodules/MediaPlayer/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "UniversalMediaPlayer", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramAudio:TelegramAudio", - "//submodules/FFMpegBinding:FFMpegBinding", - "//submodules/RingBuffer:RingBuffer", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/MediaResources/BUCK b/submodules/MediaResources/BUCK deleted file mode 100644 index 8635efccea..0000000000 --- a/submodules/MediaResources/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "MediaResources", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/MergeLists/BUCK b/submodules/MergeLists/BUCK deleted file mode 100644 index 813a560b49..0000000000 --- a/submodules/MergeLists/BUCK +++ /dev/null @@ -1,11 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "MergeLists", - srcs = glob([ - "Sources/**/*.swift", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/MessageReactionListUI/BUCK b/submodules/MessageReactionListUI/BUCK deleted file mode 100644 index 3543f9575f..0000000000 --- a/submodules/MessageReactionListUI/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "MessageReactionListUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/MergeLists:MergeLists", - "//submodules/ItemListPeerItem:ItemListPeerItem", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/MimeTypes/BUCK b/submodules/MimeTypes/BUCK deleted file mode 100644 index 50ea70b1fa..0000000000 --- a/submodules/MimeTypes/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "MimeTypes", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/MonotonicTime/BUCK b/submodules/MonotonicTime/BUCK deleted file mode 100644 index efe65d52c5..0000000000 --- a/submodules/MonotonicTime/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "MonotonicTime", - srcs = glob([ - "Sources/**/*.m", - ]), - headers = glob([ - "Sources/**/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/MosaicLayout/BUCK b/submodules/MosaicLayout/BUCK deleted file mode 100644 index e28de70b95..0000000000 --- a/submodules/MosaicLayout/BUCK +++ /dev/null @@ -1,12 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "MosaicLayout", - srcs = glob([ - "Sources/**/*.swift", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/MozjpegBinding/BUCK b/submodules/MozjpegBinding/BUCK deleted file mode 100644 index 64759fab2b..0000000000 --- a/submodules/MozjpegBinding/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "MozjpegBinding", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "Public/**/*.h", - ]), - deps = [ - "//third-party/mozjpeg:mozjpeg", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/MtProtoKit/BUCK b/submodules/MtProtoKit/BUCK deleted file mode 100644 index e7c782ef4e..0000000000 --- a/submodules/MtProtoKit/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library", "framework", "glob_map", "merge_maps") - -framework( - name = "MtProtoKit", - srcs = glob([ - "Sources/**/*.m", - ]), - headers = glob([ - "Sources/**/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - visibility = ["PUBLIC"], - deps = [ - "//submodules/EncryptionProvider:EncryptionProvider", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/Security.framework", - ], -) diff --git a/submodules/MurMurHash32/BUCK b/submodules/MurMurHash32/BUCK deleted file mode 100644 index 970767e33a..0000000000 --- a/submodules/MurMurHash32/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "MurMurHash32", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/MusicAlbumArtResources/BUCK b/submodules/MusicAlbumArtResources/BUCK deleted file mode 100644 index 2fd400400c..0000000000 --- a/submodules/MusicAlbumArtResources/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "MusicAlbumArtResources", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/UrlEscaping:UrlEscaping", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/NetworkLogging/BUCK b/submodules/NetworkLogging/BUCK deleted file mode 100644 index 4c1c68fe8b..0000000000 --- a/submodules/NetworkLogging/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "NetworkLogging", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - "//submodules/MtProtoKit:MtProtoKit#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/NotificationMuteSettingsUI/BUCK b/submodules/NotificationMuteSettingsUI/BUCK deleted file mode 100644 index bf51c73ceb..0000000000 --- a/submodules/NotificationMuteSettingsUI/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "NotificationMuteSettingsUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/NotificationSoundSelectionUI/BUCK b/submodules/NotificationSoundSelectionUI/BUCK deleted file mode 100644 index 74a73a3abd..0000000000 --- a/submodules/NotificationSoundSelectionUI/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "NotificationSoundSelectionUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/ItemListUI:ItemListUI", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/PresentationDataUtils:PresentationDataUtils", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/AVFoundation.framework", - ], -) diff --git a/submodules/NotificationsPresentationData/BUCK b/submodules/NotificationsPresentationData/BUCK deleted file mode 100644 index b58e009f65..0000000000 --- a/submodules/NotificationsPresentationData/BUCK +++ /dev/null @@ -1,11 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "NotificationsPresentationData", - srcs = glob([ - "Sources/**/*.swift", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/NumberPluralizationForm/BUCK b/submodules/NumberPluralizationForm/BUCK deleted file mode 100644 index 53a8e7cd9f..0000000000 --- a/submodules/NumberPluralizationForm/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "NumberPluralizationForm", - srcs = glob([ - "Sources/*.m", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/ObjCRuntimeUtils/BUCK b/submodules/ObjCRuntimeUtils/BUCK deleted file mode 100644 index 5e8f8d4084..0000000000 --- a/submodules/ObjCRuntimeUtils/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ObjCRuntimeUtils", - srcs = glob([ - "Source/ObjCRuntimeUtils/*.m", - ]), - exported_headers = glob([ - "Source/ObjCRuntimeUtils/*.h", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/OpenInExternalAppUI/BUCK b/submodules/OpenInExternalAppUI/BUCK deleted file mode 100644 index a1dc0b605c..0000000000 --- a/submodules/OpenInExternalAppUI/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "OpenInExternalAppUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/PhotoResources:PhotoResources", - "//submodules/UrlEscaping:UrlEscaping", - "//submodules/AppBundle:AppBundle", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/CoreLocation.framework", - "$SDKROOT/System/Library/Frameworks/MapKit.framework", - ], -) diff --git a/submodules/OpenSSLEncryptionProvider/BUCK b/submodules/OpenSSLEncryptionProvider/BUCK deleted file mode 100644 index 6c38b32dc0..0000000000 --- a/submodules/OpenSSLEncryptionProvider/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "OpenSSLEncryptionProvider", - srcs = glob([ - "Sources/**/*.m", - ]), - headers = glob([ - "Sources/**/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - "//submodules/EncryptionProvider:EncryptionProvider", - "//submodules/openssl:openssl", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/Opus/BUCK b/submodules/Opus/BUCK deleted file mode 100644 index 5d0591fb7f..0000000000 --- a/submodules/Opus/BUCK +++ /dev/null @@ -1,41 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -genrule( - name = "opus_lib_file", - visibility = [ - "//submodules/Opus:..." - ], - srcs = [ - "Sources/opus/lib/libopus.a", - ], - bash = "mkdir -p $OUT; cp $SRCS $OUT/", - out = "opus_lib_file", -) - -apple_library( - name = "opus_lib", - visibility = [ - "//submodules/Opus:..." - ], - header_namespace = "opus", - exported_headers = glob([ - "Sources/**/*.h", - ]), - exported_linker_flags = [ - "-lopus", - "-L$(location :opus_lib_file)", - ], -) - -static_library( - name = "opus", - srcs = glob([ - "Sources/**/*.swift", - ]), - exported_headers = glob([ - "Public/**/*.h", - ]), - deps = [ - ":opus_lib", - ], -) diff --git a/submodules/OpusBinding/BUCK b/submodules/OpusBinding/BUCK deleted file mode 100644 index 165c852e46..0000000000 --- a/submodules/OpusBinding/BUCK +++ /dev/null @@ -1,32 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "OpusBinding", - srcs = glob([ - "Sources/**/*.m", - "Sources/**/*.c", - ]), - headers = { - "ogg/ogg.h": "Sources/ogg/ogg.h", - "ogg/os_types.h": "Sources/ogg/os_types.h", - "OggOpusReader.h": "PublicHeaders/OpusBinding/OggOpusReader.h", - "TGDataItem.h": "PublicHeaders/OpusBinding/TGDataItem.h", - "TGOggOpusWriter.h": "PublicHeaders/OpusBinding/TGOggOpusWriter.h", - "opusenc/diag_range.h": "Sources/opusenc/diag_range.h", - "opusenc/opus_header.h": "Sources/opusenc/opus_header.h", - "opusenc/picture.h": "Sources/opusenc/picture.h", - "opusenc/wav_io.h": "Sources/opusenc/wav_io.h", - "opusfile/internal.h": "Sources/opusfile/internal.h", - "OpusBinding/opusfile.h": "Sources/opusfile/opusfile.h", - }, - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - "//submodules/Opus:opus", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/OverlayStatusController/BUCK b/submodules/OverlayStatusController/BUCK deleted file mode 100644 index 4345130a54..0000000000 --- a/submodules/OverlayStatusController/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -apple_resource( - name = "OverlayStatusControllerResources", - files = glob([ - "Resources/**/*", - ], exclude = ["Resources/**/.*"]), - visibility = ["PUBLIC"], -) - -static_library( - name = "OverlayStatusController", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Display:Display#shared", - "//submodules/OverlayStatusController/Impl:OverlayStatusControllerImpl", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/OverlayStatusController/Impl/BUCK b/submodules/OverlayStatusController/Impl/BUCK deleted file mode 100644 index a6b891f28b..0000000000 --- a/submodules/OverlayStatusController/Impl/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "OverlayStatusControllerImpl", - srcs = glob([ - "Sources/**/*.m", - ]), - exported_headers = glob([ - "Sources/**/*.h", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/PKCS/BUCK b/submodules/PKCS/BUCK deleted file mode 100644 index e30546631f..0000000000 --- a/submodules/PKCS/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PKCS", - srcs = glob([ - "Sources/**/*.m", - ]), - headers = glob([ - "Sources/**/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - "//submodules/openssl:openssl", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/PasscodeInputFieldNode/BUCK b/submodules/PasscodeInputFieldNode/BUCK deleted file mode 100644 index 980622a33b..0000000000 --- a/submodules/PasscodeInputFieldNode/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PasscodeInputFieldNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/PasscodeUI/BUCK b/submodules/PasscodeUI/BUCK deleted file mode 100644 index 4ef81d0bff..0000000000 --- a/submodules/PasscodeUI/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PasscodeUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/AccountContext:AccountContext", - "//submodules/LocalAuth:LocalAuth", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/ImageBlur:ImageBlur", - "//submodules/AppBundle:AppBundle", - "//submodules/PasscodeInputFieldNode:PasscodeInputFieldNode", - "//submodules/MonotonicTime:MonotonicTime", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/PassportUI/BUCK b/submodules/PassportUI/BUCK deleted file mode 100644 index a6d147e4f9..0000000000 --- a/submodules/PassportUI/BUCK +++ /dev/null @@ -1,34 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PassportUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/PhoneInputNode:PhoneInputNode", - "//submodules/CountrySelectionUI:CountrySelectionUI", - "//submodules/GalleryUI:GalleryUI", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/OverlayStatusController:OverlayStatusController", - "//submodules/LegacyUI:LegacyUI", - "//submodules/ImageCompression:ImageCompression", - "//submodules/DateSelectionUI:DateSelectionUI", - "//submodules/PasswordSetupUI:PasswordSetupUI", - "//submodules/AppBundle:AppBundle", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/Markdown:Markdown", - "//submodules/PhoneNumberFormat:PhoneNumberFormat", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/PasswordSetupUI/BUCK b/submodules/PasswordSetupUI/BUCK deleted file mode 100644 index d71e12400b..0000000000 --- a/submodules/PasswordSetupUI/BUCK +++ /dev/null @@ -1,51 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -apple_resource( - name = "PasswordSetupUIResources", - files = glob([ - "Resources/**/*", - ], exclude = ["Resources/**/.*"]), - visibility = ["PUBLIC"], -) - -apple_asset_catalog( - name = "PasswordSetupUIAssets", - dirs = [ - "PasswordSetupUIImages.xcassets", - ], - visibility = ["PUBLIC"], -) - -static_library( - name = "PasswordSetupUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/ProgressNavigationButtonNode:ProgressNavigationButtonNode", - "//submodules/ActivityIndicator:ActivityIndicator", - "//submodules/AlertUI:AlertUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/ItemListUI:ItemListUI", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/AppBundle:AppBundle", - "//submodules/SolidRoundedButtonNode:SolidRoundedButtonNode", - "//submodules/OverlayStatusController:OverlayStatusController", - "//submodules/rlottie:RLottieBinding", - "//submodules/ManagedAnimationNode:ManagedAnimationNode", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/CoreLocation.framework", - "$SDKROOT/System/Library/Frameworks/MapKit.framework", - ], -) diff --git a/submodules/Pdf/BUCK b/submodules/Pdf/BUCK deleted file mode 100644 index ee8b2ebc72..0000000000 --- a/submodules/Pdf/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "Pdf", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/PeerAvatarGalleryUI/BUCK b/submodules/PeerAvatarGalleryUI/BUCK deleted file mode 100644 index e0a9dd6fcb..0000000000 --- a/submodules/PeerAvatarGalleryUI/BUCK +++ /dev/null @@ -1,36 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PeerAvatarGalleryUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/GalleryUI:GalleryUI", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/PhotoResources:PhotoResources", - "//submodules/RadialStatusNode:RadialStatusNode", - "//submodules/ShareController:ShareController", - "//submodules/AppBundle:AppBundle", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/LegacyMediaPickerUI:LegacyMediaPickerUI", - "//submodules/SaveToCameraRoll:SaveToCameraRoll", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/QuickLook.framework", - ], - weak_frameworks = [ - "Photos", - ], -) diff --git a/submodules/PeerInfoUI/BUCK b/submodules/PeerInfoUI/BUCK deleted file mode 100644 index 1372054787..0000000000 --- a/submodules/PeerInfoUI/BUCK +++ /dev/null @@ -1,77 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PeerInfoUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/ItemListUI:ItemListUI", - "//submodules/AlertUI:AlertUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/ItemListAvatarAndNameInfoItem:ItemListAvatarAndNameInfoItem", - "//submodules/UndoUI:UndoUI", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/TemporaryCachedPeerDataManager:TemporaryCachedPeerDataManager", - "//submodules/ItemListPeerItem:ItemListPeerItem", - "//submodules/ItemListPeerActionItem:ItemListPeerActionItem", - "//submodules/OverlayStatusController:OverlayStatusController", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/SearchUI:SearchUI", - "//submodules/MergeLists:MergeLists", - "//submodules/TextFormat:TextFormat", - "//submodules/LegacyUI:LegacyUI", - "//submodules/GalleryUI:GalleryUI", - "//submodules/ShareController:ShareController", - "//submodules/WebSearchUI:WebSearchUI", - "//submodules/SearchBarNode:SearchBarNode", - "//submodules/ContactsPeerItem:ContactsPeerItem", - "//submodules/PasswordSetupUI:PasswordSetupUI", - "//submodules/ActivityIndicator:ActivityIndicator", - "//submodules/TelegramPermissionsUI:TelegramPermissionsUI", - "//submodules/ProgressNavigationButtonNode:ProgressNavigationButtonNode", - "//submodules/TelegramNotices:TelegramNotices", - "//submodules/PhotoResources:PhotoResources", - "//submodules/MediaResources:MediaResources", - "//submodules/LocationResources:LocationResources", - "//submodules/Geocoding:Geocoding", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/LocationUI:LocationUI", - "//submodules/StickerResources:StickerResources", - "//submodules/StickerPackPreviewUI:StickerPackPreviewUI", - "//submodules/PeerAvatarGalleryUI:PeerAvatarGalleryUI", - "//submodules/Emoji:Emoji", - "//submodules/ItemListStickerPackItem:ItemListStickerPackItem", - "//submodules/NotificationMuteSettingsUI:NotificationMuteSettingsUI", - "//submodules/SinglePhoneInputNode:SinglePhoneInputNode", - "//submodules/MapResourceToAvatarSizes:MapResourceToAvatarSizes", - "//submodules/NotificationSoundSelectionUI:NotificationSoundSelectionUI", - "//submodules/EncryptionKeyVisualization:EncryptionKeyVisualization", - "//submodules/ItemListAddressItem:ItemListAddressItem", - "//submodules/ContactListUI:ContactListUI", - "//submodules/ContextUI:ContextUI", - "//submodules/AppBundle:AppBundle", - "//submodules/Markdown:Markdown", - "//submodules/PhoneNumberFormat:PhoneNumberFormat", - "//submodules/TelegramIntents:TelegramIntents", - "//submodules/SolidRoundedButtonNode:SolidRoundedButtonNode", - "//submodules/ChatListSearchItemHeader:ChatListSearchItemHeader", - "//submodules/StatisticsUI:StatisticsUI", - "//submodules/ChatListFilterSettingsHeaderItem:ChatListFilterSettingsHeaderItem", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/MessageUI.framework", - "$SDKROOT/System/Library/Frameworks/WebKit.framework", - "$SDKROOT/System/Library/Frameworks/SafariServices.framework", - ], -) diff --git a/submodules/PeerOnlineMarkerNode/BUCK b/submodules/PeerOnlineMarkerNode/BUCK deleted file mode 100644 index b66a884732..0000000000 --- a/submodules/PeerOnlineMarkerNode/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PeerOnlineMarkerNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/PeerPresenceStatusManager/BUCK b/submodules/PeerPresenceStatusManager/BUCK deleted file mode 100644 index 9c0b44b7ea..0000000000 --- a/submodules/PeerPresenceStatusManager/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PeerPresenceStatusManager", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/PeersNearbyIconNode/BUCK b/submodules/PeersNearbyIconNode/BUCK deleted file mode 100644 index fc85af9a70..0000000000 --- a/submodules/PeersNearbyIconNode/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PeersNearbyIconNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/LegacyComponents:LegacyComponents", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/PeersNearbyUI/BUCK b/submodules/PeersNearbyUI/BUCK deleted file mode 100644 index b8e216e8a7..0000000000 --- a/submodules/PeersNearbyUI/BUCK +++ /dev/null @@ -1,38 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PeersNearbyUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/ItemListUI:ItemListUI", - "//submodules/OverlayStatusController:OverlayStatusController", - "//submodules/DeviceLocationManager:DeviceLocationManager", - "//submodules/AlertUI:AlertUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/ItemListPeerItem:ItemListPeerItem", - "//submodules/TelegramPermissionsUI:TelegramPermissionsUI", - "//submodules/ItemListPeerActionItem:ItemListPeerActionItem", - "//submodules/PeersNearbyIconNode:PeersNearbyIconNode", - "//submodules/Geocoding:Geocoding", - "//submodules/AppBundle:AppBundle", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/TelegramNotices:TelegramNotices", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/MapKit.framework", - ], -) diff --git a/submodules/PersistentStringHash/BUCK b/submodules/PersistentStringHash/BUCK deleted file mode 100644 index 1774e12b5b..0000000000 --- a/submodules/PersistentStringHash/BUCK +++ /dev/null @@ -1,11 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PersistentStringHash", - srcs = glob([ - "Sources/**/*.swift", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/PhoneInputNode/BUCK b/submodules/PhoneInputNode/BUCK deleted file mode 100644 index 0f44d274af..0000000000 --- a/submodules/PhoneInputNode/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PhoneInputNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/PhoneNumberFormat:PhoneNumberFormat", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/PhoneNumberFormat/BUCK b/submodules/PhoneNumberFormat/BUCK deleted file mode 100644 index 29b61419da..0000000000 --- a/submodules/PhoneNumberFormat/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PhoneNumberFormat", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/libphonenumber:libphonenumber", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/PhotoResources/BUCK b/submodules/PhotoResources/BUCK deleted file mode 100644 index 5cf1d06502..0000000000 --- a/submodules/PhotoResources/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PhotoResources", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Display:Display#shared", - "//submodules/ImageTransparency:ImageTransparency", - "//submodules/TinyThumbnail:TinyThumbnail", - "//submodules/ImageBlur:ImageBlur", - "//submodules/Tuples:Tuples", - "//submodules/AccountContext:AccountContext", - "//submodules/MediaResources:MediaResources", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/WebPBinding:WebPBinding", - "//submodules/AppBundle:AppBundle", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/ImageIO.framework", - "$SDKROOT/System/Library/Frameworks/AVFoundation.framework", - ], -) diff --git a/submodules/PlatformRestrictionMatching/BUCK b/submodules/PlatformRestrictionMatching/BUCK deleted file mode 100644 index 61d8d39123..0000000000 --- a/submodules/PlatformRestrictionMatching/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PlatformRestrictionMatching", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/Postbox/BUCK b/submodules/Postbox/BUCK deleted file mode 100644 index cdfea7881a..0000000000 --- a/submodules/Postbox/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "framework") - -framework( - name = "Postbox", - srcs = glob([ - "Sources/*.swift", - ]), - deps = [ - "//submodules/Crc32:Crc32", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/sqlcipher:sqlcipher", - "//submodules/MurMurHash32:MurMurHash32", - "//submodules/StringTransliteration:StringTransliteration", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/Security.framework", - ], -) diff --git a/submodules/PresentationDataUtils/BUCK b/submodules/PresentationDataUtils/BUCK deleted file mode 100644 index 84fa4c2fdc..0000000000 --- a/submodules/PresentationDataUtils/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "PresentationDataUtils", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Display:Display#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AlertUI:AlertUI", - "//submodules/ItemListUI:ItemListUI", - "//submodules/SolidRoundedButtonNode:SolidRoundedButtonNode", - "//submodules/OverlayStatusController:OverlayStatusController", - "//submodules/UrlWhitelist:UrlWhitelist", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ProgressNavigationButtonNode/BUCK b/submodules/ProgressNavigationButtonNode/BUCK deleted file mode 100644 index d4d1b91f29..0000000000 --- a/submodules/ProgressNavigationButtonNode/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ProgressNavigationButtonNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/ActivityIndicator:ActivityIndicator", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/QrCode/BUCK b/submodules/QrCode/BUCK deleted file mode 100644 index 1661dd7beb..0000000000 --- a/submodules/QrCode/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "QrCode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/CoreImage.framework", - ], -) diff --git a/submodules/RMIntro/BUCK b/submodules/RMIntro/BUCK deleted file mode 100644 index b69acbdcdb..0000000000 --- a/submodules/RMIntro/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "RMIntro", - srcs = glob([ - "Sources/**/*.m", - "Sources/**/*.c", - ]), - headers = glob([ - "Sources/**/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - "//submodules/LegacyComponents:LegacyComponents", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/RadialStatusNode/BUCK b/submodules/RadialStatusNode/BUCK deleted file mode 100644 index c16bac1717..0000000000 --- a/submodules/RadialStatusNode/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "RadialStatusNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Display:Display#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/LegacyComponents:LegacyComponents", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/RaiseToListen/BUCK b/submodules/RaiseToListen/BUCK deleted file mode 100644 index ae88e727e0..0000000000 --- a/submodules/RaiseToListen/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "RaiseToListen", - srcs = glob([ - "Sources/*.swift", - ]), - deps = [ - "//submodules/RaiseToListen/Impl:RaiseToListenImpl", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/RaiseToListen/Impl/BUCK b/submodules/RaiseToListen/Impl/BUCK deleted file mode 100644 index 93e01caeeb..0000000000 --- a/submodules/RaiseToListen/Impl/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "RaiseToListenImpl", - srcs = glob([ - "Sources/**/*.m", - ]), - headers = glob([ - "Sources/**/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - "//submodules/DeviceProximity:DeviceProximity", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/Reachability/BUCK b/submodules/Reachability/BUCK deleted file mode 100644 index 341dbb890f..0000000000 --- a/submodules/Reachability/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "Reachability", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/SystemConfiguration.framework", - ], -) diff --git a/submodules/ReactionSelectionNode/BUCK b/submodules/ReactionSelectionNode/BUCK deleted file mode 100644 index 2ba94127f9..0000000000 --- a/submodules/ReactionSelectionNode/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ReactionSelectionNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/TelegramAnimatedStickerNode:TelegramAnimatedStickerNode", - "//submodules/TelegramPresentationData:TelegramPresentationData", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/RingBuffer/BUCK b/submodules/RingBuffer/BUCK deleted file mode 100644 index 8896626f86..0000000000 --- a/submodules/RingBuffer/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "RingBuffer", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/SSignalKit/SSignalKit/BUCK b/submodules/SSignalKit/SSignalKit/BUCK deleted file mode 100644 index 1fbeb1d9b4..0000000000 --- a/submodules/SSignalKit/SSignalKit/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "SSignalKit", - srcs = glob([ - "Source/SSignalKit/*.m", - ]), - exported_headers = glob([ - "Source/SSignalKit/*.h", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/SSignalKit/SwiftSignalKit/BUCK b/submodules/SSignalKit/SwiftSignalKit/BUCK deleted file mode 100644 index b6e6e39b8c..0000000000 --- a/submodules/SSignalKit/SwiftSignalKit/BUCK +++ /dev/null @@ -1,11 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "framework") - -framework( - name = "SwiftSignalKit", - srcs = glob([ - "Source/**/*.swift", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/SaveToCameraRoll/BUCK b/submodules/SaveToCameraRoll/BUCK deleted file mode 100644 index b75130a540..0000000000 --- a/submodules/SaveToCameraRoll/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "SaveToCameraRoll", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Display:Display#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/DeviceAccess:DeviceAccess", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/MobileCoreServices.framework", - ], - weak_frameworks = [ - "Photos", - ], -) diff --git a/submodules/ScreenCaptureDetection/BUCK b/submodules/ScreenCaptureDetection/BUCK deleted file mode 100644 index 4a993a81a1..0000000000 --- a/submodules/ScreenCaptureDetection/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ScreenCaptureDetection", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/SearchBarNode/BUCK b/submodules/SearchBarNode/BUCK deleted file mode 100644 index b84e9214e4..0000000000 --- a/submodules/SearchBarNode/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "SearchBarNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/ActivityIndicator:ActivityIndicator", - "//submodules/AppBundle:AppBundle", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/SearchPeerMembers/BUCK b/submodules/SearchPeerMembers/BUCK deleted file mode 100644 index 5c92914c2f..0000000000 --- a/submodules/SearchPeerMembers/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "SearchPeerMembers", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AccountContext:AccountContext", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/SearchUI/BUCK b/submodules/SearchUI/BUCK deleted file mode 100644 index ac67194edf..0000000000 --- a/submodules/SearchUI/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "SearchUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/SearchBarNode:SearchBarNode", - "//submodules/ChatListSearchItemNode:ChatListSearchItemNode", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/SegmentedControlNode/BUCK b/submodules/SegmentedControlNode/BUCK deleted file mode 100644 index f5b679832c..0000000000 --- a/submodules/SegmentedControlNode/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "SegmentedControlNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/SelectablePeerNode/BUCK b/submodules/SelectablePeerNode/BUCK deleted file mode 100644 index c8179d3371..0000000000 --- a/submodules/SelectablePeerNode/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "SelectablePeerNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/PeerOnlineMarkerNode:PeerOnlineMarkerNode", - "//submodules/AvatarNode:AvatarNode", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/ContextUI:ContextUI", - "//submodules/LocalizedPeerData:LocalizedPeerData", - "//submodules/AccountContext:AccountContext", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/SemanticStatusNode/BUCK b/submodules/SemanticStatusNode/BUCK deleted file mode 100644 index f2874d0b0a..0000000000 --- a/submodules/SemanticStatusNode/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "SemanticStatusNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Display:Display#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/LegacyComponents:LegacyComponents", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/SettingsUI/BUCK b/submodules/SettingsUI/BUCK deleted file mode 100644 index a60dc14f82..0000000000 --- a/submodules/SettingsUI/BUCK +++ /dev/null @@ -1,101 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "SettingsUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/MtProtoKit:MtProtoKit#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/ActivityIndicator:ActivityIndicator", - "//submodules/AlertUI:AlertUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/AvatarNode:AvatarNode", - "//submodules/CallListUI:CallListUI", - "//submodules/ChatListSearchItemNode:ChatListSearchItemNode", - "//submodules/ChatListSearchItemHeader:ChatListSearchItemHeader", - "//submodules/ChatListUI:ChatListUI", - "//submodules/ContactsPeerItem:ContactsPeerItem", - "//submodules/CountrySelectionUI:CountrySelectionUI", - "//submodules/DeviceAccess:DeviceAccess", - "//submodules/DeviceLocationManager:DeviceLocationManager", - "//submodules/GalleryUI:GalleryUI", - "//submodules/Geocoding:Geocoding", - "//submodules/ItemListUI:ItemListUI", - "//submodules/ItemListStickerPackItem:ItemListStickerPackItem", - "//submodules/ItemListPeerItem:ItemListPeerItem", - "//submodules/ItemListPeerActionItem:ItemListPeerActionItem", - "//submodules/ItemListAvatarAndNameInfoItem:ItemListAvatarAndNameInfoItem", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/LegacyUI:LegacyUI", - "//submodules/LegacyMediaPickerUI:LegacyMediaPickerUI", - "//submodules/ListSectionHeaderNode:ListSectionHeaderNode", - "//submodules/LocalMediaResources:LocalMediaResources", - "//submodules/LocalizedPeerData:LocalizedPeerData", - "//submodules/LocalAuth:LocalAuth", - "//submodules/MapResourceToAvatarSizes:MapResourceToAvatarSizes", - "//submodules/MediaResources:MediaResources", - "//submodules/MergeLists:MergeLists", - "//submodules/NotificationSoundSelectionUI:NotificationSoundSelectionUI", - "//submodules/OverlayStatusController:OverlayStatusController", - "//submodules/PasswordSetupUI:PasswordSetupUI", - "//submodules/PassportUI:PassportUI", - "//submodules/PasscodeUI:PasscodeUI", - "//submodules/PeerAvatarGalleryUI:PeerAvatarGalleryUI", - "//submodules/PhoneInputNode:PhoneInputNode", - "//submodules/PhotoResources:PhotoResources", - "//submodules/ProgressNavigationButtonNode:ProgressNavigationButtonNode", - "//submodules/RadialStatusNode:RadialStatusNode", - "//submodules/SearchBarNode:SearchBarNode", - "//submodules/SearchUI:SearchUI", - "//submodules/ShareController:ShareController", - "//submodules/StickerPackPreviewUI:StickerPackPreviewUI", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/TelegramNotices:TelegramNotices", - "//submodules/TelegramCallsUI:TelegramCallsUI", - "//submodules/TextFormat:TextFormat", - "//submodules/MediaPlayer:UniversalMediaPlayer", - "//submodules/UrlEscaping:UrlEscaping", - "//submodules/WebSearchUI:WebSearchUI", - "//submodules/UrlHandling:UrlHandling", - "//submodules/HexColor:HexColor", - "//submodules/QrCode:QrCode", - "//submodules/WallpaperResources:WallpaperResources", - "//submodules/AuthorizationUI:AuthorizationUI", - "//submodules/InstantPageUI:InstantPageUI", - "//submodules/CheckNode:CheckNode", - "//submodules/CounterContollerTitleView:CounterContollerTitleView", - "//submodules/GridMessageSelectionNode:GridMessageSelectionNode", - "//submodules/InstantPageCache:InstantPageCache", - "//submodules/AppBundle:AppBundle", - "//submodules/ContextUI:ContextUI", - #"//submodules/WalletUI:WalletUI", - "//submodules/Markdown:Markdown", - "//submodules/UndoUI:UndoUI", - "//submodules/DeleteChatPeerActionSheetItem:DeleteChatPeerActionSheetItem", - "//submodules/PhoneNumberFormat:PhoneNumberFormat", - "//submodules/OpenInExternalAppUI:OpenInExternalAppUI", - "//submodules/AccountUtils:AccountUtils", - "//submodules/AuthTransferUI:AuthTransferUI", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/MessageUI.framework", - "$SDKROOT/System/Library/Frameworks/LocalAuthentication.framework", - "$SDKROOT/System/Library/Frameworks/QuickLook.framework", - "$SDKROOT/System/Library/Frameworks/CoreTelephony.framework", - ], - weak_frameworks = [ - "Photos", - ], -) diff --git a/submodules/ShareController/BUCK b/submodules/ShareController/BUCK deleted file mode 100644 index 64238e15fe..0000000000 --- a/submodules/ShareController/BUCK +++ /dev/null @@ -1,33 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ShareController", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/SaveToCameraRoll:SaveToCameraRoll", - "//submodules/StickerResources:StickerResources", - "//submodules/UrlEscaping:UrlEscaping", - "//submodules/LocalizedPeerData:LocalizedPeerData", - "//submodules/ActionSheetPeerItem:ActionSheetPeerItem", - "//submodules/ChatListSearchRecentPeersNode:ChatListSearchRecentPeersNode", - "//submodules/PeerPresenceStatusManager:PeerPresenceStatusManager", - "//submodules/SelectablePeerNode:SelectablePeerNode", - "//submodules/RadialStatusNode:RadialStatusNode", - "//submodules/ActivityIndicator:ActivityIndicator", - "//submodules/AppBundle:AppBundle", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/TelegramIntents:TelegramIntents", - "//submodules/AccountContext:AccountContext", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ShareItems/BUCK b/submodules/ShareItems/BUCK deleted file mode 100644 index 0787170e22..0000000000 --- a/submodules/ShareItems/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ShareItems", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/MtProtoKit:MtProtoKit#shared", - "//submodules/Display:Display#shared", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/LocalMediaResources:LocalMediaResources", - "//submodules/Pdf:Pdf", - "//submodules/AccountContext:AccountContext", - "//submodules/MimeTypes:MimeTypes", - "//submodules/PhoneNumberFormat:PhoneNumberFormat", - "//submodules/ShareItems/Impl:ShareItemsImpl", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ShareItems/Impl/BUCK b/submodules/ShareItems/Impl/BUCK deleted file mode 100644 index 54d762b8e8..0000000000 --- a/submodules/ShareItems/Impl/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ShareItemsImpl", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - "//submodules/MtProtoKit:MtProtoKit#shared", - "//submodules/MimeTypes:MimeTypes", - "//submodules/PhoneNumberFormat:PhoneNumberFormat", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/MobileCoreServices.framework", - "$SDKROOT/System/Library/Frameworks/AddressBook.framework", - "$SDKROOT/System/Library/Frameworks/AVFoundation.framework", - "$SDKROOT/System/Library/Frameworks/PassKit.framework", - ], -) diff --git a/submodules/ShimmerEffect/BUCK b/submodules/ShimmerEffect/BUCK deleted file mode 100644 index 0b768d1ef4..0000000000 --- a/submodules/ShimmerEffect/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "ShimmerEffect", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/ShimmerEffect/Sources/StickerShimmerEffectNode.swift b/submodules/ShimmerEffect/Sources/StickerShimmerEffectNode.swift index 49f41c65b3..073c6e0073 100644 --- a/submodules/ShimmerEffect/Sources/StickerShimmerEffectNode.swift +++ b/submodules/ShimmerEffect/Sources/StickerShimmerEffectNode.swift @@ -168,7 +168,7 @@ public class StickerShimmerEffectNode: ASDisplayNode { self.effectNode.updateAbsoluteRect(rect, within: containerSize) } - public func update(backgroundColor: UIColor?, foregroundColor: UIColor, shimmeringColor: UIColor, data: Data?, size: CGSize, small: Bool = false) { + public func update(backgroundColor: UIColor?, foregroundColor: UIColor, shimmeringColor: UIColor, data: Data?, size: CGSize, imageSize: CGSize = CGSize(width: 512.0, height: 512.0)) { if data == nil { return } @@ -199,13 +199,13 @@ public class StickerShimmerEffectNode: ASDisplayNode { if let data = data { var path = decodeStickerThumbnailData(data) - if !path.hasPrefix("z") { + if !path.hasSuffix("z") { path = "\(path)z" } let reader = PathDataReader(input: path) let segments = reader.read() - let scale = size.width / (small ? 100.0 : 512.0) + let scale = max(size.width, size.height) / max(imageSize.width, imageSize.height) context.scaleBy(x: scale, y: scale) renderPath(segments, context: context) } else { diff --git a/submodules/SinglePhoneInputNode/BUCK b/submodules/SinglePhoneInputNode/BUCK deleted file mode 100644 index 6b4f664937..0000000000 --- a/submodules/SinglePhoneInputNode/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "SinglePhoneInputNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/PhoneNumberFormat:PhoneNumberFormat", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/SlotMachineAnimationNode/BUCK b/submodules/SlotMachineAnimationNode/BUCK deleted file mode 100644 index 12c1e43148..0000000000 --- a/submodules/SlotMachineAnimationNode/BUCK +++ /dev/null @@ -1,26 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "SlotMachineAnimationNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/StickerResources:StickerResources", - "//submodules/ManagedAnimationNode:ManagedAnimationNode", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/TelegramAnimatedStickerNode:TelegramAnimatedStickerNode", - "//submodules/AppBundle:AppBundle", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/SolidRoundedButtonNode/BUCK b/submodules/SolidRoundedButtonNode/BUCK deleted file mode 100644 index 3ef457d48d..0000000000 --- a/submodules/SolidRoundedButtonNode/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "SolidRoundedButtonNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/SpotlightSupport/BUCK b/submodules/SpotlightSupport/BUCK deleted file mode 100644 index abda309429..0000000000 --- a/submodules/SpotlightSupport/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "framework") - -framework( - name = "SpotlightSupport", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/CoreSpotlight.framework", - ], -) diff --git a/submodules/StatisticsUI/BUCK b/submodules/StatisticsUI/BUCK deleted file mode 100644 index 82d042bcb2..0000000000 --- a/submodules/StatisticsUI/BUCK +++ /dev/null @@ -1,35 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "StatisticsUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/AccountContext:AccountContext", - "//submodules/ItemListUI:ItemListUI", - "//submodules/AvatarNode:AvatarNode", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/AlertUI:AlertUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/MergeLists:MergeLists", - "//submodules/PhotoResources:PhotoResources", - "//submodules/GraphCore:GraphCore", - "//submodules/GraphUI:GraphUI", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/ItemListPeerItem:ItemListPeerItem", - "//submodules/ItemListPeerActionItem:ItemListPeerActionItem", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/StickerPackPreviewUI/BUCK b/submodules/StickerPackPreviewUI/BUCK deleted file mode 100644 index b24e205b94..0000000000 --- a/submodules/StickerPackPreviewUI/BUCK +++ /dev/null @@ -1,34 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "StickerPackPreviewUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/ShareController:ShareController", - "//submodules/StickerResources:StickerResources", - "//submodules/AlertUI:AlertUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/TextFormat:TextFormat", - "//submodules/MergeLists:MergeLists", - "//submodules/ActivityIndicator:ActivityIndicator", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/TelegramAnimatedStickerNode:TelegramAnimatedStickerNode", - "//submodules/ArchivedStickerPacksNotice:ArchivedStickerPacksNotice", - "//submodules/ShimmerEffect:ShimmerEffect", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/StickerResources/BUCK b/submodules/StickerResources/BUCK deleted file mode 100644 index d832be586d..0000000000 --- a/submodules/StickerResources/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "StickerResources", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Display:Display#shared", - "//submodules/ImageBlur:ImageBlur", - "//submodules/Tuples:Tuples", - "//submodules/MediaResources:MediaResources", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/WebPBinding:WebPBinding", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/StringPluralization/BUCK b/submodules/StringPluralization/BUCK deleted file mode 100644 index 74014a41d7..0000000000 --- a/submodules/StringPluralization/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "StringPluralization", - srcs = glob([ - "Sources/**/*.swift", - "Sources/**/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "Sources/*.h", - ]), - deps = [ - "//submodules/AppBundle:AppBundle", - "//submodules/NumberPluralizationForm:NumberPluralizationForm", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/StringTransliteration/BUCK b/submodules/StringTransliteration/BUCK deleted file mode 100644 index a1ce2b1f75..0000000000 --- a/submodules/StringTransliteration/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "StringTransliteration", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/Stripe/BUCK b/submodules/Stripe/BUCK deleted file mode 100644 index d2fcfd3501..0000000000 --- a/submodules/Stripe/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "Stripe", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/Sunrise/BUCK b/submodules/Sunrise/BUCK deleted file mode 100644 index 9c9d4a0fce..0000000000 --- a/submodules/Sunrise/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "Sunrise", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/Svg/BUCK b/submodules/Svg/BUCK deleted file mode 100644 index a3a62ebc99..0000000000 --- a/submodules/Svg/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "Svg", - srcs = glob([ - "Sources/**/*.m", - "Sources/**/*.mm", - "Sources/**/*.c", - "Sources/**/*.cpp", - ]), - headers = glob([ - "Sources/**/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), -) diff --git a/submodules/SwipeToDismissGesture/BUCK b/submodules/SwipeToDismissGesture/BUCK deleted file mode 100644 index 301beb14e2..0000000000 --- a/submodules/SwipeToDismissGesture/BUCK +++ /dev/null @@ -1,12 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "SwipeToDismissGesture", - srcs = glob([ - "Sources/**/*.swift", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/SwitchNode/BUCK b/submodules/SwitchNode/BUCK deleted file mode 100644 index bf28484904..0000000000 --- a/submodules/SwitchNode/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "SwitchNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/LegacyComponents:LegacyComponents", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/SyncCore/BUCK b/submodules/SyncCore/BUCK deleted file mode 100644 index 7236134381..0000000000 --- a/submodules/SyncCore/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "framework") - -framework( - name = "SyncCore", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/TelegramAnimatedStickerNode/BUCK b/submodules/TelegramAnimatedStickerNode/BUCK deleted file mode 100644 index efb6000d45..0000000000 --- a/submodules/TelegramAnimatedStickerNode/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TelegramAnimatedStickerNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/StickerResources:StickerResources", - "//submodules/MediaResources:MediaResources", - "//submodules/Tuples:Tuples", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/rlottie:RLottieBinding", - "//submodules/YuvConversion:YuvConversion", - "//submodules/GZip:GZip", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/MobileCoreServices.framework", - ], -) diff --git a/submodules/TelegramApi/BUCK b/submodules/TelegramApi/BUCK deleted file mode 100644 index 31294125b4..0000000000 --- a/submodules/TelegramApi/BUCK +++ /dev/null @@ -1,13 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "framework") - -framework( - name = "TelegramApi", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/TelegramAudio/BUCK b/submodules/TelegramAudio/BUCK deleted file mode 100644 index cbe05806ce..0000000000 --- a/submodules/TelegramAudio/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TelegramAudio", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/TelegramBaseController/BUCK b/submodules/TelegramBaseController/BUCK deleted file mode 100644 index 330f4ac86a..0000000000 --- a/submodules/TelegramBaseController/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TelegramBaseController", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/AvatarNode:AvatarNode", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/LiveLocationTimerNode:LiveLocationTimerNode", - "//submodules/AccountContext:AccountContext", - "//submodules/OverlayStatusController:OverlayStatusController", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/Markdown:Markdown", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/TelegramCallsUI/BUCK b/submodules/TelegramCallsUI/BUCK deleted file mode 100644 index 618ee191c6..0000000000 --- a/submodules/TelegramCallsUI/BUCK +++ /dev/null @@ -1,31 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TelegramCallsUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/PhotoResources:PhotoResources", - "//submodules/TelegramNotices:TelegramNotices", - "//submodules/MediaPlayer:UniversalMediaPlayer", - "//submodules/DeviceAccess:DeviceAccess", - "//submodules/TelegramAudio:TelegramAudio", - "//submodules/TelegramVoip:TelegramVoip", - "//submodules/ItemListUI:ItemListUI", - "//submodules/OverlayStatusController:OverlayStatusController", - "//submodules/AppBundle:AppBundle", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/TelegramCallsUI/CallsEmoji:CallsEmoji", - "//submodules/SemanticStatusNode:SemanticStatusNode", - "//submodules/TooltipUI:TooltipUI", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/TelegramCallsUI/CallsEmoji/BUCK b/submodules/TelegramCallsUI/CallsEmoji/BUCK deleted file mode 100644 index 7ccbc5c193..0000000000 --- a/submodules/TelegramCallsUI/CallsEmoji/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "CallsEmoji", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/TelegramCore/BUCK b/submodules/TelegramCore/BUCK deleted file mode 100644 index c54f8b3bd5..0000000000 --- a/submodules/TelegramCore/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "framework") - -framework( - name = "TelegramCore", - srcs = glob([ - "Sources/*.swift", - ]), - deps = [ - "//submodules/TelegramApi:TelegramApi#shared", - "//submodules/MtProtoKit:MtProtoKit#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/CloudData:CloudData", - "//submodules/EncryptionProvider:EncryptionProvider", - "//submodules/CryptoUtils:CryptoUtils", - "//submodules/NetworkLogging:NetworkLogging", - "//submodules/Reachability:Reachability", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/TelegramIntents/BUCK b/submodules/TelegramIntents/BUCK deleted file mode 100644 index 0c6544dc69..0000000000 --- a/submodules/TelegramIntents/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TelegramIntents", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Display:Display#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AvatarNode:AvatarNode", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], - weak_frameworks = [ - "Intents", - ], -) diff --git a/submodules/TelegramNotices/BUCK b/submodules/TelegramNotices/BUCK deleted file mode 100644 index 7341e6b408..0000000000 --- a/submodules/TelegramNotices/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TelegramNotices", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Postbox:Postbox#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/TelegramPermissions:TelegramPermissions", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/TelegramPermissions/BUCK b/submodules/TelegramPermissions/BUCK deleted file mode 100644 index f7f575af60..0000000000 --- a/submodules/TelegramPermissions/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TelegramPermissions", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/DeviceAccess:DeviceAccess", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/TelegramPermissionsUI/BUCK b/submodules/TelegramPermissionsUI/BUCK deleted file mode 100644 index 291a9e9997..0000000000 --- a/submodules/TelegramPermissionsUI/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TelegramPermissionsUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/TextFormat:TextFormat", - "//submodules/Markdown:Markdown", - "//submodules/TelegramPermissions:TelegramPermissions", - "//submodules/DeviceAccess:DeviceAccess", - "//submodules/PeersNearbyIconNode:PeersNearbyIconNode", - "//submodules/SolidRoundedButtonNode:SolidRoundedButtonNode", - "//submodules/AppBundle:AppBundle", - "//submodules/PresentationDataUtils:PresentationDataUtils", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/TelegramPresentationData/BUCK b/submodules/TelegramPresentationData/BUCK deleted file mode 100644 index 9d32fb134e..0000000000 --- a/submodules/TelegramPresentationData/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TelegramPresentationData", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/Display:Display#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/MediaResources:MediaResources", - "//submodules/AppBundle:AppBundle", - "//submodules/StringPluralization:StringPluralization", - "//submodules/Sunrise:Sunrise", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/TelegramStringFormatting/BUCK b/submodules/TelegramStringFormatting/BUCK deleted file mode 100644 index 8d7de8961a..0000000000 --- a/submodules/TelegramStringFormatting/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TelegramStringFormatting", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/Display:Display#shared", - "//submodules/PlatformRestrictionMatching:PlatformRestrictionMatching", - "//submodules/LocalizedPeerData:LocalizedPeerData", - "//submodules/TextFormat:TextFormat", - "//submodules/Markdown:Markdown", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AppBundle:AppBundle", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/MapKit.framework", - ], -) diff --git a/submodules/TelegramUI/BUCK b/submodules/TelegramUI/BUCK deleted file mode 100644 index 8831168ba1..0000000000 --- a/submodules/TelegramUI/BUCK +++ /dev/null @@ -1,231 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "framework") - -apple_asset_catalog( - name = 'TelegramUIAssets', - dirs = [ - "Images.xcassets", - ], - visibility = ["PUBLIC"], -) - -apple_resource( - name = "TelegramUIResources", - files = glob([ - "Sounds/**/*", - "Resources/**/*", - ], exclude = ["Sounds/**/.*", "Resources/**/.*"]), - visibility = ["PUBLIC"], -) - -framework( - name = "TelegramUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/SSignalKit/SSignalKit:SSignalKit", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/MtProtoKit:MtProtoKit#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/TgVoip:TgVoip", - "//submodules/lottie-ios:Lottie", - "//submodules/FFMpegBinding:FFMpegBinding", - "//submodules/WebPBinding:WebPBinding", - "//submodules/RMIntro:RMIntro", - "//submodules/GZip:GZip", - "//submodules/TelegramCallsUI:TelegramCallsUI", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/MediaPlayer:UniversalMediaPlayer", - "//submodules/TelegramVoip:TelegramVoip", - "//submodules/DeviceAccess:DeviceAccess", - "//submodules/WatchCommon/Host:WatchCommon", - "//submodules/LightweightAccountData:LightweightAccountData", - "//submodules/BuildConfig:BuildConfig", - "//submodules/BuildConfigExtra:BuildConfigExtra", - "//submodules/rlottie:RLottieBinding", - "//submodules/TelegramUpdateUI:TelegramUpdateUI", - "//submodules/MergeLists:MergeLists", - "//submodules/ActivityIndicator:ActivityIndicator", - "//submodules/ProgressNavigationButtonNode:ProgressNavigationButtonNode", - "//submodules/ItemListUI:ItemListUI", - "//submodules/TelegramBaseController:TelegramBaseController", - "//submodules/DeviceLocationManager:DeviceLocationManager", - "//submodules/AvatarNode:AvatarNode", - "//submodules/OverlayStatusController:OverlayStatusController", - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/LiveLocationManager:LiveLocationManager", - "//submodules/LiveLocationTimerNode:LiveLocationTimerNode", - "//submodules/TemporaryCachedPeerDataManager:TemporaryCachedPeerDataManager", - "//submodules/ShareController:ShareController", - "//submodules/RadialStatusNode:RadialStatusNode", - "//submodules/PeerOnlineMarkerNode:PeerOnlineMarkerNode", - "//submodules/PeerPresenceStatusManager:PeerPresenceStatusManager", - "//submodules/ChatListSearchRecentPeersNode:ChatListSearchRecentPeersNode", - "//submodules/ImageBlur:ImageBlur", - "//submodules/ContextUI:ContextUI", - "//submodules/MediaResources:MediaResources", - "//submodules/TelegramAudio:TelegramAudio", - "//submodules/UrlEscaping:UrlEscaping", - "//submodules/Tuples:Tuples", - "//submodules/TextFormat:TextFormat", - "//submodules/SwitchNode:SwitchNode", - "//submodules/StickerResources:StickerResources", - "//submodules/SelectablePeerNode:SelectablePeerNode", - "//submodules/SaveToCameraRoll:SaveToCameraRoll", - "//submodules/LocalizedPeerData:LocalizedPeerData", - "//submodules/ListSectionHeaderNode:ListSectionHeaderNode", - "//submodules/HorizontalPeerItem:HorizontalPeerItem", - "//submodules/CheckNode:CheckNode", - "//submodules/AnimationUI:AnimationUI", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/TelegramAnimatedStickerNode:TelegramAnimatedStickerNode", - "//submodules/ActionSheetPeerItem:ActionSheetPeerItem", - "//submodules/AccountContext:AccountContext", - "//submodules/ComposePollUI:ComposePollUI", - "//submodules/AlertUI:AlertUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - "//submodules/TouchDownGesture:TouchDownGesture", - "//submodules/SwipeToDismissGesture:SwipeToDismissGesture", - "//submodules/DirectionalPanGesture:DirectionalPanGesture", - "//submodules/UndoUI:UndoUI", - "//submodules/PhotoResources:PhotoResources", - "//submodules/TinyThumbnail:TinyThumbnail", - "//submodules/ImageTransparency:ImageTransparency", - "//submodules/TelegramNotices:TelegramNotices", - "//submodules/TelegramPermissions:TelegramPermissions", - "//submodules/GameUI:GameUI", - "//submodules/WebUI:WebUI", - "//submodules/PassportUI:PassportUI", - "//submodules/PhoneInputNode:PhoneInputNode", - "//submodules/CountrySelectionUI:CountrySelectionUI", - "//submodules/SearchBarNode:SearchBarNode", - "//submodules/GalleryUI:GalleryUI", - "//submodules/TelegramUniversalVideoContent:TelegramUniversalVideoContent", - "//submodules/WebsiteType:WebsiteType", - "//submodules/ScreenCaptureDetection:ScreenCaptureDetection", - "//submodules/OpenInExternalAppUI:OpenInExternalAppUI", - "//submodules/LegacyUI:LegacyUI", - "//submodules/ImageCompression:ImageCompression", - "//submodules/DateSelectionUI:DateSelectionUI", - "//submodules/PasswordSetupUI:PasswordSetupUI", - "//submodules/Pdf:Pdf", - "//submodules/InstantPageUI:InstantPageUI", - "//submodules/MusicAlbumArtResources:MusicAlbumArtResources", - "//submodules/LiveLocationPositionNode:LiveLocationPositionNode", - "//submodules/MosaicLayout:MosaicLayout", - "//submodules/LocationUI:LocationUI", - "//submodules/Stripe:Stripe", - "//submodules/BotPaymentsUI:BotPaymentsUI", - "//submodules/LocalAuth:LocalAuth", - "//submodules/ContactListUI:ContactListUI", - "//submodules/SearchUI:SearchUI", - "//submodules/ChatListSearchItemHeader:ChatListSearchItemHeader", - "//submodules/ItemListPeerItem:ItemListPeerItem", - "//submodules/ContactsPeerItem:ContactsPeerItem", - "//submodules/ChatListSearchItemNode:ChatListSearchItemNode", - "//submodules/TelegramPermissionsUI:TelegramPermissionsUI", - "//submodules/PeersNearbyIconNode:PeersNearbyIconNode", - "//submodules/SolidRoundedButtonNode:SolidRoundedButtonNode", - "//submodules/PasscodeUI:PasscodeUI", - "//submodules/CallListUI:CallListUI", - "//submodules/ChatListUI:ChatListUI", - "//submodules/ChatTitleActivityNode:ChatTitleActivityNode", - "//submodules/DeleteChatPeerActionSheetItem:DeleteChatPeerActionSheetItem", - "//submodules/LanguageSuggestionUI:LanguageSuggestionUI", - "//submodules/TextSelectionNode:TextSelectionNode", - "//submodules/PlatformRestrictionMatching:PlatformRestrictionMatching", - "//submodules/HashtagSearchUI:HashtagSearchUI", - "//submodules/ItemListAvatarAndNameInfoItem:ItemListAvatarAndNameInfoItem", - "//submodules/ItemListPeerActionItem:ItemListPeerActionItem", - "//submodules/StickerPackPreviewUI:StickerPackPreviewUI", - "//submodules/YuvConversion:YuvConversion", - "//submodules/JoinLinkPreviewUI:JoinLinkPreviewUI", - "//submodules/LanguageLinkPreviewUI:LanguageLinkPreviewUI", - "//submodules/WebSearchUI:WebSearchUI", - "//submodules/LegacyMediaPickerUI:LegacyMediaPickerUI", - "//submodules/MimeTypes:MimeTypes", - "//submodules/LocalMediaResources:LocalMediaResources", - "//submodules/PeersNearbyUI:PeersNearbyUI", - "//submodules/Geocoding:Geocoding", - "//submodules/PeerInfoUI:PeerInfoUI", - "//submodules/PeerAvatarGalleryUI:PeerAvatarGalleryUI", - "//submodules/Emoji:Emoji", - "//submodules/ItemListStickerPackItem:ItemListStickerPackItem", - "//submodules/NotificationMuteSettingsUI:NotificationMuteSettingsUI", - "//submodules/SinglePhoneInputNode:SinglePhoneInputNode", - "//submodules/MapResourceToAvatarSizes:MapResourceToAvatarSizes", - "//submodules/NotificationSoundSelectionUI:NotificationSoundSelectionUI", - "//submodules/EncryptionKeyVisualization:EncryptionKeyVisualization", - "//submodules/ItemListAddressItem:ItemListAddressItem", - "//submodules/DeviceProximity:DeviceProximity", - "//submodules/RaiseToListen:RaiseToListen", - "//submodules/OpusBinding:OpusBinding", - "//submodules/Opus:opus", - "//submodules/WatchBridgeAudio:WatchBridgeAudio", - "//submodules/WatchBridge:WatchBridge", - "//submodules/LegacyDataImport:LegacyDataImport", - "//submodules/ShareItems:ShareItems", - "//submodules/ReactionSelectionNode:ReactionSelectionNode", - "//submodules/SettingsUI:SettingsUI", - "//submodules/UrlHandling:UrlHandling", - "//submodules/HexColor:HexColor", - "//submodules/QrCode:QrCode", - "//submodules/WallpaperResources:WallpaperResources", - "//submodules/AuthorizationUI:AuthorizationUI", - "//submodules/CounterContollerTitleView:CounterContollerTitleView", - "//submodules/GridMessageSelectionNode:GridMessageSelectionNode", - "//submodules/InstantPageCache:InstantPageCache", - "//submodules/PersistentStringHash:PersistentStringHash", - "//submodules/MessageReactionListUI:MessageReactionListUI", - "//submodules/SegmentedControlNode:SegmentedControlNode", - "//submodules/AppBundle:AppBundle", - "//submodules/Markdown:Markdown", - "//submodules/SearchPeerMembers:SearchPeerMembers", - "//submodules/WidgetItems:WidgetItems", - "//submodules/OpenSSLEncryptionProvider:OpenSSLEncryptionProvider", - "//submodules/PhoneNumberFormat:PhoneNumberFormat", - "//submodules/AppLock:AppLock", - "//submodules/NotificationsPresentationData:NotificationsPresentationData", - "//submodules/UrlWhitelist:UrlWhitelist", - "//submodules/TelegramIntents:TelegramIntents", - "//submodules/LocationResources:LocationResources", - "//submodules/ItemListVenueItem:ItemListVenueItem", - "//submodules/SemanticStatusNode:SemanticStatusNode", - "//submodules/AccountUtils:AccountUtils", - "//submodules/Svg:Svg", - "//submodules/StatisticsUI:StatisticsUI", - "//submodules/ManagedAnimationNode:ManagedAnimationNode", - "//submodules/TooltipUI:TooltipUI", - "//submodules/AuthTransferUI:AuthTransferUI", - "//submodules/ListMessageItem:ListMessageItem", - "//submodules/FileMediaResourceStatus:FileMediaResourceStatus", - "//submodules/ChatMessageInteractiveMediaBadge:ChatMessageInteractiveMediaBadge", - "//submodules/GalleryData:GalleryData", - "//submodules/ChatInterfaceState:ChatInterfaceState", - "//submodules/AnimatedCountLabelNode:AnimatedCountLabelNode", - "//submodules/AnimatedAvatarSetNode:AnimatedAvatarSetNode", - "//submodules/SlotMachineAnimationNode:SlotMachineAnimationNode", - "//submodules/AnimatedNavigationStripeNode:AnimatedNavigationStripeNode", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/CoreAudio.framework", - "$SDKROOT/System/Library/Frameworks/WebKit.framework", - ], - weak_frameworks = [ - "Vision", - "PushKit", - "CallKit", - "PassKit", - "Contacts", - "Intents", - ], -) diff --git a/submodules/TelegramUI/Sources/ChatMediaInputStickerPackItem.swift b/submodules/TelegramUI/Sources/ChatMediaInputStickerPackItem.swift index 974fa82321..cc1ce57342 100644 --- a/submodules/TelegramUI/Sources/ChatMediaInputStickerPackItem.swift +++ b/submodules/TelegramUI/Sources/ChatMediaInputStickerPackItem.swift @@ -115,7 +115,6 @@ final class ChatMediaInputStickerPackItemNode: ListViewItemNode { self.highlightNode.frame = CGRect(origin: CGPoint(x: floor((boundingSize.width - highlightSize.width) / 2.0) + verticalOffset - UIScreenPixel, y: floor((boundingSize.height - highlightSize.height) / 2.0) - UIScreenPixel), size: highlightSize) self.imageNode.transform = CATransform3DMakeRotation(CGFloat.pi / 2.0, 0.0, 0.0, 1.0) - self.imageNode.contentAnimations = [.firstUpdate] super.init(layerBacked: false, dynamicBounce: false) @@ -236,7 +235,7 @@ final class ChatMediaInputStickerPackItemNode: ListViewItemNode { let placeholderFrame = CGRect(origin: CGPoint(x: floor((boundingSize.width - imageSize.width) / 2.0) + verticalOffset, y: floor((boundingSize.height - imageSize.height) / 2.0)), size: imageSize) placeholderNode.frame = placeholderFrame - placeholderNode.update(backgroundColor: nil, foregroundColor: theme.chat.inputMediaPanel.stickersSectionTextColor.blitOver(theme.chat.inputPanel.panelBackgroundColor, alpha: 0.4), shimmeringColor: theme.chat.inputMediaPanel.panelHighlightedIconBackgroundColor.withMultipliedAlpha(0.2), data: info.immediateThumbnailData, size: imageSize, small: true) + placeholderNode.update(backgroundColor: nil, foregroundColor: theme.chat.inputMediaPanel.stickersSectionTextColor.blitOver(theme.chat.inputPanel.panelBackgroundColor, alpha: 0.4), shimmeringColor: theme.chat.inputMediaPanel.panelHighlightedIconBackgroundColor.withMultipliedAlpha(0.2), data: info.immediateThumbnailData, size: imageSize, imageSize: CGSize(width: 100.0, height: 100.0)) } self.updateIsHighlighted() diff --git a/submodules/TelegramUI/Sources/ChatMessageAnimatedStickerItemNode.swift b/submodules/TelegramUI/Sources/ChatMessageAnimatedStickerItemNode.swift index 79ea783f10..e542ef87f0 100644 --- a/submodules/TelegramUI/Sources/ChatMessageAnimatedStickerItemNode.swift +++ b/submodules/TelegramUI/Sources/ChatMessageAnimatedStickerItemNode.swift @@ -243,6 +243,9 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView { } if image != nil { strongSelf.removePlaceholder(animated: !firstTime) + if firstTime { + strongSelf.animationNode?.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.2) + } } firstTime = false } @@ -963,10 +966,10 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView { file = telegramFile } - if let immediateThumbnailData = file?.immediateThumbnailData, let placeholderNode = strongSelf.placeholderNode { + if let file = file, let immediateThumbnailData = file.immediateThumbnailData, let placeholderNode = strongSelf.placeholderNode { let foregroundColor = bubbleVariableColor(variableColor: item.presentationData.theme.theme.chat.message.stickerPlaceholderColor, wallpaper: item.presentationData.theme.wallpaper) let shimmeringColor = bubbleVariableColor(variableColor: item.presentationData.theme.theme.chat.message.stickerPlaceholderShimmerColor, wallpaper: item.presentationData.theme.wallpaper) - placeholderNode.update(backgroundColor: nil, foregroundColor: foregroundColor, shimmeringColor: shimmeringColor, data: immediateThumbnailData, size: animationNodeFrame.size) + placeholderNode.update(backgroundColor: nil, foregroundColor: foregroundColor, shimmeringColor: shimmeringColor, data: immediateThumbnailData, size: animationNodeFrame.size, imageSize: file.dimensions?.cgSize ?? CGSize(width: 512.0, height: 512.0)) placeholderNode.frame = animationNodeFrame } diff --git a/submodules/TelegramUI/Sources/ChatMessageStickerItemNode.swift b/submodules/TelegramUI/Sources/ChatMessageStickerItemNode.swift index a6080de5b2..12edc236e3 100644 --- a/submodules/TelegramUI/Sources/ChatMessageStickerItemNode.swift +++ b/submodules/TelegramUI/Sources/ChatMessageStickerItemNode.swift @@ -65,6 +65,9 @@ class ChatMessageStickerItemNode: ChatMessageItemView { } if image != nil { strongSelf.removePlaceholder(animated: !firstTime) + if firstTime { + strongSelf.imageNode.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.2) + } } firstTime = false } diff --git a/submodules/TelegramUIPreferences/BUCK b/submodules/TelegramUIPreferences/BUCK deleted file mode 100644 index a74fe185d2..0000000000 --- a/submodules/TelegramUIPreferences/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TelegramUIPreferences", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/TelegramUniversalVideoContent/BUCK b/submodules/TelegramUniversalVideoContent/BUCK deleted file mode 100644 index e8c9d6e379..0000000000 --- a/submodules/TelegramUniversalVideoContent/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TelegramUniversalVideoContent", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/MediaPlayer:UniversalMediaPlayer", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/PhotoResources:PhotoResources", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/RadialStatusNode:RadialStatusNode", - "//submodules/AppBundle:AppBundle", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/TelegramUpdateUI/BUCK b/submodules/TelegramUpdateUI/BUCK deleted file mode 100644 index 0d8ad6cce8..0000000000 --- a/submodules/TelegramUpdateUI/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TelegramUpdateUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/ItemListUI:ItemListUI", - "//submodules/PresentationDataUtils:PresentationDataUtils", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/TelegramVoip/BUCK b/submodules/TelegramVoip/BUCK deleted file mode 100644 index 9868b8dfa1..0000000000 --- a/submodules/TelegramVoip/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TelegramVoip", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/TgVoip:TgVoip", - "//submodules/TgVoipWebrtc:TgVoipWebrtc", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/TemporaryCachedPeerDataManager/BUCK b/submodules/TemporaryCachedPeerDataManager/BUCK deleted file mode 100644 index ee728d71c6..0000000000 --- a/submodules/TemporaryCachedPeerDataManager/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TemporaryCachedPeerDataManager", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramStringFormatting:TelegramStringFormatting", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/TextFormat/BUCK b/submodules/TextFormat/BUCK deleted file mode 100644 index a5feabed0b..0000000000 --- a/submodules/TextFormat/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TextFormat", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/Markdown:Markdown", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/TextSelectionNode/BUCK b/submodules/TextSelectionNode/BUCK deleted file mode 100644 index 55ad79a53c..0000000000 --- a/submodules/TextSelectionNode/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TextSelectionNode", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/TgVoip/BUCK b/submodules/TgVoip/BUCK deleted file mode 100644 index 4b42a4b211..0000000000 --- a/submodules/TgVoip/BUCK +++ /dev/null @@ -1,107 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library", "glob_map", "glob_sub_map", "merge_maps") - -replace_symbols = [ - "WebRtcAgc_Process", - "rtc_FatalMessage", - "WebRtcAgc_UpdateAgcThresholds", - "WebRtcAgc_Init", - "WebRtcAgc_GetAddFarendError", - "WebRtcAgc_ZeroCtrl", - "WebRtcAgc_SaturationCtrl", - "WebRtcAgc_SpeakerInactiveCtrl", - "WebRtcAgc_ProcessAnalog", - "WebRtcAgc_set_config", - "WebRtcAgc_get_config", - "WebRtcAgc_ExpCurve", - "WebRtcAgc_Create", - "WebRtcAgc_Free", - "WebRtcAgc_AddFarend", - "WebRtcAgc_VirtualMic", - "WebRtcAgc_AddMic", - "WebRtcAgc_InitDigital", - "WebRtcAgc_AddFarendToDigital", - "WebRtcAgc_CalculateGainTable", - "WebRtcAgc_InitVad", - "WebRtcAgc_ProcessVad", - "rtc", - "webrtc", -] - -shared_compiler_flags = [ - "-DTGVOIP_INCLUDE_OPUS_PACKAGE", -] + ["-D{symbol}={symbol}1".format(symbol=symbol) for symbol in replace_symbols] - -static_library( - name = "TgVoip", - srcs = glob([ - "Sources/**/*.m", - "Sources/**/*.mm", - "Sources/**/*.h", - "libtgvoip/*.m", - "libtgvoip/*.mm", - "libtgvoip/*.cpp", - "libtgvoip/audio/*.cpp", - "libtgvoip/video/*.cpp", - "libtgvoip/os/darwin/*.m", - "libtgvoip/os/darwin/*.mm", - "libtgvoip/os/darwin/*.cpp", - "libtgvoip/os/posix/*.cpp", - "libtgvoip/webrtc_dsp/**/*.c", - "libtgvoip/webrtc_dsp/**/*.cc", - "libtgvoip/webrtc_dsp/**/*.cpp", - ], exclude = ["libtgvoip/os/darwin/*OSX*"]), - has_cpp = True, - headers = merge_maps([ - glob_sub_map("libtgvoip/", [ - "libtgvoip/*.h", - "libtgvoip/*.hpp", - "libtgvoip/audio/*.h", - "libtgvoip/audio/*.hpp", - "libtgvoip/video/*.h", - "libtgvoip/video/*.hpp", - ]), - glob_sub_map("libtgvoip/", [ - "libtgvoip/os/darwin/*.h", - ], exclude = ["libtgvoip/os/darwin/*OSX*"]), - glob_sub_map("libtgvoip/webrtc_dsp/", [ - "libtgvoip/webrtc_dsp/**/*.h", - ]), - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - platform_compiler_flags = [ - ('arm.*', [ - '-DTGVOIP_USE_CUSTOM_CRYPTO', - '-DTGVOIP_USE_INSTALLED_OPUS', - '-DWEBRTC_APM_DEBUG_DUMP=0', - '-DWEBRTC_POSIX', - '-DTGVOIP_HAVE_TGLOG', - '-DWEBRTC_NS_FLOAT', - '-DWEBRTC_IOS', - '-DWEBRTC_HAS_NEON', - ] + shared_compiler_flags), - ('.*', [ - '-DTGVOIP_USE_CUSTOM_CRYPTO', - '-DTGVOIP_USE_INSTALLED_OPUS', - '-DWEBRTC_APM_DEBUG_DUMP=0', - '-DWEBRTC_POSIX', - '-DTGVOIP_HAVE_TGLOG', - '-DWEBRTC_NS_FLOAT', - '-DWEBRTC_IOS', - ] + shared_compiler_flags), - ], - deps = [ - "//submodules/MtProtoKit:MtProtoKit#shared", - "//submodules/Opus:opus", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/AudioToolbox.framework", - "$SDKROOT/System/Library/Frameworks/VideoToolbox.framework", - "$SDKROOT/System/Library/Frameworks/CoreTelephony.framework", - "$SDKROOT/System/Library/Frameworks/CoreMedia.framework", - "$SDKROOT/System/Library/Frameworks/AVFoundation.framework", - ], -) \ No newline at end of file diff --git a/submodules/TgVoipWebrtc/BUCK b/submodules/TgVoipWebrtc/BUCK deleted file mode 100644 index 4b2e1816ca..0000000000 --- a/submodules/TgVoipWebrtc/BUCK +++ /dev/null @@ -1,65 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library", "glob_map", "glob_sub_map", "merge_maps") - -webrtc_include_prefix = "-I../../" if native.read_config("custom", "mode") == "project" else "-I" - -static_library( - name = "TgVoipWebrtc", - srcs = glob([ - "Sources/**/*.m", - "Sources/**/*.mm", - "tgcalls/tgcalls/**/*.cpp", - "tgcalls/tgcalls/**/*.mm", - "tgcalls/tgcalls/**/*.m", - ], exclude = [ - "tgcalls/tgcalls/legacy/**", - "tgcalls/tgcalls/platform/tdesktop/**", - "tgcalls/tgcalls/platform/windows/**", - "tgcalls/tgcalls/platform/android/**", - "tgcalls/tgcalls/platform/darwin/VideoCameraCapturerMac.*", - "tgcalls/tgcalls/platform/darwin/VideoMetalViewMac.*", - "tgcalls/tgcalls/platform/darwin/GLVideoViewMac.*", - "tgcalls/tgcalls/platform/darwin/ScreenCapturer.*", - ]), - has_cpp = True, - headers = merge_maps([ - glob_sub_map("PublicHeaders/", [ - "PublicHeaders/**/*.h", - ]), - glob_sub_map("tgcalls/tgcalls/", [ - "tgcalls/tgcalls/**/*.h", - ]), - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - compiler_flags = [ - webrtc_include_prefix + "third-party/webrtc/webrtc-ios/src", - webrtc_include_prefix + "third-party/webrtc/webrtc-ios/src/third_party/abseil-cpp", - webrtc_include_prefix + "third-party/webrtc/webrtc-ios/src/sdk/objc", - webrtc_include_prefix + "third-party/webrtc/webrtc-ios/src/sdk/objc/base", - webrtc_include_prefix + "third-party/webrtc/webrtc-ios/src/sdk/objc/components/renderer/metal", - webrtc_include_prefix + "third-party/webrtc/webrtc-ios/src/sdk/objc/components/renderer/opengl", - webrtc_include_prefix + "third-party/webrtc/webrtc-ios/src/sdk/objc/components/video_codec", - webrtc_include_prefix + "third-party/webrtc/webrtc-ios/src/third_party/libyuv/include", - webrtc_include_prefix + "third-party/submodules/TgVoipWebrtc/PublicHeaders", - "-DWEBRTC_IOS", - "-DWEBRTC_MAC", - "-DWEBRTC_POSIX", - "-DRTC_ENABLE_VP9", - ], - deps = [ - "//submodules/MtProtoKit:MtProtoKit#shared", - "//submodules/Opus:opus", - "//submodules/openssl:openssl", - "//third-party/webrtc:webrtc_lib", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/AudioToolbox.framework", - "$SDKROOT/System/Library/Frameworks/VideoToolbox.framework", - "$SDKROOT/System/Library/Frameworks/CoreTelephony.framework", - "$SDKROOT/System/Library/Frameworks/CoreMedia.framework", - "$SDKROOT/System/Library/Frameworks/AVFoundation.framework", - ], -) diff --git a/submodules/TinyThumbnail/BUCK b/submodules/TinyThumbnail/BUCK deleted file mode 100644 index e472166ecd..0000000000 --- a/submodules/TinyThumbnail/BUCK +++ /dev/null @@ -1,11 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TinyThumbnail", - srcs = glob([ - "Sources/**/*.swift", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/TonBinding/BUCK b/submodules/TonBinding/BUCK deleted file mode 100644 index 07e0b121d2..0000000000 --- a/submodules/TonBinding/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TonBinding", - srcs = glob([ - "Sources/**/*.m", - "Sources/**/*.mm", - ]), - headers = glob([ - "Sources/**/*.h", - ]), - exported_headers = glob([ - "Sources/**/*.h", - ]), - visibility = ["PUBLIC"], - deps = [ - "//submodules/SSignalKit/SSignalKit:SSignalKit", - "//submodules/openssl:openssl", - "//submodules/ton:ton", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/TooltipUI/BUCK b/submodules/TooltipUI/BUCK deleted file mode 100644 index ee83e7145d..0000000000 --- a/submodules/TooltipUI/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TooltipUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AppBundle:AppBundle", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/TextFormat:TextFormat", - "//submodules/UrlEscaping:UrlEscaping", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/TouchDownGesture/BUCK b/submodules/TouchDownGesture/BUCK deleted file mode 100644 index f5bba578ab..0000000000 --- a/submodules/TouchDownGesture/BUCK +++ /dev/null @@ -1,12 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "TouchDownGesture", - srcs = glob([ - "Sources/**/*.swift", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/Tuples/BUCK b/submodules/Tuples/BUCK deleted file mode 100644 index b2ffac741a..0000000000 --- a/submodules/Tuples/BUCK +++ /dev/null @@ -1,11 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "Tuples", - srcs = glob([ - "Sources/**/*.swift", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/UIKitRuntimeUtils/BUCK b/submodules/UIKitRuntimeUtils/BUCK deleted file mode 100644 index 5438bad157..0000000000 --- a/submodules/UIKitRuntimeUtils/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "UIKitRuntimeUtils", - srcs = glob([ - "Source/UIKitRuntimeUtils/*.m", - ]), - exported_headers = glob([ - "Source/UIKitRuntimeUtils/*.h", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/ObjCRuntimeUtils:ObjCRuntimeUtils", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/UndoUI/BUCK b/submodules/UndoUI/BUCK deleted file mode 100644 index 43cf11da9a..0000000000 --- a/submodules/UndoUI/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "UndoUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TextFormat:TextFormat", - "//submodules/Markdown:Markdown", - "//submodules/RadialStatusNode:RadialStatusNode", - "//submodules/AnimationUI:AnimationUI", - "//submodules/AnimatedStickerNode:AnimatedStickerNode", - "//submodules/AppBundle:AppBundle", - "//submodules/StickerResources:StickerResources", - "//submodules/TelegramAnimatedStickerNode:TelegramAnimatedStickerNode", - "//submodules/SlotMachineAnimationNode:SlotMachineAnimationNode", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/UrlEscaping/BUCK b/submodules/UrlEscaping/BUCK deleted file mode 100644 index 541c96168a..0000000000 --- a/submodules/UrlEscaping/BUCK +++ /dev/null @@ -1,11 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "UrlEscaping", - srcs = glob([ - "Sources/**/*.swift", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/UrlHandling/BUCK b/submodules/UrlHandling/BUCK deleted file mode 100644 index faa86f1b36..0000000000 --- a/submodules/UrlHandling/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "UrlHandling", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/MtProtoKit:MtProtoKit#shared", - "//submodules/AccountContext:AccountContext", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/WalletUrl:WalletUrl", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/UrlWhitelist/BUCK b/submodules/UrlWhitelist/BUCK deleted file mode 100644 index 870382826f..0000000000 --- a/submodules/UrlWhitelist/BUCK +++ /dev/null @@ -1,11 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "UrlWhitelist", - srcs = glob([ - "Sources/**/*.swift", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/WallpaperResources/BUCK b/submodules/WallpaperResources/BUCK deleted file mode 100644 index c1aa1769d7..0000000000 --- a/submodules/WallpaperResources/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "WallpaperResources", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/Display:Display#shared", - "//submodules/LocalMediaResources:LocalMediaResources", - "//submodules/TinyThumbnail:TinyThumbnail", - "//submodules/ImageBlur:ImageBlur", - "//submodules/MediaResources:MediaResources", - "//submodules/PhotoResources:PhotoResources", - "//submodules/PersistentStringHash:PersistentStringHash", - "//submodules/AppBundle:AppBundle", - "//submodules/Svg:Svg", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/WatchBridge/BUCK b/submodules/WatchBridge/BUCK deleted file mode 100644 index 43887ef484..0000000000 --- a/submodules/WatchBridge/BUCK +++ /dev/null @@ -1,32 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "WatchBridge", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/SSignalKit/SSignalKit:SSignalKit", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/WatchCommon/Host:WatchCommon", - "//submodules/WatchBridgeAudio:WatchBridgeAudio", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/AccountContext:AccountContext", - "//submodules/AvatarNode:AvatarNode", - "//submodules/StickerResources:StickerResources", - "//submodules/PhotoResources:PhotoResources", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/LegacyUI:LegacyUI", - "//submodules/PhoneNumberFormat:PhoneNumberFormat", - "//submodules/WatchBridge/Impl:WatchBridgeImpl", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/WatchConnectivity.framework", - ], -) diff --git a/submodules/WatchBridge/Impl/BUCK b/submodules/WatchBridge/Impl/BUCK deleted file mode 100644 index 0fffa19506..0000000000 --- a/submodules/WatchBridge/Impl/BUCK +++ /dev/null @@ -1,38 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "WatchBridgeImpl", - srcs = glob([ - "Sources/**/*.swift", - "Sources/**/*.m", - ]), - headers = glob([ - "Sources/**/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/SSignalKit/SSignalKit:SSignalKit", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/WatchCommon/Host:WatchCommon", - "//submodules/WatchBridgeAudio:WatchBridgeAudio", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/AccountContext:AccountContext", - "//submodules/AvatarNode:AvatarNode", - "//submodules/StickerResources:StickerResources", - "//submodules/PhotoResources:PhotoResources", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/LegacyUI:LegacyUI", - "//submodules/PhoneNumberFormat:PhoneNumberFormat", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/WatchConnectivity.framework", - ], -) diff --git a/submodules/WatchBridgeAudio/BUCK b/submodules/WatchBridgeAudio/BUCK deleted file mode 100644 index c344d50cd6..0000000000 --- a/submodules/WatchBridgeAudio/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "WatchBridgeAudio", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/WatchBridgeAudio/Impl:WatchBridgeAudioImpl", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/AVFoundation.framework", - "$SDKROOT/System/Library/Frameworks/AudioToolbox.framework", - ], -) diff --git a/submodules/WatchBridgeAudio/Impl/BUCK b/submodules/WatchBridgeAudio/Impl/BUCK deleted file mode 100644 index 68519a7f3e..0000000000 --- a/submodules/WatchBridgeAudio/Impl/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "WatchBridgeAudioImpl", - srcs = glob([ - "Sources/**/*.m", - "Sources/**/*.mm", - ]), - headers = glob([ - "Sources/**/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - "//submodules/SSignalKit/SSignalKit:SSignalKit", - "//submodules/OpusBinding:OpusBinding", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/AVFoundation.framework", - "$SDKROOT/System/Library/Frameworks/AudioToolbox.framework", - ], -) diff --git a/submodules/WatchCommon/Host/BUCK b/submodules/WatchCommon/Host/BUCK deleted file mode 100644 index 56fb1a1683..0000000000 --- a/submodules/WatchCommon/Host/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "WatchCommon", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/WatchCommon/Watch/BUCK b/submodules/WatchCommon/Watch/BUCK deleted file mode 100644 index 77c74a57f5..0000000000 --- a/submodules/WatchCommon/Watch/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "WatchCommonWatch", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ], exclude = ["Sources/WatchCommon.h", "Sources/WatchCommon.h"]), - exported_headers = glob([ - "Sources/*.h", - ], exclude = ["Sources/WatchCommon.h", "Sources/WatchCommon.h"]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/WebPBinding/BUCK b/submodules/WebPBinding/BUCK deleted file mode 100644 index 7e23c440ec..0000000000 --- a/submodules/WebPBinding/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library", "framework") - -static_library( - name = "WebPBinding", - srcs = glob([ - "Sources/**/*.m", - ]), - headers = glob([ - "Sources/**/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - "//submodules/webp:webp", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/WebSearchUI/BUCK b/submodules/WebSearchUI/BUCK deleted file mode 100644 index 53ad3af445..0000000000 --- a/submodules/WebSearchUI/BUCK +++ /dev/null @@ -1,37 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "WebSearchUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#shared", - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - "//submodules/Postbox:Postbox#shared", - "//submodules/TelegramCore:TelegramCore#shared", - "//submodules/SyncCore:SyncCore#shared", - "//submodules/TelegramPresentationData:TelegramPresentationData", - "//submodules/AccountContext:AccountContext", - "//submodules/LegacyComponents:LegacyComponents", - "//submodules/TelegramUIPreferences:TelegramUIPreferences", - "//submodules/MergeLists:MergeLists", - "//submodules/GalleryUI:GalleryUI", - "//submodules/ChatListSearchItemHeader:ChatListSearchItemHeader", - "//submodules/TelegramUniversalVideoContent:TelegramUniversalVideoContent", - "//submodules/CheckNode:CheckNode", - "//submodules/PhotoResources:PhotoResources", - "//submodules/SearchBarNode:SearchBarNode", - "//submodules/ItemListUI:ItemListUI", - "//submodules/LegacyMediaPickerUI:LegacyMediaPickerUI", - "//submodules/SegmentedControlNode:SegmentedControlNode", - "//submodules/AppBundle:AppBundle", - "//submodules/PresentationDataUtils:PresentationDataUtils", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/QuickLook.framework", - ], -) diff --git a/submodules/WebUI/BUCK b/submodules/WebUI/BUCK deleted file mode 100644 index 73067e9373..0000000000 --- a/submodules/WebUI/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "WebUI", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/AsyncDisplayKit:AsyncDisplayKit#shared", - "//submodules/Display:Display#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/WebKit.framework", - ], -) diff --git a/submodules/WebsiteType/BUCK b/submodules/WebsiteType/BUCK deleted file mode 100644 index 7c8ecfbdd2..0000000000 --- a/submodules/WebsiteType/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "WebsiteType", - srcs = glob([ - "Sources/**/*.swift", - ]), - deps = [ - "//submodules/SyncCore:SyncCore#shared", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/WidgetItems/BUCK b/submodules/WidgetItems/BUCK deleted file mode 100644 index 5a23f7b104..0000000000 --- a/submodules/WidgetItems/BUCK +++ /dev/null @@ -1,11 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "WidgetItems", - srcs = glob([ - "Sources/**/*.swift", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/YuvConversion/BUCK b/submodules/YuvConversion/BUCK deleted file mode 100644 index 2d4675cff4..0000000000 --- a/submodules/YuvConversion/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "YuvConversion", - srcs = glob([ - "Sources/*.m", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/Accelerate.framework", - ], -) diff --git a/submodules/ffmpeg/BUCK b/submodules/ffmpeg/BUCK deleted file mode 100644 index 67e9c161eb..0000000000 --- a/submodules/ffmpeg/BUCK +++ /dev/null @@ -1,180 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library", "gen_header_targets", "merge_maps") - -ffmpeg_header_paths = [ - "libavutil/hwcontext.h", - "libavutil/time.h", - "libavutil/hwcontext_cuda.h", - "libavutil/intfloat.h", - "libavutil/error.h", - "libavutil/fifo.h", - "libavutil/blowfish.h", - "libavutil/hwcontext_mediacodec.h", - "libavutil/replaygain.h", - "libavutil/version.h", - "libavutil/murmur3.h", - "libavutil/stereo3d.h", - "libavutil/samplefmt.h", - "libavutil/pixdesc.h", - "libavutil/base64.h", - "libavutil/rational.h", - "libavutil/sha.h", - "libavutil/motion_vector.h", - "libavutil/avconfig.h", - "libavutil/lfg.h", - "libavutil/avutil.h", - "libavutil/xtea.h", - "libavutil/crc.h", - "libavutil/hwcontext_vdpau.h", - "libavutil/frame.h", - "libavutil/file.h", - "libavutil/md5.h", - "libavutil/cast5.h", - "libavutil/hwcontext_vaapi.h", - "libavutil/spherical.h", - "libavutil/ffversion.h", - "libavutil/audio_fifo.h", - "libavutil/tree.h", - "libavutil/threadmessage.h", - "libavutil/attributes.h", - "libavutil/adler32.h", - "libavutil/hwcontext_d3d11va.h", - "libavutil/timecode.h", - "libavutil/sha512.h", - "libavutil/hwcontext_dxva2.h", - "libavutil/display.h", - "libavutil/buffer.h", - "libavutil/camellia.h", - "libavutil/pixelutils.h", - "libavutil/hwcontext_drm.h", - "libavutil/common.h", - "libavutil/hmac.h", - "libavutil/eval.h", - "libavutil/dict.h", - "libavutil/random_seed.h", - "libavutil/opt.h", - "libavutil/mastering_display_metadata.h", - "libavutil/log.h", - "libavutil/aes.h", - "libavutil/macros.h", - "libavutil/bswap.h", - "libavutil/rc4.h", - "libavutil/tea.h", - "libavutil/cpu.h", - "libavutil/lzo.h", - "libavutil/des.h", - "libavutil/channel_layout.h", - "libavutil/encryption_info.h", - "libavutil/twofish.h", - "libavutil/imgutils.h", - "libavutil/hwcontext_videotoolbox.h", - "libavutil/mem.h", - "libavutil/parseutils.h", - "libavutil/ripemd.h", - "libavutil/bprint.h", - "libavutil/hwcontext_qsv.h", - "libavutil/pixfmt.h", - "libavutil/aes_ctr.h", - "libavutil/timestamp.h", - "libavutil/downmix_info.h", - "libavutil/avassert.h", - "libavutil/hash.h", - "libavutil/mathematics.h", - "libavutil/intreadwrite.h", - "libavutil/avstring.h", - "libavformat/version.h", - "libavformat/avio.h", - "libavformat/avformat.h", - "libavcodec/adts_parser.h", - "libavcodec/avcodec.h", - "libavcodec/version.h", - "libavcodec/vdpau.h", - "libavcodec/qsv.h", - "libavcodec/vaapi.h", - "libavcodec/videotoolbox.h", - "libavcodec/xvmc.h", - "libavcodec/mediacodec.h", - "libavcodec/d3d11va.h", - "libavcodec/avfft.h", - "libavcodec/jni.h", - "libavcodec/dirac.h", - "libavcodec/avdct.h", - "libavcodec/ac3_parser.h", - "libavcodec/vorbis_parser.h", - "libavcodec/dxva2.h", - "libavcodec/dv_profile.h", - "libswresample/version.h", - "libswresample/swresample.h", -] - -library_archs = "arm64 armv7 x86_64" - -genrule( - name = "libffmpeg_build", - srcs = glob([ - "Sources/FFMpeg/**/*", - ], exclude = ["Sources/FFMpeg/**/.*"]), - bash = - "PATH=\"$PATH:$(location //third-party/yasm:yasm)/yasm-1.3.0/build\" " + - "$SRCDIR/Sources/FFMpeg/build-ffmpeg-buck.sh release \"" + library_archs + "\" $OUT $SRCDIR/Sources/FFMpeg", - out = "libffmpeg", - visibility = [ - "//submodules/ffmpeg:FFMpeg", - "//submodules/ffmpeg:libffmpeg", - ] -) - -ffmpeg_header_targets = gen_header_targets(ffmpeg_header_paths, "ffmpeg_header_", "", "libffmpeg_build", "FFmpeg-iOS/include") - -apple_library( - name = "libffmpeg", - visibility = [ - "//submodules/ffmpeg:FFMpeg" - ], - header_namespace = "ffmpeg", - exported_headers = ffmpeg_header_targets, - linker_flags = [ - "-L$(location :libffmpeg_build)/FFmpeg-iOS/lib", - "-lavutil", - "-lavcodec", - "-lavformat", - "-lswresample", - "-lbz2", - "-liconv", - "-lz", - ], - exported_linker_flags = [ - "-L$(location :libffmpeg_build)/FFmpeg-iOS/lib", - "-lavutil", - "-lavcodec", - "-lavformat", - "-lswresample", - "-lbz2", - "-liconv", - "-lz", - ], - deps = [ - ":libffmpeg_build", - "//submodules/Opus:opus", - ], -) - -static_library( - name = "ffmpeg", - exported_headers = merge_maps([ - { - "ffmpeg/ffmpeg.h": "PublicHeaders/ffmpeg/ffmpeg.h", - }, - ffmpeg_header_targets, - ]), - deps = [ - ":libffmpeg_build", - ":libffmpeg", - "//submodules/Opus:opus", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/CoreMedia.framework", - "$SDKROOT/System/Library/Frameworks/AVFoundation.framework", - ], -) diff --git a/submodules/ffmpeg/Sources/FFMpeg/build-ffmpeg-buck.sh b/submodules/ffmpeg/Sources/FFMpeg/build-ffmpeg-buck.sh deleted file mode 100755 index cc7f8a753b..0000000000 --- a/submodules/ffmpeg/Sources/FFMpeg/build-ffmpeg-buck.sh +++ /dev/null @@ -1,230 +0,0 @@ -#!/bin/sh - -RAW_ARCHS="$2" -ARCHS="" - -for RAW_ARCH in $RAW_ARCHS; do - ARCH_NAME="$RAW_ARCH" - if [ "$ARCH_NAME" == "iphoneos-arm64" ]; then - ARCH_NAME="arm64" - elif [ "$ARCH_NAME" == "iphoneos-armv7" ]; then - ARCH_NAME="armv7" - elif [ "$ARCH_NAME" == "iphonesimulator-x86_64" ]; then - ARCH_NAME="x86_64" - elif [ "$ARCH_NAME" == "iphonesimulator-i386" ]; then - ARCH_NAME="i386" - fi - - if [ "$ARCH_NAME" = "i386" -o "$ARCH_NAME" = "x86_64" -o "$ARCH_NAME" = "arm64" -o "$ARCH_NAME" = "armv7" ] - then - ARCHS="$ARCHS $ARCH_NAME" - else - echo "Invalid architecture $ARCH" - exit 1 - fi -done - -BUILD_DIR=$3 -SOURCE_DIR=$4 - -FF_VERSION="4.1" -SOURCE="$SOURCE_DIR/ffmpeg-$FF_VERSION" - -GAS_PREPROCESSOR_PATH="$SOURCE_DIR/gas-preprocessor.pl" - -FAT="$BUILD_DIR/FFmpeg-iOS" - -SCRATCH="$BUILD_DIR/scratch" -THIN="$BUILD_DIR/thin" - -PKG_CONFIG="$SOURCE_DIR/pkg-config" - -export PATH="$SOURCE_DIR:$PATH" - -LIB_NAMES="libavcodec libavformat libavutil libswresample" - -set -e - -CONFIGURE_FLAGS="--enable-cross-compile --disable-programs \ - --disable-armv5te --disable-armv6 --disable-armv6t2 \ - --disable-doc --enable-pic --disable-all --disable-everything \ - --enable-avcodec \ - --enable-swresample \ - --enable-avformat \ - --disable-xlib \ - --enable-libopus \ - --enable-audiotoolbox \ - --enable-bsf=aac_adtstoasc \ - --enable-decoder=h264,hevc,libopus,mp3_at,aac,flac,alac_at,pcm_s16le,pcm_s24le,gsm_ms_at \ - --enable-demuxer=aac,mov,m4v,mp3,ogg,libopus,flac,wav,aiff,matroska \ - --enable-parser=aac,h264,mp3,libopus \ - --enable-protocol=file \ - --enable-muxer=mp4 \ - " - - -#--enable-hwaccel=h264_videotoolbox,hevc_videotoolbox \ - -if [ "$1" = "debug" ]; -then - CONFIGURE_FLAGS="$CONFIGURE_FLAGS --disable-optimizations --disable-stripping" -elif [ "$1" = "release" ]; -then - CONFIGURE_FLAGS="$CONFIGURE_FLAGS --disable-debug" -else - echo "No configuration specified (debug / release)" - exit 1 -fi - -COMPILE="y" - -DEPLOYMENT_TARGET="8.0" - -LIBS_HASH="" -for ARCH in $ARCHS -do - for LIB_NAME in $LIB_NAMES - do - LIB="$SCRATCH/$ARCH/$LIB_NAME/$LIB_NAME.a" - if [ -e "$LIB" ] - then - LIB_DATE=`crc32 "$LIB"` - LIBS_HASH="$LIBS_HASH $ARCH/$LIB:$LIB_DATE" - fi - done -done - -if [ "$COMPILE" ] -then - if [ ! `which yasm` ]; then - echo 'Yasm not found' - exit 1 - fi - if [ ! `which pkg-config` ]; then - echo 'pkg-config not found' - exit 1 - else - echo "PATH=$PATH" - echo "pkg-config=$(which pkg-config)" - fi - if [ ! `which "$GAS_PREPROCESSOR_PATH"` ]; then - echo '$GAS_PREPROCESSOR_PATH not found.' - exit 1 - fi - - if [ ! -r $SOURCE ]; then - echo "FFmpeg source not found at $SOURCE" - exit 1 - fi - - CWD="$BUILD_DIR" - for ARCH in $ARCHS - do - echo "building $ARCH..." - mkdir -p "$SCRATCH/$ARCH" - cd "$SCRATCH/$ARCH" - - LIBOPUS_PATH="$SOURCE_DIR/libopus" - - CFLAGS="-arch $ARCH" - if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ] - then - PLATFORM="iPhoneSimulator" - CFLAGS="$CFLAGS -mios-simulator-version-min=$DEPLOYMENT_TARGET" - else - PLATFORM="iPhoneOS" - CFLAGS="$CFLAGS -mios-version-min=$DEPLOYMENT_TARGET" - if [ "$ARCH" = "arm64" ] - then - EXPORT="GASPP_FIX_XCODE5=1" - fi - fi - - XCRUN_SDK=`echo $PLATFORM | tr '[:upper:]' '[:lower:]'` - CC="xcrun -sdk $XCRUN_SDK clang" - - if [ "$ARCH" = "arm64" ] - then - AS="$GAS_PREPROCESSOR_PATH -arch aarch64 -- $CC" - else - AS="$GAS_PREPROCESSOR_PATH -- $CC" - fi - - CXXFLAGS="$CFLAGS" - LDFLAGS="$CFLAGS" - - CONFIGURED_MARKER="$THIN/$ARCH/configured_marker" - CONFIGURED_MARKER_CONTENTS="" - if [ -r "$CONFIGURED_MARKER" ] - then - CONFIGURED_MARKER_CONTENTS=`cat "$CONFIGURED_MARKER"` - fi - if [ "$CONFIGURED_MARKER_CONTENTS" = "$CONFIGURE_FLAGS" ] - then - echo "1" >/dev/null - else - mkdir -p "$THIN/$ARCH" - TMPDIR=${TMPDIR/%\/} "$SOURCE/configure" \ - --target-os=darwin \ - --arch=$ARCH \ - --cc="$CC" \ - --as="$AS" \ - $CONFIGURE_FLAGS \ - --extra-cflags="$CFLAGS" \ - --extra-ldflags="$LDFLAGS" \ - --prefix="$THIN/$ARCH" \ - --pkg-config="$PKG_CONFIG" \ - --pkg-config-flags="--libopus_path $LIBOPUS_PATH" \ - || exit 1 - echo "$CONFIGURE_FLAGS" > "$CONFIGURED_MARKER" - fi - - CORE_COUNT=`sysctl -n hw.logicalcpu` - make -j$CORE_COUNT install $EXPORT || exit 1 - cd "$CWD" - done -fi - -UPDATED_LIBS_HASH="" -for ARCH in $ARCHS -do - for LIB_NAME in $LIB_NAMES - do - LIB="$SCRATCH/$ARCH/$LIB_NAME/$LIB_NAME.a" - if [ -e "$LIB" ] - then - LIB_DATE=`crc32 "$LIB"` - UPDATED_LIBS_HASH="$UPDATED_LIBS_HASH $ARCH/$LIB:$LIB_DATE" - fi - done -done - -if [ "$UPDATED_LIBS_HASH" = "$LIBS_HASH" ] -then - echo "Libs aren't changed, skipping lipo" -else - echo "UPDATED_LIBS_HASH=$UPDATED_LIBS_HASH" - echo "LIBS_HASH=$LIBS_HASH" - LIPO="y" -fi - -if [ "$LIPO" ] -then - echo "building fat binaries..." - mkdir -p "$FAT"/lib - set - $ARCHS - CWD="$BUILD_DIR" - cd "$THIN/$1/lib" - for LIB in *.a - do - cd "$CWD" - echo lipo -create `find "$THIN" -name "$LIB"` -output "$FAT/lib/$LIB" 1>&2 - LIPO_INPUT=`find "$THIN" -name "$LIB"` - lipo -create $LIPO_INPUT -output "$FAT/lib/$LIB" || exit 1 - done - - cd "$CWD" - cp -rf "$THIN/$1/include" "$FAT" -fi - -echo Done diff --git a/submodules/libphonenumber/BUCK b/submodules/libphonenumber/BUCK deleted file mode 100644 index 2bf07e7f10..0000000000 --- a/submodules/libphonenumber/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "libphonenumber", - srcs = glob([ - "Sources/*.m", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/lottie-ios/BUCK b/submodules/lottie-ios/BUCK deleted file mode 100644 index 18430670c3..0000000000 --- a/submodules/lottie-ios/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -private_headers = glob([ - "lottie-ios/**/*.h", -], exclude = [ - "lottie-ios/Classes/PublicHeaders/**/*.h", -]) - -static_library( - name = "Lottie", - srcs = glob([ - "lottie-ios/**/*.m", - ]), - headers = private_headers, - exported_headers = glob([ - "lottie-ios/Classes/PublicHeaders/**/*.h", - ]), - deps = [ - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/openssl/BUCK b/submodules/openssl/BUCK deleted file mode 100644 index 5d87cd095d..0000000000 --- a/submodules/openssl/BUCK +++ /dev/null @@ -1,179 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library", "gen_header_targets") - -openssl_headers = [ - "aes.h", - "asn1.h", - "asn1_mac.h", - "asn1err.h", - "asn1t.h", - "async.h", - "asyncerr.h", - "bio.h", - "bioerr.h", - "blowfish.h", - "bn.h", - "bnerr.h", - "buffer.h", - "buffererr.h", - "camellia.h", - "cast.h", - "cmac.h", - "cms.h", - "cmserr.h", - "comp.h", - "comperr.h", - "conf.h", - "conf_api.h", - "conferr.h", - "crypto.h", - "cryptoerr.h", - "ct.h", - "cterr.h", - "des.h", - "dh.h", - "dherr.h", - "dsa.h", - "dsaerr.h", - "dtls1.h", - "e_os2.h", - "ebcdic.h", - "ec.h", - "ecdh.h", - "ecdsa.h", - "ecerr.h", - "engine.h", - "engineerr.h", - "err.h", - "evp.h", - "evperr.h", - "hmac.h", - "idea.h", - "kdf.h", - "kdferr.h", - "lhash.h", - "md2.h", - "md4.h", - "md5.h", - "mdc2.h", - "modes.h", - "obj_mac.h", - "objects.h", - "objectserr.h", - "ocsp.h", - "ocsperr.h", - "opensslconf.h", - "opensslv.h", - "ossl_typ.h", - "pem.h", - "pem2.h", - "pemerr.h", - "pkcs12.h", - "pkcs12err.h", - "pkcs7.h", - "pkcs7err.h", - "rand.h", - "rand_drbg.h", - "randerr.h", - "rc2.h", - "rc4.h", - "rc5.h", - "ripemd.h", - "rsa.h", - "rsaerr.h", - "safestack.h", - "seed.h", - "sha.h", - "srp.h", - "srtp.h", - "ssl.h", - "ssl2.h", - "ssl3.h", - "sslerr.h", - "stack.h", - "store.h", - "storeerr.h", - "symhacks.h", - "tls1.h", - "ts.h", - "tserr.h", - "txt_db.h", - "ui.h", - "uierr.h", - "whrlpool.h", - "x509.h", - "x509_vfy.h", - "x509err.h", - "x509v3.h", - "x509v3err.h", -] - -openssl_header_paths = ["openssl/" + header for header in openssl_headers] - -archs = ["arm64", "armv7", "x86_64"] - -rules = [ - genrule( - name = "openssl_build_" + arch, - srcs = glob([ - "build-openssl-buck.sh", - "*.tar.gz", - "*.patch", - ]), - bash = "sh $SRCDIR/build-openssl-buck.sh $OUT $SRCDIR " + arch, - out = "openssl_" + arch, - visibility = [ - "//submodules/openssl:...", - ] - ) for arch in archs -] - -genrule( - name = "openssl_build_merged", - srcs = [ - "pack-openssl.sh", - ], - bash = "sh $SRCDIR/pack-openssl.sh $OUT $(location :openssl_build_arm64)/out/include " + - " ".join(["$(location :openssl_build_" + arch + ")/out/lib/libcrypto.a" for arch in archs]), - out = "openssl", - visibility = [ - "PUBLIC", - ] -) - -genrule( - name = "openssl_libssl_merged", - srcs = [ - "pack-libssl.sh", - ], - bash = "sh $SRCDIR/pack-libssl.sh $OUT $(location :openssl_build_arm64)/out/include " + - " ".join(["$(location :openssl_build_" + arch + ")/out/lib/libssl.a" for arch in archs]), - out = "libssl", - visibility = [ - "PUBLIC", - ] -) - - -openssl_header_targets = gen_header_targets(openssl_header_paths, "openssl_header_", "", "openssl_build_arm64", "out/include") - -apple_library( - name = "openssl", - visibility = [ - "PUBLIC", - ], - header_namespace = "openssl", - exported_headers = openssl_header_targets, - linker_flags = [ - "-L$(location :openssl_build_merged)/lib", - "-L$(location :openssl_libssl_merged)/lib", - "-lcrypto", - "-lssl", - ], - exported_linker_flags = [ - "-L$(location :openssl_build_merged)/lib", - "-L$(location :openssl_libssl_merged)/lib", - "-lcrypto", - "-lssl", - ], - deps = [":openssl_build_" + arch for arch in ["arm64"]], -) diff --git a/submodules/openssl/build-openssl-buck.sh b/submodules/openssl/build-openssl-buck.sh deleted file mode 100644 index f2b2c487c4..0000000000 --- a/submodules/openssl/build-openssl-buck.sh +++ /dev/null @@ -1,195 +0,0 @@ -#!/bin/bash - -OUT_DIR="$1" -SRC_DIR="$2" -ARCH="$3" - -if [ "$ARCH" != "arm64" ] && [ "$ARCH" != "armv7" ] && [ "$ARCH" != "x86_64" ]; then - echo "Invalid architecture $ARCH" - exit 1 -fi - -if [ -z "$OUT_DIR" ]; then - echo "Usage: sh build-openssl.sh OUT_DIR SRC_DIR ARCH" - exit 1 -fi - -if [ -z "$SRC_DIR" ]; then - echo "Usage: sh build-openssl.sh OUT_DIR SRC_DIR ARCH" - exit 1 -fi - -if [ ! -d "$SRC_DIR" ]; then - echo "$SRC_DIR does not exist" - exit 1 -fi - -mkdir -p "$OUT_DIR" - -TMP_DIR="$OUT_DIR/build" -rm -rf "$TMP_DIR" -mkdir -p "$TMP_DIR" - -CROSS_TOP_SIM="`xcode-select --print-path`/Platforms/iPhoneSimulator.platform/Developer" -CROSS_SDK_SIM="iPhoneSimulator.sdk" - -CROSS_TOP_IOS="`xcode-select --print-path`/Platforms/iPhoneOS.platform/Developer" -CROSS_SDK_IOS="iPhoneOS.sdk" - -SOURCE_DIR="$OUT_DIR/openssl-1.1.1d" -SOURCE_ARCHIVE="$SRC_DIR/openssl-1.1.1d.tar.gz" - -rm -rf "$SOURCE_DIR" - -tar -xzf "$SOURCE_ARCHIVE" --directory "$OUT_DIR" - -export CROSS_COMPILE=`xcode-select --print-path`/Toolchains/XcodeDefault.xctoolchain/usr/bin/ - -function build_for () -{ - DIR="$(pwd)" - cd "$SOURCE_DIR" - - PLATFORM="$1" - ARCH="$2" - CROSS_TOP_ENV="CROSS_TOP_$3" - CROSS_SDK_ENV="CROSS_SDK_$3" - - make clean - - export CROSS_TOP="${!CROSS_TOP_ENV}" - export CROSS_SDK="${!CROSS_SDK_ENV}" - - MINIMAL_FLAGS=(\ - "no-afalgeng" \ - "no-aria" \ - "no-asan" \ - "no-async" \ - "no-autoalginit" \ - "no-autoerrinit" \ - "no-autoload-config" \ - "no-bf" \ - "no-blake2" \ - "no-buildtest-c++" \ - "no-camellia" \ - "no-capieng" \ - "no-cast" \ - "no-chacha" \ - "no-cmac" \ - "no-cms" \ - "no-comp" \ - "no-crypto-mdebug" \ - "no-crypto-mdebug-backtrace" \ - "no-ct" \ - "no-deprecated" \ - "no-des" \ - "no-devcryptoeng" \ - "no-dgram" \ - "no-dh" \ - "no-dsa" \ - "no-dtls" \ - "no-dynamic-engine" \ - "no-ec" \ - "no-ec2m" \ - "no-ecdh" \ - "no-ecdsa" \ - "no-ec_nistp_64_gcc_128" \ - "no-egd" \ - "no-engine" \ - "no-err" \ - "no-external-tests" \ - "no-filenames" \ - "no-fuzz-libfuzzer" \ - "no-fuzz-afl" \ - "no-gost" \ - "no-heartbeats" \ - "no-idea" \ - "no-makedepend" \ - "no-md2" \ - "no-md4" \ - "no-mdc2" \ - "no-msan" \ - "no-multiblock" \ - "no-nextprotoneg" \ - "no-pinshared" \ - "no-ocb" \ - "no-ocsp" \ - "no-pic" \ - "no-poly1305" \ - "no-posix-io" \ - "no-psk" \ - "no-rc2" \ - "no-rc4" \ - "no-rc5" \ - "no-rfc3779" \ - "no-rmd160" \ - "no-scrypt" \ - "no-sctp" \ - "no-shared" \ - "no-siphash" \ - "no-sm2" \ - "no-sm3" \ - "no-sm4" \ - "no-sock" \ - "no-srp" \ - "no-srtp" \ - "no-sse2" \ - "no-ssl" \ - "no-ssl-trace" \ - "no-static-engine" \ - "no-stdio" \ - "no-tests" \ - "no-tls" \ - "no-ts" \ - "no-ubsan" \ - "no-ui-console" \ - "no-unit-test" \ - "no-whirlpool" \ - "no-weak-ssl-ciphers" \ - "no-zlib" \ - "no-zlib-dynamic" \ - ) - - DEFAULT_FLAGS=(\ - "no-asm" \ - "no-ssl3" \ - "no-comp" \ - "no-hw" \ - "no-engine" \ - "no-async" \ - ) - - ADDITIONAL_FLAGS=$DEFAULT_FLAGS - - ./Configure $PLATFORM "-arch $ARCH" ${ADDITIONAL_FLAGS[@]} --prefix=${TMP_DIR}/${ARCH} || exit 1 - - make && make install_sw || exit 2 - unset CROSS_TOP - unset CROSS_SDK - - cd "$DIR" -} - -patch "$SOURCE_DIR/Configurations/10-main.conf" < patch-conf.patch || exit 1 - -if [ "$ARCH" == "x86_64" ]; then - build_for ios64sim-cross x86_64 SIM || exit 2 -elif [ "$ARCH" == "armv7" ]; then - build_for ios-cross armv7 IOS || exit 4 -elif [ "$ARCH" == "arm64" ]; then - build_for ios64-cross arm64 IOS || exit 5 -else - echo "Invalid architecture $ARCH" - exit 1 -fi - -cp -r "${TMP_DIR}/$ARCH/include" "${TMP_DIR}/" -patch -p3 "${TMP_DIR}/include/openssl/opensslconf.h" < patch-include.patch - -DFT_DIST_DIR="$OUT_DIR/out" -rm -rf "$DFT_DIST_DIR" -mkdir -p "$DFT_DIST_DIR" - -DIST_DIR="${DIST_DIR:-$DFT_DIST_DIR}" -mkdir -p "${DIST_DIR}" -cp -r "${TMP_DIR}/include" "${TMP_DIR}/$ARCH/lib" "${DIST_DIR}" \ No newline at end of file diff --git a/submodules/rlottie/BUCK b/submodules/rlottie/BUCK deleted file mode 100644 index 6a595b8462..0000000000 --- a/submodules/rlottie/BUCK +++ /dev/null @@ -1,35 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -public_headers = glob([ - "PublicHeaders/**/*.h", -]) - -static_library( - name = "RLottieBinding", - srcs = glob([ - "rlottie/src/**/*.cpp", - ], exclude = [ - "rlottie/src/vector/vdrawhelper_neon.cpp", - "rlottie/src/vector/stb/**/*", - ]) + [ - "LottieInstance.mm" - ], - compiler_flags = [ - "-Dpixman_region_selfcheck(x)=1", - "-DLOTTIE_DISABLE_ARM_NEON=1", - "-DLOTTIE_IMAGE_MODULE_DISABLED=1", - ], - headers = glob([ - "rlottie/src/**/*.h", - "rlottie/inc/**/*.h", - ], exclude = [ - "rlottie/src/lottie/rapidjson/msinttypes/**/*", - ]) + [ - "config.h", - ] + public_headers, - exported_headers = public_headers, - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], -) diff --git a/submodules/sqlcipher/BUCK b/submodules/sqlcipher/BUCK deleted file mode 100644 index 8411d124e2..0000000000 --- a/submodules/sqlcipher/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -static_library( - name = "sqlcipher", - compiler_flags = [ - "-DDSQLITE_HAS_CODEC=1", - "-DSQLCIPHER_CRYPTO_CC=1", - "-DSQLITE_ENABLE_FTS5", - "-DSQLITE_DEFAULT_MEMSTATUS=0", - "-DNDEBUG", - ], - srcs = glob([ - "Sources/*.c", - ]), - headers = glob([ - "Sources/*.h", - ]), - exported_headers = glob([ - "PublicHeaders/**/*.h", - ]), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) diff --git a/submodules/webp/BUCK b/submodules/webp/BUCK deleted file mode 100644 index afd63155da..0000000000 --- a/submodules/webp/BUCK +++ /dev/null @@ -1,26 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library", "framework") - -genrule( - name = "WebP_lib_file", - srcs = [ - "lib/libwebp.a", - ], - bash = "mkdir -p $OUT; cp $SRCS $OUT/", - out = "WebP_libs", - visibility = ["PUBLIC"] -) - -apple_library( - name = "webp", - header_namespace = "webp", - exported_headers = { - "webp/encode.h": "include/webp/encode.h", - "webp/decode.h": "include/webp/decode.h", - "webp/types.h": "include/webp/types.h", - }, - exported_linker_flags = [ - "-lwebp", - "-L$(location :WebP_lib_file)", - ], - visibility = ["PUBLIC"], -) diff --git a/third-party/BUCK b/third-party/BUCK deleted file mode 100644 index c2e30f374b..0000000000 --- a/third-party/BUCK +++ /dev/null @@ -1,8 +0,0 @@ - -filegroup( - name = "depot_tools_sources", - srcs = glob([ - "depot_tools/**/*" - ]), - visibility = ["PUBLIC"], -) diff --git a/third-party/mozjpeg/BUCK b/third-party/mozjpeg/BUCK deleted file mode 100644 index 379603ce42..0000000000 --- a/third-party/mozjpeg/BUCK +++ /dev/null @@ -1,108 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library", "gen_header_targets", "merge_maps") - -headers = [ - "mozjpeg/turbojpeg.h", - "mozjpeg/jpeglib.h", - "mozjpeg/jmorecfg.h", - "mozjpeg/jconfig.h", -] - -libs = [ - "jpeg", - "turbojpeg" -] - -genrule( - name = "libmozjpeg_build", - srcs = glob([ - "mozjpeg/**/*", - ], exclude = ["mozjpeg/**/.*"]) + [ - "build-mozjpeg-buck.sh", - ], - bash = - """ - set -ex - - mkdir -p "$OUT" - mkdir -p "$OUT/Public/mozjpeg" - mkdir -p "$OUT/Public/lib" - - CMAKE_DIR="$(location //third-party/cmake:cmake)/cmake-3.16.0" - - BUILD_ARCH="arm64" - - BUILD_DIR="$OUT/$BUILD_ARCH" - rm -rf "$BUILD_DIR" - mkdir -p "$BUILD_DIR" - - cp "$SRCDIR/build-mozjpeg-buck.sh" "$BUILD_DIR/" - - cp -R "$SRCDIR/mozjpeg" "$BUILD_DIR/" - - mkdir -p "$BUILD_DIR/Public/mozjpeg" - - PATH="$PATH:$CMAKE_DIR/bin" sh $BUILD_DIR/build-mozjpeg-buck.sh $BUILD_ARCH "$BUILD_DIR/mozjpeg" "$BUILD_DIR" - - cp $BUILD_DIR/mozjpeg/turbojpeg.h "$OUT/Public/mozjpeg/" - cp $BUILD_DIR/mozjpeg/jpeglib.h "$OUT/Public/mozjpeg/" - cp $BUILD_DIR/mozjpeg/jmorecfg.h "$OUT/Public/mozjpeg/" - cp $BUILD_DIR/build/jconfig.h "$OUT/Public/mozjpeg/" - - BUILD_ARCH="armv7" - - BUILD_DIR="$OUT/$BUILD_ARCH" - rm -rf "$BUILD_DIR" - mkdir -p "$BUILD_DIR" - - cp "$SRCDIR/build-mozjpeg-buck.sh" "$BUILD_DIR/" - - cp -R "$SRCDIR/mozjpeg" "$BUILD_DIR/" - - mkdir -p "$BUILD_DIR/Public/mozjpeg" - - PATH="$PATH:$CMAKE_DIR/bin" sh $BUILD_DIR/build-mozjpeg-buck.sh $BUILD_ARCH "$BUILD_DIR/mozjpeg" "$BUILD_DIR" - - lipo -create $OUT/arm64/build/libjpeg.a $OUT/armv7/build/libjpeg.a -output $OUT/Public/lib/libjpeg.a - lipo -create $OUT/arm64/build/libturbojpeg.a $OUT/armv7/build/libturbojpeg.a -output $OUT/Public/lib/libturbojpeg.a - """, - out = "libmozjpeg", - visibility = [ - "PUBLIC", - ] -) - -mozjpeg_header_targets = gen_header_targets(headers, "libmozjpeg_header_", "", "libmozjpeg_build", "Public") - -apple_library( - name = "mozjpeg_lib", - exported_headers = mozjpeg_header_targets, - visibility = [ - "//third-party/mozjpeg:mozjpeg" - ], - header_namespace = "mozjpeg", - linker_flags = [ - "-L$(location :libmozjpeg_build)/Public/lib", - "-ljpeg", - "-lturbojpeg", - ], - exported_linker_flags = [ - "-L$(location :libmozjpeg_build)/Public/lib", - "-ljpeg", - "-lturbojpeg", - ], - deps = [ - ":libmozjpeg_build", - ], -) - -static_library( - name = "mozjpeg", - exported_headers = mozjpeg_header_targets, - deps = [ - ":libmozjpeg_build", - ":mozjpeg_lib", - ], - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], -) \ No newline at end of file diff --git a/third-party/mozjpeg/build-mozjpeg-buck.sh b/third-party/mozjpeg/build-mozjpeg-buck.sh deleted file mode 100755 index 94a9966479..0000000000 --- a/third-party/mozjpeg/build-mozjpeg-buck.sh +++ /dev/null @@ -1,62 +0,0 @@ -#! /bin/sh - -set -e - -ARCH="$1" - -SOURCE_DIR="$2" -BUILD_DIR=$(echo "$(cd "$(dirname "$3")"; pwd -P)/$(basename "$3")") - -if [ "$ARCH" = "armv7" ]; then - IOS_PLATFORMDIR="$(xcode-select -p)/Platforms/iPhoneOS.platform" - IOS_SYSROOT=($IOS_PLATFORMDIR/Developer/SDKs/iPhoneOS*.sdk) - export CFLAGS="-mfloat-abi=softfp -arch armv7 -miphoneos-version-min=9.0" - export ASMFLAGS="-no-integrated-as" - - cd "$BUILD_DIR" - mkdir build - cd build - - touch toolchain.cmake - echo "set(CMAKE_SYSTEM_NAME Darwin)" >> toolchain.cmake - echo "set(CMAKE_SYSTEM_PROCESSOR arm)" >> toolchain.cmake - echo "set(CMAKE_C_COMPILER $(xcode-select -p)/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang)" >> toolchain.cmake - - cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake -DCMAKE_OSX_SYSROOT=${IOS_SYSROOT[0]} -DPNG_SUPPORTED=FALSE -DENABLE_SHARED=FALSE -DWITH_JPEG8=1 ../mozjpeg - make -elif [ "$ARCH" = "arm64" ]; then - IOS_PLATFORMDIR="$(xcode-select -p)/Platforms/iPhoneOS.platform" - IOS_SYSROOT=($IOS_PLATFORMDIR/Developer/SDKs/iPhoneOS*.sdk) - export CFLAGS="-Wall -arch arm64 -miphoneos-version-min=9.0 -funwind-tables" - - cd "$BUILD_DIR" - mkdir build - cd build - - touch toolchain.cmake - echo "set(CMAKE_SYSTEM_NAME Darwin)" >> toolchain.cmake - echo "set(CMAKE_SYSTEM_PROCESSOR aarch64)" >> toolchain.cmake - echo "set(CMAKE_C_COMPILER $(xcode-select -p)/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang)" >> toolchain.cmake - - cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake -DCMAKE_OSX_SYSROOT=${IOS_SYSROOT[0]} -DPNG_SUPPORTED=FALSE -DENABLE_SHARED=FALSE -DWITH_JPEG8=1 ../mozjpeg - make -elif [ "$ARCH" = "x86_64" ]; then - IOS_PLATFORMDIR="$(xcode-select -p)/Platforms/iPhoneSimulator.platform" - IOS_SYSROOT=($IOS_PLATFORMDIR/Developer/SDKs/iPhoneSimulator*.sdk) - export CFLAGS="-Wall -arch x86_64 -miphoneos-version-min=9.0 -funwind-tables" - - cd "$BUILD_DIR" - mkdir build - cd build - - touch toolchain.cmake - echo "set(CMAKE_SYSTEM_NAME Darwin)" >> toolchain.cmake - echo "set(CMAKE_SYSTEM_PROCESSOR AMD64)" >> toolchain.cmake - echo "set(CMAKE_C_COMPILER $(xcode-select -p)/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang)" >> toolchain.cmake - - cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake -DCMAKE_OSX_SYSROOT=${IOS_SYSROOT[0]} -DPNG_SUPPORTED=FALSE -DENABLE_SHARED=FALSE -DWITH_JPEG8=1 ../mozjpeg - make -else - echo "Unsupported architecture $ARCH" - exit 1 -fi diff --git a/third-party/webrtc/BUCK b/third-party/webrtc/BUCK deleted file mode 100644 index 6762598ed0..0000000000 --- a/third-party/webrtc/BUCK +++ /dev/null @@ -1,84 +0,0 @@ -load("//Config:buck_rule_macros.bzl", "static_library") - -webrtc_lib_flags = [ - "-lframework_objc_static" -] - -genrule( - name = "webrtc_build", - srcs = [ - "build-webrtc-buck.sh", - "webrtc-ios", - ], - bash = -""" - set -x - echo "SRCDIR=$SRCDIR" - - BUILD_ARCH=arm64 - - BUILD_DIR_ARM64="$SRCDIR/$BUILD_ARCH" - - BUILD_DIR="$BUILD_DIR_ARM64" - rm -rf "$BUILD_DIR" - mkdir -p "$BUILD_DIR" - - mkdir -p "$BUILD_DIR/webrtc-ios" - cp -R "$SRCDIR/webrtc-ios/src" "$BUILD_DIR/webrtc-ios/src" - - DEPOT_TOOLS_PATH="$(location //third-party:depot_tools_sources)" - - rm -rf "$BUILD_DIR/depot_tools" - cp -R "$DEPOT_TOOLS_PATH" "$BUILD_DIR/" - - rm -rf "$BUILD_DIR/openssl" - cp -R "$(location //submodules/openssl:openssl_build_merged)" "$BUILD_DIR/openssl/" - cp -R "$(location //submodules/openssl:openssl_libssl_merged)" "$BUILD_DIR/libssl/" - - sh $SRCDIR/build-webrtc-buck.sh "$BUILD_DIR" $BUILD_ARCH - - BUILD_ARCH=arm - - BUILD_DIR_ARMV7="$SRCDIR/$BUILD_ARCH" - - BUILD_DIR="$BUILD_DIR_ARMV7" - - rm -rf "$BUILD_DIR" - mkdir -p "$BUILD_DIR" - - mkdir -p "$BUILD_DIR/webrtc-ios" - cp -R "$SRCDIR/webrtc-ios/src" "$BUILD_DIR/webrtc-ios/src" - - DEPOT_TOOLS_PATH="$(location //third-party:depot_tools_sources)" - - rm -rf "$BUILD_DIR/depot_tools" - cp -R "$DEPOT_TOOLS_PATH" "$BUILD_DIR/" - - rm -rf "$BUILD_DIR/openssl" - cp -R "$(location //submodules/openssl:openssl_build_merged)" "$BUILD_DIR/openssl/" - cp -R "$(location //submodules/openssl:openssl_libssl_merged)" "$BUILD_DIR/libssl/" - - sh $SRCDIR/build-webrtc-buck.sh "$BUILD_DIR" $BUILD_ARCH - - mkdir -p "$OUT" - lipo -create "$BUILD_DIR_ARMV7/webrtc-ios/src/out/ios/obj/sdk/libframework_objc_static.a" "$BUILD_DIR_ARM64/webrtc-ios/src/out/ios_64/obj/sdk/libframework_objc_static.a" -output "$OUT/libframework_objc_static.a" -""", - out = "libwebrtc", - visibility = ["PUBLIC"] -) - -apple_library( - name = "webrtc_lib", - visibility = [ - "PUBLIC", - ], - linker_flags = [ - "-L$(location :webrtc_build)", - ] + webrtc_lib_flags, - exported_linker_flags = [ - "-L$(location :webrtc_build)", - ] + webrtc_lib_flags, - deps = [ - ":webrtc_build" - ], -) diff --git a/third-party/webrtc/build-webrtc-buck.sh b/third-party/webrtc/build-webrtc-buck.sh deleted file mode 100755 index f1c895666d..0000000000 --- a/third-party/webrtc/build-webrtc-buck.sh +++ /dev/null @@ -1,33 +0,0 @@ -#/bin/sh - -set -x -set -e - -BUILD_DIR="$1" -ARCH="$2" - -echo "BUILD_DIR=$BUILD_DIR" -echo "ARCH=$ARCH" - -export PATH="$PATH:$BUILD_DIR/depot_tools_sources/depot_tools" - -rm -rf "$BUILD_DIR/webrtc-ios/src/openssl" -cp -R "$BUILD_DIR/openssl" "$BUILD_DIR/webrtc-ios/src/" -cp -R "$BUILD_DIR/libssl" "$BUILD_DIR/webrtc-ios/src/" - -pushd "$BUILD_DIR/webrtc-ios/src" - -mv openssl/lib/libcrypto.a openssl/ -mv libssl/lib/libssl.a openssl/ - -OUT_DIR="ios" -if [ "$ARCH" == "arm64" ]; then - OUT_DIR="ios_64" -elif [ "$ARCH" == "x64" ]; then - OUT_DIR="ios_sim" -fi - -buildtools/mac/gn gen out/$OUT_DIR --args="use_xcode_clang=true "" target_cpu=\"$ARCH\""' target_os="ios" is_debug=false is_component_build=false rtc_include_tests=false use_rtti=true rtc_use_x11=false use_custom_libcxx=false use_custom_libcxx_for_host=false rtc_build_ssl=false rtc_build_examples=false rtc_build_tools=false ios_deployment_target="9.0" ios_enable_code_signing=false is_unsafe_developer_build=false rtc_enable_protobuf=false rtc_include_builtin_video_codecs=true rtc_build_libvpx=true rtc_libvpx_build_vp9=true rtc_use_gtk=false rtc_use_metal_rendering=true' -ninja -C out/$OUT_DIR framework_objc_static - -popd diff --git a/third-party/yasm/BUCK b/third-party/yasm/BUCK deleted file mode 100644 index eade17fbf2..0000000000 --- a/third-party/yasm/BUCK +++ /dev/null @@ -1,24 +0,0 @@ - -genrule( - name = "yasm", - srcs = [ - "yasm-1.3.0.tar.gz", - ], - bash = -""" - core_count="`sysctl -n hw.logicalcpu`" - mkdir -p "$OUT" - tar -xzf "$SRCDIR/yasm-1.3.0.tar.gz" --directory "$OUT" - pushd "$OUT/yasm-1.3.0" - mkdir build - cd build - export PATH=\"$PATH:$(location //third-party/cmake:cmake)/cmake-3.16.0/bin\" - cmake .. -DYASM_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF - make -j $core_count - popd -""", - out = "yasm", - visibility = [ - "PUBLIC", - ] -) diff --git a/tools/buck-build/buck-2be0e8fa79117daa854e79dd7d9ce32048d506a8.patch b/tools/buck-build/buck-2be0e8fa79117daa854e79dd7d9ce32048d506a8.patch deleted file mode 100644 index fe6ee40c41..0000000000 --- a/tools/buck-build/buck-2be0e8fa79117daa854e79dd7d9ce32048d506a8.patch +++ /dev/null @@ -1,157 +0,0 @@ -diff --git a/.gitignore b/.gitignore -index 78ce658b9a..30c0369ab7 100644 ---- a/.gitignore -+++ b/.gitignore -@@ -3,6 +3,7 @@ - - # IntelliJ build - /intellij-out/ -+/.idea/ - - # Buck - /buck-out -diff --git a/.idea/modules.xml b/.idea/modules.xml -deleted file mode 100644 -index 7ff823b554..0000000000 ---- a/.idea/modules.xml -+++ /dev/null -@@ -1,16 +0,0 @@ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -\ No newline at end of file -diff --git a/src/com/facebook/buck/apple/AppleBundle.java b/src/com/facebook/buck/apple/AppleBundle.java -index d895ab9a79..ad42beb302 100644 ---- a/src/com/facebook/buck/apple/AppleBundle.java -+++ b/src/com/facebook/buck/apple/AppleBundle.java -@@ -992,7 +992,11 @@ public class AppleBundle extends AbstractBuildRuleWithDeclaredAndExtraDeps - keys.put("DTPlatformName", new NSString(platform.getName())); - keys.put("DTPlatformVersion", new NSString(sdkVersion)); - keys.put("DTSDKName", new NSString(sdkName + sdkVersion)); -- keys.put("MinimumOSVersion", new NSString(minOSVersion)); -+ if (infoPlistSubstitutions.containsKey("MinimumOSVersion")) { -+ keys.put("MinimumOSVersion", new NSString(infoPlistSubstitutions.get("MinimumOSVersion"))); -+ } else { -+ keys.put("MinimumOSVersion", new NSString(minOSVersion)); -+ } - if (platformBuildVersion.isPresent()) { - keys.put("DTPlatformBuild", new NSString(platformBuildVersion.get())); - keys.put("DTSDKBuild", new NSString(platformBuildVersion.get())); -@@ -1185,9 +1189,10 @@ public class AppleBundle extends AbstractBuildRuleWithDeclaredAndExtraDeps - - // .framework bundles will be code-signed when they're copied into the containing bundle. - private boolean needCodeSign() { -- return binary.isPresent() -+ return false; -+ /*return binary.isPresent() - && ApplePlatform.needsCodeSign(platform.getName()) -- && !extension.equals(FRAMEWORK_EXTENSION); -+ && !extension.equals(FRAMEWORK_EXTENSION);*/ - } - - @Override -diff --git a/src/com/facebook/buck/apple/MultiarchFileInfos.java b/src/com/facebook/buck/apple/MultiarchFileInfos.java -index c078b2e134..030f9fc289 100644 ---- a/src/com/facebook/buck/apple/MultiarchFileInfos.java -+++ b/src/com/facebook/buck/apple/MultiarchFileInfos.java -@@ -177,7 +177,12 @@ public class MultiarchFileInfos { - cxxBuckConfig.shouldCacheLinks(), - BuildTargetPaths.getGenPath( - projectFilesystem, buildTarget, multiarchOutputPathFormat)); -- graphBuilder.addToIndex(multiarchFile); -+ Optional existingRule2 = graphBuilder.getRuleOptional(multiarchFile.getBuildTarget()); -+ if (existingRule2.isPresent()) { -+ return existingRule2.get(); -+ } else { -+ graphBuilder.addToIndex(multiarchFile); -+ } - return multiarchFile; - } else { - return new NoopBuildRule(buildTarget, projectFilesystem); -diff --git a/src/com/facebook/buck/features/apple/project/ProjectGenerator.java b/src/com/facebook/buck/features/apple/project/ProjectGenerator.java -index 8db968b982..b10f793d8e 100644 ---- a/src/com/facebook/buck/features/apple/project/ProjectGenerator.java -+++ b/src/com/facebook/buck/features/apple/project/ProjectGenerator.java -@@ -825,6 +825,7 @@ public class ProjectGenerator { - Optional.of(xcodeDescriptions.getXCodeDescriptions())); - if (bundleRequiresRemovalOfAllTransitiveFrameworks(targetNode)) { - copiedRules = rulesWithoutFrameworkBundles(copiedRules); -+ copiedRules = rulesWithoutDylibs(copiedRules); - } else if (bundleRequiresAllTransitiveFrameworks(binaryNode, bundleLoaderNode)) { - copiedRules = - ImmutableSet.>builder() -@@ -954,6 +955,22 @@ public class ProjectGenerator { - .toImmutableList(); - } - -+ private ImmutableList> rulesWithoutDylibs( -+ Iterable> copiedRules) { -+ return RichStream.from(copiedRules) -+ .filter( -+ input -> -+ TargetNodes.castArg(input, AppleLibraryDescriptionArg.class) -+ .map(argTargetNode -> { -+ if (argTargetNode.getBuildTarget().getFlavors().contains(CxxDescriptionEnhancer.SHARED_FLAVOR)) { -+ return false; -+ } -+ return true; -+ }) -+ .orElse(true)) -+ .toImmutableList(); -+ } -+ - private ImmutableList> rulesWithoutBundleLoader( - Iterable> copiedRules, TargetNode bundleLoader) { - return RichStream.from(copiedRules).filter(x -> !bundleLoader.equals(x)).toImmutableList(); -@@ -2316,8 +2333,9 @@ public class ProjectGenerator { - .transform( - bundleExtension -> { - switch (bundleExtension) { -- case APP: - case APPEX: -+ return false; -+ case APP: - case PLUGIN: - case BUNDLE: - case XCTEST: -@@ -2515,7 +2533,7 @@ public class ProjectGenerator { - - librarySearchPaths.add("$DT_TOOLCHAIN_DIR/usr/lib/swift/$PLATFORM_NAME"); - if (options.shouldLinkSystemSwift()) { -- librarySearchPaths.add("$DT_TOOLCHAIN_DIR/usr/lib/swift-5.0/$PLATFORM_NAME"); -+ //librarySearchPaths.add("$DT_TOOLCHAIN_DIR/usr/lib/swift-5.0/$PLATFORM_NAME"); - } - } - -@@ -3444,7 +3462,7 @@ public class ProjectGenerator { - - PBXFileReference fileReference = getLibraryFileReference(targetNode); - PBXBuildFile buildFile = new PBXBuildFile(fileReference); -- if (fileReference.getExplicitFileType().equals(Optional.of("wrapper.framework"))) { -+ if (fileReference.getExplicitFileType().equals(Optional.of("wrapper.framework")) || fileReference.getExplicitFileType().equals(Optional.of("compiled.mach-o.dylib"))) { - UnflavoredBuildTargetView buildTarget = - targetNode.getBuildTarget().getUnflavoredBuildTarget(); - if (frameworkTargets.contains(buildTarget)) { -@@ -4696,6 +4714,9 @@ public class ProjectGenerator { - - private static boolean bundleRequiresRemovalOfAllTransitiveFrameworks( - TargetNode targetNode) { -+ if (targetNode.getConstructorArg().getXcodeProductType().equals(Optional.of("com.apple.product-type.app-extension"))) { -+ return true; -+ } - return isFrameworkBundle(targetNode.getConstructorArg()); - } - diff --git a/tools/buck-build/prepare_buck_source.sh b/tools/buck-build/prepare_buck_source.sh deleted file mode 100644 index 1b8db8da32..0000000000 --- a/tools/buck-build/prepare_buck_source.sh +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/bash - -set -x -set -e - -target_directory="$1" - -if [ -z "$target_directory" ]; then - echo "Usage: sh prepare_buck_source.sh path/to/target/directory" - exit 1 -fi - -mkdir -p "$target_directory" - -jdk_archive_name="jdk.tar.gz" -jdk_archive_path="$target_directory/$jdk_archive_name" -jdk_unpacked_path="$target_directory/jdk8u232-b09" -jdk_url="https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u232-b09/OpenJDK8U-jdk_x64_mac_hotspot_8u232b09.tar.gz" - -if [ ! -f "$jdk_archive_path" ]; then - echo "Fetching JDK 8" - curl "$jdk_url" -L -o "$target_directory/jdk.tar.gz" -fi - -if [ ! -d "$jdk_unpacked_path" ]; then - echo "Unpacking JDK 8" - pushd "$target_directory" - tar -xf "$jdk_archive_name" - popd -fi - -patch_file="$(ls *.patch | head -1)" -patch_path="$(pwd)/$patch_file" - -if [ -z "$patch_file" ]; then - echo "There should be a patch-COMMIT_SHA.patch in the current directory" - exit 1 -fi - -commit_sha="$(echo "$patch_file" | sed -e 's/buck-//g' | sed -e 's/\.patch//g')" - -echo "Fetching commit $commit_sha" - -dir="$(pwd)" -cd "$target_directory" - -if [ ! -d "buck" ]; then - git clone "https://github.com/facebook/buck.git" -fi - -cd "buck" - -git reset --hard -git reset --hard "$commit_sha" - -git apply --check "$patch_path" -git apply "$patch_path" - -PATH="$PATH:$jdk_unpacked_path/Contents/Home/bin" ant -PATH="$PATH:$jdk_unpacked_path/Contents/Home/bin" ./bin/buck build --show-output buck - -cd "$dir" diff --git a/versions.json b/versions.json new file mode 100644 index 0000000000..a99715704d --- /dev/null +++ b/versions.json @@ -0,0 +1,5 @@ +{ + "app": "7.3.1", + "bazel": "3.7.0", + "xcode": "12.3" +}