"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-5186/ios/fastlane/Fastfile" (30 Jul 2021, 3889 Bytes) of package /linux/misc/jitsi-meet-5186.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ENV["FASTLANE_SKIP_UPDATE_CHECK"] = "1"
    2 opt_out_usage
    3 
    4 default_platform(:ios)
    5 
    6 platform :ios do
    7   desc "Push a new beta build to TestFlight"
    8   lane :deploy do
    9     # Make sure we are on a clean tree
   10     ensure_git_status_clean
   11 
   12     # Connect to Apple Store Connect
   13     app_store_connect_api_key(
   14       key_id: ENV["ASC_KEY_ID"],
   15       issuer_id: ENV["ASC_ISSUER_ID"],
   16       key_content: ENV["ASC_KEY_CONTENT"],
   17       duration: 1200,
   18       in_house: false
   19     )
   20 
   21     # Set the app identifier
   22     update_app_identifier(
   23       xcodeproj: "app/app.xcodeproj",
   24       plist_path: "src/Info.plist",
   25       app_identifier: "com.atlassian.JitsiMeet.ios"
   26     )
   27 
   28     # Set the broadcast extension identifier
   29     update_app_identifier(
   30       xcodeproj: "app/app.xcodeproj",
   31       plist_path: "broadcast-extension/Info.plist",
   32       app_identifier: "com.atlassian.JitsiMeet.ios.broadcast"
   33     )
   34     update_info_plist(
   35       xcodeproj: "app/app.xcodeproj",
   36       plist_path: "src/Info.plist",
   37       block: proc do |plist|
   38         plist["RTCScreenSharingExtension"] = "com.atlassian.JitsiMeet.ios.broadcast"
   39       end
   40     )
   41 
   42     # Set the (watch) app identifier
   43     update_app_identifier(
   44       xcodeproj: "app/app.xcodeproj",
   45       plist_path: "watchos/app/Info.plist",
   46       app_identifier: "com.atlassian.JitsiMeet.ios.watchkit"
   47     )
   48 
   49     # Set the (watch) extension identifier
   50     update_app_identifier(
   51       xcodeproj: "app/app.xcodeproj",
   52       plist_path: "watchos/extension/Info.plist",
   53       app_identifier: "com.atlassian.JitsiMeet.ios.watchkit.extension"
   54     )
   55 
   56     update_info_plist(
   57       xcodeproj: "app/app.xcodeproj",
   58       plist_path: "watchos/app/Info.plist",
   59       block: proc do |plist|
   60         plist["WKCompanionAppBundleIdentifier"] = "com.atlassian.JitsiMeet.ios"
   61       end
   62     )
   63 
   64     update_info_plist(
   65       xcodeproj: "app/app.xcodeproj",
   66       plist_path: "watchos/extension/Info.plist",
   67       block: proc do |plist|
   68         plist["NSExtension"]["NSExtensionAttributes"]["WKAppBundleIdentifier"] = "com.atlassian.JitsiMeet.ios.watchkit"
   69       end
   70     )
   71 
   72     # Inrement the build number by 1
   73     increment_build_number(
   74       build_number: latest_testflight_build_number + 1,
   75       xcodeproj: "app/app.xcodeproj"
   76     )
   77 
   78     # Actually build the app
   79     build_app(
   80         scheme: "JitsiMeet",
   81         include_bitcode: true,
   82         include_symbols: true,
   83         export_xcargs: "-allowProvisioningUpdates"
   84     )
   85 
   86     # Upload the build to TestFlight (but don't distribute it)
   87     upload_to_testflight(
   88       beta_app_description: ENV["JITSI_CHANGELOG"],
   89       beta_app_feedback_email: ENV["JITSI_REVIEW_EMAIL"],
   90       beta_app_review_info: {
   91         contact_email: ENV["JITSI_REVIEW_EMAIL"],
   92         contact_first_name: ENV["JITSI_REVIEW_NAME"],
   93         contact_last_name: ENV["JITSI_REVIEW_SURNAME"],
   94         contact_phone: ENV["JITSI_REVIEW_PHONE"],
   95         demo_account_name: ENV["JITSI_DEMO_ACCOUNT"],
   96         demo_account_password: ENV["JITSI_DEMO_PASSWORD"],
   97       },
   98       changelog: ENV["JITSI_CHANGELOG"],
   99       demo_account_required: false,
  100       distribute_external: true,
  101       groups: ENV["JITSI_BETA_TESTING_GROUPS"],
  102       reject_build_waiting_for_review: true,
  103       uses_non_exempt_encryption: false
  104     )
  105 
  106     # Cleanup
  107     clean_build_artifacts
  108     reset_git_repo(skip_clean: true)
  109   end
  110 
  111   lane :refresh_dsyms do
  112     # Connect to Apple Store Connect
  113     app_store_connect_api_key(
  114       key_id: ENV["ASC_KEY_ID"],
  115       issuer_id: ENV["ASC_ISSUER_ID"],
  116       key_content: ENV["ASC_KEY_CONTENT"],
  117       duration: 1200,
  118       in_house: false
  119     )
  120 
  121     # Upload dSYMs to Crashlytics
  122     download_dsyms(min_version: ENV["DSYMS_MIN_VERSION"])  # Download dSYM files from iTC
  123     upload_symbols_to_crashlytics                          # Upload them to Crashlytics
  124     clean_build_artifacts                                  # Delete the local dSYM files
  125   end
  126 end