Skip to content

Instantly share code, notes, and snippets.

@masashi-sutou
Last active May 7, 2019 23:04
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/ae4bf7c83f29e6bb0523960a65fdc74a to your computer and use it in GitHub Desktop.
Save masashi-sutou/ae4bf7c83f29e6bb0523960a65fdc74a to your computer and use it in GitHub Desktop.
# 共通処理を別リポジトリの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