[Bazel] Support multiple icons
202
Telegram/BUILD
@ -130,6 +130,13 @@ filegroup(
|
|||||||
], exclude = ["Telegram-iOS/DefaultAppIcon.xcassets/**/.*"]),
|
], exclude = ["Telegram-iOS/DefaultAppIcon.xcassets/**/.*"]),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
filegroup(
|
||||||
|
name = "DefaultIcon",
|
||||||
|
srcs = glob([
|
||||||
|
"Telegram-iOS/AppIcons.xcassets/BlueIcon.appiconset/*.png",
|
||||||
|
]),
|
||||||
|
)
|
||||||
|
|
||||||
filegroup(
|
filegroup(
|
||||||
name = "AdditionalIcons",
|
name = "AdditionalIcons",
|
||||||
srcs = glob([
|
srcs = glob([
|
||||||
@ -1422,6 +1429,191 @@ 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(
|
||||||
@ -1434,9 +1626,15 @@ ios_application(
|
|||||||
infoplists = [
|
infoplists = [
|
||||||
":TelegramInfoPlist",
|
":TelegramInfoPlist",
|
||||||
":AdditionalInfoPlist",
|
":AdditionalInfoPlist",
|
||||||
|
":TelegramInfoIconsPlist",
|
||||||
],
|
],
|
||||||
app_icons = [
|
#app_icons = [
|
||||||
":DefaultAppIcon",
|
# ":DefaultAppIcon",
|
||||||
|
#],
|
||||||
|
resources = [
|
||||||
|
":AdditionalIcons",
|
||||||
|
#":DefaultAppIcon",
|
||||||
|
#":AppIcons",
|
||||||
],
|
],
|
||||||
frameworks = [
|
frameworks = [
|
||||||
":MtProtoKitFramework",
|
":MtProtoKitFramework",
|
||||||
|
BIN
Telegram/Telegram-iOS/IconDefault-60@2x.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
Telegram/Telegram-iOS/IconDefault-60@3x.png
Normal file
After Width: | Height: | Size: 7.0 KiB |
BIN
Telegram/Telegram-iOS/IconDefault-76.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
Telegram/Telegram-iOS/IconDefault-76@2x.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
Telegram/Telegram-iOS/IconDefault-83.5@2x.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
Telegram/Telegram-iOS/IconDefault-Small-40.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
Telegram/Telegram-iOS/IconDefault-Small-40@2x.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
Telegram/Telegram-iOS/IconDefault-Small-40@3x.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
Telegram/Telegram-iOS/IconDefault-Small.png
Normal file
After Width: | Height: | Size: 925 B |
BIN
Telegram/Telegram-iOS/IconDefault-Small@2x.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
Telegram/Telegram-iOS/IconDefault-Small@3x.png
Normal file
After Width: | Height: | Size: 3.1 KiB |