fastlane_version "1.81.0" default_platform :ios base_app_identifier_llc = "ph.telegra.Telegraph" app_identifier_llc = [ base_app_identifier_llc, base_app_identifier_llc + ".Widget", base_app_identifier_llc + ".NotificationContent", base_app_identifier_llc + ".SiriIntents", base_app_identifier_llc + ".Share", base_app_identifier_llc + ".watchkitapp", base_app_identifier_llc + ".watchkitapp.watchkitextension", base_app_identifier_llc + ".NotificationService" ] signing_identity_llc = "iPhone Distribution: Digital Fortress LLC (C67CF9S4VU)" lane :do_build_app do |options| puts("Building with build number: " + options[:build_number] + ", commit id: " + options[:commit_id]) gym( workspace: "Telegram-iOS.xcworkspace", configuration: options[:configuration], scheme: options[:scheme], silent: false, clean: true, export_method: options[:export_method], output_name: options[:scheme], derived_data_path: "build/" + options[:scheme] + "/DerivedData", xcargs: "BUILD_NUMBER='" + options[:build_number] + "' " + "COMMIT_ID='" + options[:commit_id] + "'", archive_path: "build/" + options[:scheme] + "/Archive", export_options: { compileBitcode: false, iCloudContainerEnvironment: "Production", provisioningProfiles: options[:provisioningProfiles], stripSwiftSymbols: true, uploadBitcode: false, signingCertificate: options[:signingCertificate] } ) end lane :build_for_appstore do |options| do_build_app( configuration: "ReleaseAppStoreLLC", scheme: "Telegram-iOS-AppStoreLLC", export_method: "app-store", build_number: options[:build_number], commit_id: options[:commit_hash], signingCertificate: signing_identity_llc, provisioningProfiles: { base_app_identifier_llc => "match AppStore " + base_app_identifier_llc, base_app_identifier_llc + ".Share" => "match AppStore " + base_app_identifier_llc + ".Share", base_app_identifier_llc + ".SiriIntents" => "match AppStore " + base_app_identifier_llc + ".SiriIntents", base_app_identifier_llc + ".Widget" => "match AppStore " + base_app_identifier_llc + ".Widget", base_app_identifier_llc + ".NotificationContent" => "match AppStore " + base_app_identifier_llc + ".NotificationContent", base_app_identifier_llc + ".watchkitapp.watchkitextension" => "match AppStore " + base_app_identifier_llc + ".watchkitapp.watchkitextension", base_app_identifier_llc + ".watchkitapp" => "match AppStore " + base_app_identifier_llc + ".watchkitapp", base_app_identifier_llc + ".NotificationService" => "match AppStore " + base_app_identifier_llc + ".NotificationService" } ) end if File.exists?("../../Telegram-iOS-Shared/fastlane/Fastfile") import "../../Telegram-iOS-Shared/fastlane/Fastfile" end