Skip to content

Instantly share code, notes, and snippets.

@smakosh
Last active October 24, 2022 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smakosh/324c3ecb3ba5edc2dc09a06881a1673d to your computer and use it in GitHub Desktop.
Save smakosh/324c3ecb3ba5edc2dc09a06881a1673d to your computer and use it in GitHub Desktop.
Fastlane Android/iOS config
default_platform(:android)
platform :android do
desc 'Build the Android application.'
desc "Deploy a new version to the Google Play"
lane :deploy do
gradle(
task: 'bundle',
build_type: 'Release'
)
upload_to_play_store
slack(message: "Successfully distributed a new Android build! :rocket:",
slack_url: "<Slack webhook url>",
channel: "#channel_name")
end
lane :beta do
gradle(
task: 'bundle',
build_type: 'Release'
)
upload_to_play_store(track: 'internal')
slack(message: "Successfully distributed a new Android build to the internal track! :rocket:",
slack_url: "<Slack webhook url>",
channel: "#channel_name")
end
end
default_platform(:ios)
platform :ios do
desc "Submit a new Beta Build to Apple TestFlight"
desc "This will also make sure the profile is up to date"
lane :beta do
match(
type: "appstore",
git_url: "git@github.com:<tobe edited>.git"
) # more information: https://codesigning.guide
# cocoapods
gym(
scheme: "schema name",
workspace: 'project-name.xcworkspace',
clean: true
)
pilot
slack(
message: "Successfully deployed a new beta build to TestFlight! :rocket:",
slack_url: "<Slack webhook url>",
channel: "#channel_name"
)
end
desc "Submit a new release to the App store"
lane :release do
match(
type: "appstore",
git_url: "git@github.com:<tobe edited>.git"
) # more information: https://codesigning.guide
# cocoapods
gym(
scheme: "schema name",
workspace: 'project-name.xcworkspace',
clean: true
)
deliver(
submit_for_review: false,
skip_metadata: true,
skip_screenshots: true
)
slack(
message: "Successfully deployed a new build to the App store ! :rocket:",
slack_url: "<Slack webhook url>",
channel: "#channel_name"
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment