Slide 45
Slide 45 text
45
fastlaneͰϏϧυ൪߸Λ͍͋͛ͤͨ࣌͞
desc "update build number"
lane :update_build_number do |options|
xcodeproj = XCODEPROJ_PATH
build_number = options[:build_number]
version_number = options[:version_number]
# dist
increment_build_number_in_plist(xcodeproj: xcodeproj, target: SCHEME_DIST, build_number: build_number)
# dev
increment_build_number_in_plist(xcodeproj: xcodeproj, target: SCHEME_DEV, build_number: build_number)
end
desc "Commit and push to remote"
lane :commit_and_push do
# git commit
sh "git checkout #{git_branch}"
git_add(path: [PLIST_PATH_DEV, PLIST_PATH_DIST])
git_commit(path: [PLIST_PATH_DEV, PLIST_PATH_DIST], message: "Increment Info-development.plist and Info.plist build number [skip ci] ")
push_to_git_remote(
remote: "origin",
local_branch: "#{git_branch}",
remote_branch: "#{git_branch}",
force: false, # optional, default: false
tags: false # optional, default: true
)
end