# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:ios)

platform :ios do
  desc "Push a new release build to the App Store"
  lane :pg do
    increment_build_number(xcodeproj: "SkinMagnifier.xcodeproj")
    build_app(workspace: "SkinMagnifier.xcworkspace", scheme: "SkinMagnifier")
    upload_to_app_store(skip_metadata: true, skip_screenshots: true)
    pgyer(api_key: "e4dde5752d54a56907781faba72f84b0", user_key: "3d2fd5bb432094c2e58c0f39d56c5899")
  end

  lane :pgy do
      build_app(export_method: "ad-hoc")
      pgyer(api_key: "e4dde5752d54a56907781faba72f84b0", user_key: "3d2fd5bb432094c2e58c0f39d56c5899")
  sh("./qywx.sh")
  end

end
