Fastlane submits the AdHoc test package to the Dandelion platform, obtains the git submission information and displays it in the update description

Go directly to the fastlane file configuration (code in Fastfile)

desc "发布一个测试版本到蒲公英"
lane :pgy do |options|
  match(type: "adhoc", readonly: true) if not options[:skip_match]
  add_beta_badge
  gym(export_method: "ad-hoc", export_xcargs: "-allowProvisioningUpdates")
  #获取最后一次git提交 
  commit = last_git_commit
  #获取git提交的信息和git提交作者
  message = commit[:message] + "修改者:"+ commit[:author]
  #上传蒲公英
  pgyer(api_key: "xxx", user_key: "xxxx",update_description:message)
  reset_git_repo(force: true, skip_clean: true)
end

Guess you like

Origin blog.csdn.net/sky_long_fly/article/details/126346137