mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
107 lines
3.7 KiB
Python
107 lines
3.7 KiB
Python
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
|
|
load(
|
|
"@build_bazel_rules_apple//apple:resources.bzl",
|
|
"apple_resource_bundle",
|
|
"apple_resource_group",
|
|
)
|
|
load("//build-system/bazel-utils:plist_fragment.bzl",
|
|
"plist_fragment",
|
|
)
|
|
|
|
filegroup(
|
|
name = "PremiumUIMetalResources",
|
|
srcs = glob([
|
|
"MetalResources/**/*.*",
|
|
]),
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
plist_fragment(
|
|
name = "PremiumUIBundleInfoPlist",
|
|
extension = "plist",
|
|
template =
|
|
"""
|
|
<key>CFBundleIdentifier</key>
|
|
<string>org.telegram.PremiumUI</string>
|
|
<key>CFBundleDevelopmentRegion</key>
|
|
<string>en</string>
|
|
<key>CFBundleName</key>
|
|
<string>PremiumUI</string>
|
|
"""
|
|
)
|
|
|
|
apple_resource_bundle(
|
|
name = "PremiumUIBundle",
|
|
infoplists = [
|
|
":PremiumUIBundleInfoPlist",
|
|
],
|
|
resources = [
|
|
":PremiumUIMetalResources",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "PremiumUIResources",
|
|
srcs = glob([
|
|
"Resources/**/*",
|
|
], exclude = ["Resources/**/.*"]),
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
swift_library(
|
|
name = "PremiumUI",
|
|
module_name = "PremiumUI",
|
|
srcs = glob([
|
|
"Sources/**/*.swift",
|
|
]),
|
|
copts = [
|
|
"-warnings-as-errors",
|
|
],
|
|
data = [
|
|
":PremiumUIBundle",
|
|
],
|
|
deps = [
|
|
"//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit",
|
|
"//submodules/AsyncDisplayKit:AsyncDisplayKit",
|
|
"//submodules/Display:Display",
|
|
"//submodules/Postbox:Postbox",
|
|
"//submodules/TelegramCore:TelegramCore",
|
|
"//submodules/TelegramPresentationData:TelegramPresentationData",
|
|
"//submodules/TelegramUIPreferences:TelegramUIPreferences",
|
|
"//submodules/AccountContext:AccountContext",
|
|
"//submodules/TelegramStringFormatting:TelegramStringFormatting",
|
|
"//submodules/AppBundle:AppBundle",
|
|
"//submodules/AnimatedStickerNode:AnimatedStickerNode",
|
|
"//submodules/TelegramAnimatedStickerNode:TelegramAnimatedStickerNode",
|
|
"//submodules/SolidRoundedButtonNode:SolidRoundedButtonNode",
|
|
"//submodules/PresentationDataUtils:PresentationDataUtils",
|
|
"//submodules/ReactionSelectionNode:ReactionSelectionNode",
|
|
"//submodules/InAppPurchaseManager:InAppPurchaseManager",
|
|
"//submodules/ConfettiEffect:ConfettiEffect",
|
|
"//submodules/TextFormat:TextFormat",
|
|
"//submodules/GZip:GZip",
|
|
"//submodules/InstantPageCache:InstantPageCache",
|
|
"//submodules/MediaPlayer:UniversalMediaPlayer",
|
|
"//submodules/TelegramUniversalVideoContent:TelegramUniversalVideoContent",
|
|
"//submodules/RadialStatusNode:RadialStatusNode",
|
|
"//submodules/ShimmerEffect:ShimmerEffect",
|
|
"//submodules/LegacyComponents:LegacyComponents",
|
|
"//submodules/CheckNode:CheckNode",
|
|
"//submodules/ComponentFlow:ComponentFlow",
|
|
"//submodules/Components/ViewControllerComponent:ViewControllerComponent",
|
|
"//submodules/Components/MultilineTextComponent:MultilineTextComponent",
|
|
"//submodules/Components/MultilineTextWithEntitiesComponent:MultilineTextWithEntitiesComponent",
|
|
"//submodules/Components/SheetComponent:SheetComponent",
|
|
"//submodules/Components/BundleIconComponent:BundleIconComponent",
|
|
"//submodules/Components/SolidRoundedButtonComponent:SolidRoundedButtonComponent",
|
|
"//submodules/Components/BlurredBackgroundComponent:BlurredBackgroundComponent",
|
|
"//submodules/TelegramUI/Components/EmojiStatusComponent",
|
|
"//submodules/TelegramUI/Components/AnimationCache:AnimationCache",
|
|
"//submodules/TelegramUI/Components/MultiAnimationRenderer:MultiAnimationRenderer",
|
|
"//submodules/AttachmentUI:AttachmentUI",
|
|
],
|
|
visibility = [
|
|
"//visibility:public",
|
|
],
|
|
)
|