Last active
October 24, 2022 05:00
-
-
Save smakosh/324c3ecb3ba5edc2dc09a06881a1673d to your computer and use it in GitHub Desktop.
Fastlane Android/iOS config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "[email protected]:<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: "[email protected]:<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