Last active
May 7, 2019 23:04
-
-
Save masashi-sutou/ae4bf7c83f29e6bb0523960a65fdc74a to your computer and use it in GitHub Desktop.
~/ios/fastlane/Fastfile https://qiita.com/masashi-sutou/items/08c4d4eb5b9cb2dcd47a
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
# 共通処理を別リポジトリのFastfileから参照する | |
import_from_git(url: 'git@github.com:example/example-fastlane.git', | |
path: 'util/Fastfile') | |
default_platform(:ios) | |
platform :ios do | |
before_all do |lane, options| | |
setup_env_in_util | |
ENV["EXAMPLE_DEV_APP_ID"] = "com.example.name.development" | |
setup_circle_ci | |
end | |
after_all do |lane| | |
slack(message: "Successfully push development to Deploygate.") if lane == :development | |
end | |
desc 'Build and deploy debug' | |
lane :development do | |
build_flutter_in_util( | |
platform: "ios", | |
flavor: "development", | |
target: "lib/main_development.dart" | |
) | |
certificate_development_in_util( | |
app_identifiers: [ENV["EXAMPLE_DEV_APP_ID"]], | |
force: false | |
) | |
change_manual_code_signing_style_in_util( | |
app_configs: [ | |
{ | |
target: "Runner", | |
profile_name_app_id: ENV["EXAMPLE_DEV_APP_ID"], | |
} | |
], | |
mode: "development" | |
) | |
build_ios_app( | |
scheme: "Development", | |
output_directory: scripts_mkdir_in_util, | |
export_method: "development" | |
) | |
deploygate_in_util( | |
release_note: changelog_from_git_commits(merge_commit_filtering: "exclude_merges") | |
) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment