首页 > 解决方案 > 如何在fastlane文件中写评论

问题描述

我试图在我的 fastline 中评论一些行,但我不确定如何在 fastlane 文件中写评论。我也不想删除这些行。

这就是我的想法:

  build(variant: 'Release')
    appcenter_upload(
      api_token: ENV['APPCENTER_API_TOKEN'],
      owner_name: "Ralali.com",
      app_name: "Ralali-Android",
      apk: "android/app/build/outputs/apk/release/app-release.apk",
      destinations: "Production",
      # destination_type: "group",   IS THIS LINE COMMENTED? (WON'T EXECUTED?)
      # notify_testers: true         AND ALSO THIS ONE
    )

我在生产中使用 circleci 运行 fastlane,我不想在生产中尝试,因为我害怕。

标签: androidrubyfastlane

解决方案


使用 # 表示单行注释,使用 =begin ... =end 表示多行注释。另外,请注意 =begin 和 =end 必须位于行首,否则会出现语法错误。

# Single-line comment

=begin
Multi-line
comment
=end

推荐阅读