mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-05 14:02:48 +00:00
Merge branch 'beta'
This commit is contained in:
commit
387649a936
8
Makefile
8
Makefile
@ -59,6 +59,7 @@ BAZEL_COMMON_FLAGS=\
|
|||||||
--features=swift.use_global_module_cache \
|
--features=swift.use_global_module_cache \
|
||||||
--features=swift.split_derived_files_generation \
|
--features=swift.split_derived_files_generation \
|
||||||
--features=swift.skip_function_bodies_for_derived_files \
|
--features=swift.skip_function_bodies_for_derived_files \
|
||||||
|
--apple_bitcode=watchos=embedded \
|
||||||
--jobs=${CORE_COUNT}
|
--jobs=${CORE_COUNT}
|
||||||
|
|
||||||
BAZEL_DEBUG_FLAGS=\
|
BAZEL_DEBUG_FLAGS=\
|
||||||
@ -72,6 +73,7 @@ BAZEL_OPT_FLAGS=\
|
|||||||
--features=swift.opt_uses_wmo \
|
--features=swift.opt_uses_wmo \
|
||||||
--features=swift.opt_uses_osize \
|
--features=swift.opt_uses_osize \
|
||||||
--swiftcopt='-num-threads' --swiftcopt='0' \
|
--swiftcopt='-num-threads' --swiftcopt='0' \
|
||||||
|
--features=dead_strip \
|
||||||
--objc_enable_binary_stripping \
|
--objc_enable_binary_stripping \
|
||||||
|
|
||||||
|
|
||||||
@ -412,8 +414,6 @@ bazel_app_arm64:
|
|||||||
-c opt \
|
-c opt \
|
||||||
--ios_multi_cpus=arm64 \
|
--ios_multi_cpus=arm64 \
|
||||||
--watchos_cpus=armv7k,arm64_32 \
|
--watchos_cpus=armv7k,arm64_32 \
|
||||||
--objc_enable_binary_stripping=true \
|
|
||||||
--features=dead_strip \
|
|
||||||
--apple_generate_dsym \
|
--apple_generate_dsym \
|
||||||
--output_groups=+dsyms \
|
--output_groups=+dsyms \
|
||||||
--verbose_failures
|
--verbose_failures
|
||||||
@ -427,8 +427,6 @@ bazel_app_armv7:
|
|||||||
-c opt \
|
-c opt \
|
||||||
--ios_multi_cpus=armv7 \
|
--ios_multi_cpus=armv7 \
|
||||||
--watchos_cpus=armv7k,arm64_32 \
|
--watchos_cpus=armv7k,arm64_32 \
|
||||||
--objc_enable_binary_stripping=true \
|
|
||||||
--features=dead_strip \
|
|
||||||
--apple_generate_dsym \
|
--apple_generate_dsym \
|
||||||
--output_groups=+dsyms \
|
--output_groups=+dsyms \
|
||||||
--verbose_failures
|
--verbose_failures
|
||||||
@ -442,8 +440,6 @@ bazel_app:
|
|||||||
-c opt \
|
-c opt \
|
||||||
--ios_multi_cpus=armv7,arm64 \
|
--ios_multi_cpus=armv7,arm64 \
|
||||||
--watchos_cpus=armv7k,arm64_32 \
|
--watchos_cpus=armv7k,arm64_32 \
|
||||||
--objc_enable_binary_stripping=true \
|
|
||||||
--features=dead_strip \
|
|
||||||
--apple_generate_dsym \
|
--apple_generate_dsym \
|
||||||
--output_groups=+dsyms \
|
--output_groups=+dsyms \
|
||||||
--verbose_failures
|
--verbose_failures
|
||||||
|
|||||||
255
Telegram/BUILD
255
Telegram/BUILD
@ -130,6 +130,13 @@ filegroup(
|
|||||||
], exclude = ["Telegram-iOS/DefaultAppIcon.xcassets/**/.*"]),
|
], exclude = ["Telegram-iOS/DefaultAppIcon.xcassets/**/.*"]),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
filegroup(
|
||||||
|
name = "BlackAppIcon",
|
||||||
|
srcs = glob([
|
||||||
|
"Telegram-iOS/BlackIcon.xcassets/**/*",
|
||||||
|
], exclude = ["Telegram-iOS/BlackIcon.xcassets/**/.*"]),
|
||||||
|
)
|
||||||
|
|
||||||
filegroup(
|
filegroup(
|
||||||
name = "DefaultIcon",
|
name = "DefaultIcon",
|
||||||
srcs = glob([
|
srcs = glob([
|
||||||
@ -244,7 +251,7 @@ official_bundle_ids = [
|
|||||||
"org.telegram.Telegram-iOS",
|
"org.telegram.Telegram-iOS",
|
||||||
]
|
]
|
||||||
|
|
||||||
apple_pay_merchants = official_apple_pay_merchants if telegram_bundle_id == "ph.telegra.Telegraph" else ""
|
apple_pay_merchants = []#official_apple_pay_merchants if telegram_bundle_id == "ph.telegra.Telegraph" else ""
|
||||||
|
|
||||||
apple_pay_merchants_fragment = "" if apple_pay_merchants == "" else """
|
apple_pay_merchants_fragment = "" if apple_pay_merchants == "" else """
|
||||||
<key>com.apple.developer.in-app-payments</key>
|
<key>com.apple.developer.in-app-payments</key>
|
||||||
@ -286,6 +293,8 @@ telegram_entitlements_template = """
|
|||||||
</array>
|
</array>
|
||||||
<key>application-identifier</key>
|
<key>application-identifier</key>
|
||||||
<string>{telegram_team_id}.{telegram_bundle_id}</string>
|
<string>{telegram_team_id}.{telegram_bundle_id}</string>
|
||||||
|
<key>com.apple.developer.icloud-container-environment</key>
|
||||||
|
<string>Production</string>
|
||||||
""" + apple_pay_merchants_fragment + unrestricted_voip_fragment
|
""" + apple_pay_merchants_fragment + unrestricted_voip_fragment
|
||||||
|
|
||||||
plist_fragment(
|
plist_fragment(
|
||||||
@ -451,6 +460,8 @@ plist_fragment(
|
|||||||
</array>
|
</array>
|
||||||
<key>WKWatchKitApp</key>
|
<key>WKWatchKitApp</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
""".format(
|
""".format(
|
||||||
telegram_bundle_id = telegram_bundle_id,
|
telegram_bundle_id = telegram_bundle_id,
|
||||||
)
|
)
|
||||||
@ -523,6 +534,8 @@ plist_fragment(
|
|||||||
<string>MtProtoKit</string>
|
<string>MtProtoKit</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>{telegram_version}</string>
|
<string>{telegram_version}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>FMWK</string>
|
||||||
""".format(
|
""".format(
|
||||||
telegram_bundle_id = telegram_bundle_id,
|
telegram_bundle_id = telegram_bundle_id,
|
||||||
telegram_version = telegram_version,
|
telegram_version = telegram_version,
|
||||||
@ -564,6 +577,8 @@ plist_fragment(
|
|||||||
<string>SwiftSignalKit</string>
|
<string>SwiftSignalKit</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>{telegram_version}</string>
|
<string>{telegram_version}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>FMWK</string>
|
||||||
""".format(
|
""".format(
|
||||||
telegram_bundle_id = telegram_bundle_id,
|
telegram_bundle_id = telegram_bundle_id,
|
||||||
telegram_version = telegram_version,
|
telegram_version = telegram_version,
|
||||||
@ -605,6 +620,8 @@ plist_fragment(
|
|||||||
<string>Postbox</string>
|
<string>Postbox</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>{telegram_version}</string>
|
<string>{telegram_version}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>FMWK</string>
|
||||||
""".format(
|
""".format(
|
||||||
telegram_bundle_id = telegram_bundle_id,
|
telegram_bundle_id = telegram_bundle_id,
|
||||||
telegram_version = telegram_version,
|
telegram_version = telegram_version,
|
||||||
@ -649,6 +666,8 @@ plist_fragment(
|
|||||||
<string>TelegramApi</string>
|
<string>TelegramApi</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>{telegram_version}</string>
|
<string>{telegram_version}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>FMWK</string>
|
||||||
""".format(
|
""".format(
|
||||||
telegram_bundle_id = telegram_bundle_id,
|
telegram_bundle_id = telegram_bundle_id,
|
||||||
telegram_version = telegram_version,
|
telegram_version = telegram_version,
|
||||||
@ -690,6 +709,8 @@ plist_fragment(
|
|||||||
<string>SyncCore</string>
|
<string>SyncCore</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>{telegram_version}</string>
|
<string>{telegram_version}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>FMWK</string>
|
||||||
""".format(
|
""".format(
|
||||||
telegram_bundle_id = telegram_bundle_id,
|
telegram_bundle_id = telegram_bundle_id,
|
||||||
telegram_version = telegram_version,
|
telegram_version = telegram_version,
|
||||||
@ -735,6 +756,8 @@ plist_fragment(
|
|||||||
<string>TelegramCore</string>
|
<string>TelegramCore</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>{telegram_version}</string>
|
<string>{telegram_version}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>FMWK</string>
|
||||||
""".format(
|
""".format(
|
||||||
telegram_bundle_id = telegram_bundle_id,
|
telegram_bundle_id = telegram_bundle_id,
|
||||||
telegram_version = telegram_version,
|
telegram_version = telegram_version,
|
||||||
@ -783,6 +806,8 @@ plist_fragment(
|
|||||||
<string>AsyncDisplayKit</string>
|
<string>AsyncDisplayKit</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>{telegram_version}</string>
|
<string>{telegram_version}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>FMWK</string>
|
||||||
""".format(
|
""".format(
|
||||||
telegram_bundle_id = telegram_bundle_id,
|
telegram_bundle_id = telegram_bundle_id,
|
||||||
telegram_version = telegram_version,
|
telegram_version = telegram_version,
|
||||||
@ -824,6 +849,8 @@ plist_fragment(
|
|||||||
<string>Display</string>
|
<string>Display</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>{telegram_version}</string>
|
<string>{telegram_version}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>FMWK</string>
|
||||||
""".format(
|
""".format(
|
||||||
telegram_bundle_id = telegram_bundle_id,
|
telegram_bundle_id = telegram_bundle_id,
|
||||||
telegram_version = telegram_version,
|
telegram_version = telegram_version,
|
||||||
@ -847,6 +874,33 @@ genrule(
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
genrule(
|
||||||
|
name = "GenerateAddAlternateIcons",
|
||||||
|
srcs = [
|
||||||
|
"Telegram-iOS/AddAlternateIcons.sh",
|
||||||
|
],
|
||||||
|
cmd_bash =
|
||||||
|
"""
|
||||||
|
cat $(location Telegram-iOS/AddAlternateIcons.sh) >> $(location AddAlternateIcons.sh)
|
||||||
|
""",
|
||||||
|
outs = [
|
||||||
|
"AddAlternateIcons.sh",
|
||||||
|
],
|
||||||
|
executable = True,
|
||||||
|
visibility = [
|
||||||
|
"//visibility:public",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
sh_binary(
|
||||||
|
name = "AddAlternateIcons",
|
||||||
|
data = [
|
||||||
|
"Telegram-iOS/AlternateIcons.plist",
|
||||||
|
"Telegram-iOS/AlternateIcons-iPad.plist",
|
||||||
|
],
|
||||||
|
srcs = [":GenerateAddAlternateIcons"],
|
||||||
|
)
|
||||||
|
|
||||||
ios_framework(
|
ios_framework(
|
||||||
name = "DisplayFramework",
|
name = "DisplayFramework",
|
||||||
bundle_id = "{telegram_bundle_id}.Display".format(
|
bundle_id = "{telegram_bundle_id}.Display".format(
|
||||||
@ -885,6 +939,8 @@ plist_fragment(
|
|||||||
<string>TelegramUI</string>
|
<string>TelegramUI</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>{telegram_version}</string>
|
<string>{telegram_version}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>FMWK</string>
|
||||||
""".format(
|
""".format(
|
||||||
telegram_bundle_id = telegram_bundle_id,
|
telegram_bundle_id = telegram_bundle_id,
|
||||||
telegram_version = telegram_version,
|
telegram_version = telegram_version,
|
||||||
@ -1090,6 +1146,10 @@ plist_fragment(
|
|||||||
<key>NSExtensionPointIdentifier</key>
|
<key>NSExtensionPointIdentifier</key>
|
||||||
<string>com.apple.widgetkit-extension</string>
|
<string>com.apple.widgetkit-extension</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<key>UIRequiredDeviceCapabilities</key>
|
||||||
|
<array>
|
||||||
|
<string>arm64</string>
|
||||||
|
</array>
|
||||||
""".format(
|
""".format(
|
||||||
telegram_bundle_id = telegram_bundle_id,
|
telegram_bundle_id = telegram_bundle_id,
|
||||||
)
|
)
|
||||||
@ -1282,6 +1342,10 @@ plist_fragment(
|
|||||||
<string>{telegram_bundle_id}</string>
|
<string>{telegram_bundle_id}</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>Telegram</string>
|
<string>Telegram</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
<key>ITSAppUsesNonExemptEncryption</key>
|
<key>ITSAppUsesNonExemptEncryption</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>LSApplicationQueriesSchemes</key>
|
<key>LSApplicationQueriesSchemes</key>
|
||||||
@ -1429,191 +1493,6 @@ plist_fragment(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
plist_fragment(
|
|
||||||
name = "TelegramInfoIconsPlist",
|
|
||||||
extension = "plist",
|
|
||||||
template =
|
|
||||||
"""
|
|
||||||
<key>CFBundleIcons</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleAlternateIcons</key>
|
|
||||||
<dict>
|
|
||||||
<key>Black</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>BlackIcon</string>
|
|
||||||
<string>BlackNotificationIcon</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>BlackClassic</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>BlackClassicIcon</string>
|
|
||||||
<string>BlackClassicNotificationIcon</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>BlackFilled</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>BlackFilledIcon</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>Blue</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>BlueIcon</string>
|
|
||||||
<string>BlueNotificationIcon</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>BlueClassic</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>BlueClassicIcon</string>
|
|
||||||
<string>BlueClassicNotificationIcon</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>BlueFilled</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>BlueFilledIcon</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>WhiteFilled</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>WhiteFilledIcon</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<key>CFBundlePrimaryIcon</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>IconDefault-60</string>
|
|
||||||
<string>IconDefault-76</string>
|
|
||||||
<string>IconDefault-83.5</string>
|
|
||||||
<string>IconDefault-Small-40</string>
|
|
||||||
<string>IconDefault-Small</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<key>CFBundleIcons~ipad</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleAlternateIcons</key>
|
|
||||||
<dict>
|
|
||||||
<key>Black</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>BlackIconIpad</string>
|
|
||||||
<string>BlackIconLargeIpad</string>
|
|
||||||
<string>BlackNotificationIcon</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>BlackClassic</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>BlackClassicIconIpad</string>
|
|
||||||
<string>BlackClassicIconLargeIpad</string>
|
|
||||||
<string>BlackClassicNotificationIcon</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>BlackFilled</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>BlackFilledIconIpad</string>
|
|
||||||
<string>BlackFilledIconLargeIpad</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>Blue</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>BlueIconIpad</string>
|
|
||||||
<string>BlueIconLargeIpad</string>
|
|
||||||
<string>BlueNotificationIcon</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>BlueClassic</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>BlueClassicIconIpad</string>
|
|
||||||
<string>BlueClassicIconLargeIpad</string>
|
|
||||||
<string>BlueClassicNotificationIcon</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>BlueFilled</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>BlueFilledIconIpad</string>
|
|
||||||
<string>BlueFilledIconLargeIpad</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>WhiteFilled</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>WhiteFilledIcon</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<key>CFBundlePrimaryIcon</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>IconDefault-60</string>
|
|
||||||
<string>IconDefault-76</string>
|
|
||||||
<string>IconDefault-83.5</string>
|
|
||||||
<string>IconDefault-Small-40</string>
|
|
||||||
<string>IconDefault-Small</string>
|
|
||||||
</array>
|
|
||||||
<key>UIPrerenderedIcon</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
""")
|
|
||||||
|
|
||||||
ios_application(
|
ios_application(
|
||||||
name = "Telegram",
|
name = "Telegram",
|
||||||
bundle_id = "{telegram_bundle_id}".format(
|
bundle_id = "{telegram_bundle_id}".format(
|
||||||
@ -1626,9 +1505,11 @@ ios_application(
|
|||||||
infoplists = [
|
infoplists = [
|
||||||
":TelegramInfoPlist",
|
":TelegramInfoPlist",
|
||||||
":AdditionalInfoPlist",
|
":AdditionalInfoPlist",
|
||||||
":TelegramInfoIconsPlist",
|
|
||||||
],
|
],
|
||||||
|
ipa_post_processor = ":AddAlternateIcons",
|
||||||
resources = [
|
resources = [
|
||||||
|
":LaunchScreen",
|
||||||
|
":DefaultAppIcon",
|
||||||
":AdditionalIcons",
|
":AdditionalIcons",
|
||||||
],
|
],
|
||||||
frameworks = [
|
frameworks = [
|
||||||
|
|||||||
12
Telegram/Telegram-iOS/AddAlternateIcons.sh
Normal file
12
Telegram/Telegram-iOS/AddAlternateIcons.sh
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
ADD_PLIST="${0}.runfiles/__main__/Telegram/Telegram-iOS/AlternateIcons.plist"
|
||||||
|
ADD_PLIST_IPAD="${0}.runfiles/__main__/Telegram/Telegram-iOS/AlternateIcons-iPad.plist"
|
||||||
|
|
||||||
|
INFO_PLIST="$1/Payload/Telegram.app/Info.plist"
|
||||||
|
|
||||||
|
/usr/libexec/PlistBuddy -c "add :CFBundleIcons:CFBundleAlternateIcons dict" "$INFO_PLIST"
|
||||||
|
/usr/libexec/PlistBuddy -c "add :CFBundleIcons~ipad:CFBundleAlternateIcons dict" "$INFO_PLIST"
|
||||||
|
|
||||||
|
/usr/libexec/PlistBuddy -c "merge $ADD_PLIST :CFBundleIcons:CFBundleAlternateIcons" "$INFO_PLIST"
|
||||||
|
/usr/libexec/PlistBuddy -c "merge $ADD_PLIST_IPAD :CFBundleIcons~ipad:CFBundleAlternateIcons" "$INFO_PLIST"
|
||||||
75
Telegram/Telegram-iOS/AlternateIcons-iPad.plist
Normal file
75
Telegram/Telegram-iOS/AlternateIcons-iPad.plist
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
<dict>
|
||||||
|
<key>Black</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>BlackIconIpad</string>
|
||||||
|
<string>BlackIconLargeIpad</string>
|
||||||
|
<string>BlackNotificationIcon</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>BlackClassic</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>BlackClassicIconIpad</string>
|
||||||
|
<string>BlackClassicIconLargeIpad</string>
|
||||||
|
<string>BlackClassicNotificationIcon</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>BlackFilled</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>BlackFilledIconIpad</string>
|
||||||
|
<string>BlackFilledIconLargeIpad</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>Blue</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>BlueIconIpad</string>
|
||||||
|
<string>BlueIconLargeIpad</string>
|
||||||
|
<string>BlueNotificationIcon</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>BlueClassic</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>BlueClassicIconIpad</string>
|
||||||
|
<string>BlueClassicIconLargeIpad</string>
|
||||||
|
<string>BlueClassicNotificationIcon</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>BlueFilled</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>BlueFilledIconIpad</string>
|
||||||
|
<string>BlueFilledIconLargeIpad</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>WhiteFilled</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>WhiteFilledIcon</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
69
Telegram/Telegram-iOS/AlternateIcons.plist
Normal file
69
Telegram/Telegram-iOS/AlternateIcons.plist
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
<dict>
|
||||||
|
<key>Black</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>BlackIcon</string>
|
||||||
|
<string>BlackNotificationIcon</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>BlackClassic</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>BlackClassicIcon</string>
|
||||||
|
<string>BlackClassicNotificationIcon</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>BlackFilled</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>BlackFilledIcon</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>Blue</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>BlueIcon</string>
|
||||||
|
<string>BlueNotificationIcon</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>BlueClassic</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>BlueClassicIcon</string>
|
||||||
|
<string>BlueClassicNotificationIcon</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>BlueFilled</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>BlueFilledIcon</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>WhiteFilled</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>WhiteFilledIcon</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
@ -111,7 +111,7 @@ elif [ "$1" == "appstore" ]; then
|
|||||||
APP_TARGET="bazel_app"
|
APP_TARGET="bazel_app"
|
||||||
elif [ "$1" == "verify" ]; then
|
elif [ "$1" == "verify" ]; then
|
||||||
BUILD_ENV_SCRIPT="build-system/verify.sh"
|
BUILD_ENV_SCRIPT="build-system/verify.sh"
|
||||||
APP_TARGET="bazel_app_arm64"
|
APP_TARGET="bazel_app"
|
||||||
export CODESIGNING_DATA_PATH="build-system/fake-codesigning"
|
export CODESIGNING_DATA_PATH="build-system/fake-codesigning"
|
||||||
export CODESIGNING_CERTS_VARIANT="distribution"
|
export CODESIGNING_CERTS_VARIANT="distribution"
|
||||||
export CODESIGNING_PROFILES_VARIANT="appstore"
|
export CODESIGNING_PROFILES_VARIANT="appstore"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user