mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-11-03 06:14:14 +01:00
Ghostgram for iOS, rebuilt from scratch on Telegram iOS 13.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
69 lines
2.1 KiB
Python
69 lines
2.1 KiB
Python
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
|
|
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_unit_test")
|
|
load("@build_bazel_rules_apple//apple/testing/default_runner:ios_test_runner.bzl", "ios_test_runner")
|
|
|
|
swift_library(
|
|
name = "TextFormat",
|
|
module_name = "TextFormat",
|
|
srcs = glob([
|
|
"Sources/**/*.swift",
|
|
]),
|
|
copts = [
|
|
"-warnings-as-errors",
|
|
],
|
|
deps = [
|
|
# GHOST: appearance snapshot (seconds in message times)
|
|
"//Ghostgram/Features/Appearance:GGAppearanceSettings",
|
|
"//submodules/SSignalKit/SwiftSignalKit",
|
|
"//submodules/TelegramCore:TelegramCore",
|
|
"//submodules/Display:Display",
|
|
"//submodules/TelegramPresentationData:TelegramPresentationData",
|
|
"//submodules/Markdown:Markdown",
|
|
"//submodules/Emoji:Emoji",
|
|
"//third-party/libprisma",
|
|
],
|
|
visibility = [
|
|
"//visibility:public",
|
|
],
|
|
)
|
|
|
|
swift_library(
|
|
name = "TextFormatTestsLib",
|
|
testonly = True,
|
|
srcs = glob([
|
|
"Tests/**/*.swift",
|
|
]),
|
|
deps = [
|
|
":TextFormat",
|
|
"//submodules/TelegramCore:TelegramCore",
|
|
"//submodules/TelegramPresentationData:TelegramPresentationData",
|
|
"//submodules/Postbox:Postbox",
|
|
# Needed by ReplyMarkupButtonActionTests to construct Api.ButtonType /
|
|
# Api.InlineButtonType values for the shared action mappers.
|
|
"//submodules/TelegramApi:TelegramApi",
|
|
# Needed by the FlatBuffers round-trip tests: the flatc-generated
|
|
# TelegramCore_* types live in the FlatSerialization module.
|
|
"//submodules/TelegramCore/FlatSerialization",
|
|
# Needed by SpoilerStrikethroughLayoutTests: TextNode's layout.
|
|
"//submodules/Display:Display",
|
|
],
|
|
)
|
|
|
|
ios_test_runner(
|
|
name = "TextFormatTestRunner",
|
|
device_type = "iPhone 17",
|
|
os_version = "26.5",
|
|
)
|
|
|
|
ios_unit_test(
|
|
name = "TextFormatTests",
|
|
minimum_os_version = "15.0",
|
|
runner = ":TextFormatTestRunner",
|
|
deps = [
|
|
":TextFormatTestsLib",
|
|
],
|
|
visibility = [
|
|
"//visibility:public",
|
|
],
|
|
)
|