Skip to content

Instantly share code, notes, and snippets.

@masashi-sutou
Last active August 8, 2019 03:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masashi-sutou/5d9649d64271db5f247a48d111ad39c4 to your computer and use it in GitHub Desktop.
Save masashi-sutou/5d9649d64271db5f247a48d111ad39c4 to your computer and use it in GitHub Desktop.
Flutter Android をDeployGateに配信する最小手順のFastfileです
default_platform(:android)
platform :android do
before_all do |lane, options|
ENV["DEPLOYGATE_API_TOKEN"] = '自分のアカウントから発行できるAPIトークンを指定'
end
desc "Submit a new Beta Build to Crashlytics Beta"
lane :beta do
sh('cd ../../ && flutter build apk --release')
# gradle(task: "clean assembleDebug")
deploygate(
api_token: ENV["DEPLOYGATE_API_TOKEN"],
user: '自分のアカウントのユーザー名を指定する',
message: "試しにfastlaneであげる",
apk: "../build/app/outputs/apk/release/app-release.apk",
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment