Enable CarPlay

This commit is contained in:
Ali 2021-01-24 11:21:37 +04:00
parent a675cf1e65
commit dbfe4dc9d9

View File

@ -277,6 +277,12 @@ official_unrestricted_voip_fragment = """
"""
unrestricted_voip_fragment = official_unrestricted_voip_fragment if telegram_bundle_id in official_bundle_ids else ""
official_carplay_fragment = """
<key>com.apple.developer.carplay-messaging</key>
<true/>
"""
carplay_fragment = official_carplay_fragment if telegram_bundle_id in official_bundle_ids else ""
telegram_entitlements_template = """
<key>com.apple.developer.icloud-services</key>
<array>
@ -304,7 +310,7 @@ telegram_entitlements_template = """
<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
""" + apple_pay_merchants_fragment + unrestricted_voip_fragment + carplay_fragment
plist_fragment(
name = "TelegramEntitlements",