mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-25 09:32:46 +00:00
Merge branch 'master' into experimental-2
This commit is contained in:
parent
e18b673681
commit
0c4d09b548
@ -26,6 +26,7 @@ load(
|
|||||||
"telegram_bundle_id",
|
"telegram_bundle_id",
|
||||||
"telegram_aps_environment",
|
"telegram_aps_environment",
|
||||||
"telegram_team_id",
|
"telegram_team_id",
|
||||||
|
"telegram_enable_icloud",
|
||||||
)
|
)
|
||||||
|
|
||||||
config_setting(
|
config_setting(
|
||||||
@ -279,7 +280,7 @@ 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>
|
||||||
<array>
|
<array>
|
||||||
""" + "\n".join([
|
""" + "\n".join([
|
||||||
" <string>{}</string>".format(merchant_id) for merchant_id in apple_pay_merchants
|
" <string>{merchant_id}</string>".format(merchant_id=merchant_id) for merchant_id in apple_pay_merchants
|
||||||
]) + "\n" + """
|
]) + "\n" + """
|
||||||
</array>
|
</array>
|
||||||
"""
|
"""
|
||||||
@ -296,44 +297,62 @@ official_carplay_fragment = """
|
|||||||
"""
|
"""
|
||||||
carplay_fragment = official_carplay_fragment if telegram_bundle_id in official_bundle_ids else ""
|
carplay_fragment = official_carplay_fragment if telegram_bundle_id in official_bundle_ids else ""
|
||||||
|
|
||||||
telegram_entitlements_template = """
|
icloud_fragment = "" if not telegram_enable_icloud else """
|
||||||
<key>com.apple.developer.icloud-services</key>
|
<key>com.apple.developer.icloud-services</key>
|
||||||
<array>
|
<array>
|
||||||
<string>CloudKit</string>
|
<string>CloudKit</string>
|
||||||
<string>CloudDocuments</string>
|
<string>CloudDocuments</string>
|
||||||
</array>
|
</array>
|
||||||
<key>com.apple.developer.icloud-container-identifiers</key>
|
<key>com.apple.developer.icloud-container-identifiers</key>
|
||||||
<array>
|
<array>
|
||||||
<string>iCloud.{telegram_bundle_id}</string>
|
<string>iCloud.{telegram_bundle_id}</string>
|
||||||
</array>
|
</array>
|
||||||
<key>aps-environment</key>
|
<key>com.apple.developer.icloud-container-environment</key>
|
||||||
<string>{telegram_aps_environment}</string>
|
<string>{telegram_icloud_environment}</string>
|
||||||
<key>com.apple.developer.associated-domains</key>
|
""".format(
|
||||||
<array>
|
telegram_bundle_id=telegram_bundle_id,
|
||||||
<string>applinks:telegram.me</string>
|
telegram_icloud_environment="Production" if telegram_aps_environment == "production" else "Development"
|
||||||
<string>applinks:t.me</string>
|
)
|
||||||
</array>
|
|
||||||
<key>com.apple.developer.siri</key>
|
associated_domains_fragment = "" if telegram_bundle_id not in official_bundle_ids else """
|
||||||
<true/>
|
<key>com.apple.developer.associated-domains</key>
|
||||||
|
<array>
|
||||||
|
<string>applinks:telegram.me</string>
|
||||||
|
<string>applinks:t.me</string>
|
||||||
|
</array>
|
||||||
|
"""
|
||||||
|
|
||||||
|
siri_fragment = "" if not telegram_enable_siri else """
|
||||||
|
<key>com.apple.developer.siri</key>
|
||||||
|
<true/>
|
||||||
|
"""
|
||||||
|
|
||||||
|
aps_fragment = "" if telegram_aps_environment == "" else """
|
||||||
|
<key>aps-environment</key>
|
||||||
|
<string>{telegram_aps_environment}</string>
|
||||||
|
""".format(telegram_aps_environment=telegram_aps_environment)
|
||||||
|
|
||||||
|
app_groups_fragment = """
|
||||||
<key>com.apple.security.application-groups</key>
|
<key>com.apple.security.application-groups</key>
|
||||||
<array>
|
<array>
|
||||||
<string>group.{telegram_bundle_id}</string>
|
<string>group.{telegram_bundle_id}</string>
|
||||||
</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>{telegram_icloud_environment}</string>
|
|
||||||
""" + apple_pay_merchants_fragment + unrestricted_voip_fragment + carplay_fragment
|
|
||||||
|
|
||||||
plist_fragment(
|
plist_fragment(
|
||||||
name = "TelegramEntitlements",
|
name = "TelegramEntitlements",
|
||||||
extension = "entitlements",
|
extension = "entitlements",
|
||||||
template = telegram_entitlements_template.format(
|
template = "".join([
|
||||||
telegram_bundle_id = telegram_bundle_id,
|
app_groups_fragment,
|
||||||
telegram_team_id = telegram_team_id,
|
siri_fragment,
|
||||||
telegram_aps_environment = telegram_aps_environment,
|
associated_domains_fragment,
|
||||||
telegram_icloud_environment = "Production" if telegram_aps_environment == "production" else "Development",
|
icloud_fragment,
|
||||||
)
|
apple_pay_merchants_fragment,
|
||||||
|
unrestricted_voip_fragment,
|
||||||
|
carplay_fragment
|
||||||
|
])
|
||||||
)
|
)
|
||||||
|
|
||||||
filegroup(
|
filegroup(
|
||||||
|
|||||||
@ -9,3 +9,4 @@ telegram_is_appstore_build = "true"
|
|||||||
telegram_appstore_id = "686449807"
|
telegram_appstore_id = "686449807"
|
||||||
telegram_app_specific_url_scheme = "tg"
|
telegram_app_specific_url_scheme = "tg"
|
||||||
telegram_aps_environment = "production"
|
telegram_aps_environment = "production"
|
||||||
|
telegram_enable_icloud = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user