Skip to content

Commit

Permalink
Update Makefile & Fastfile
Browse files Browse the repository at this point in the history
* Rename `appstore` to `app_store` to avoid conflict with Fastlane action `appstore`
* Add `next_generation` lane
  • Loading branch information
Yassine ElBadaoui committed Feb 21, 2022
1 parent 5aff98a commit 78a3c79
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,29 +93,29 @@ generate-app-file: command-exists-bundle
@echo building ".app" file ...
bundle exec fastlane generate_app_file

deploy: deploy-appstore
deploy: deploy-appstore deploy-next_generation

deploy-beta: deploy-build-beta

deploy-next-generation: deploy-build-next-generation
deploy-next_generation: deploy-build-next_generation

deploy-appstore: deploy-build-appstore

deploy-build-%: install-gems
@echo deploying app \(incrementing build for $(*)\) ...
bundle exec fastlane beta build_type:build --env $(*) ${VERBOSE}
bundle exec fastlane $(*) build_type:build --env $(*) ${VERBOSE}

deploy-patch-%: install-gems
@echo deploying app \(incrementing patch\) ...
bundle exec fastlane beta build_type:patch --env $(*) ${VERBOSE}
bundle exec fastlane $(*) build_type:patch --env $(*) ${VERBOSE}

deploy-minor-%: install-gems
@echo deploying app \(incrementing minor\) ...
bundle exec fastlane beta build_type:minor --env $(*) ${VERBOSE}
bundle exec fastlane $(*) build_type:minor --env $(*) ${VERBOSE}

deploy-major-%: install-gems
@echo deploying app \(incrementing major\) ...
bundle exec fastlane beta build_type:major --env $(*) ${VERBOSE}
bundle exec fastlane $(*) build_type:major --env $(*) ${VERBOSE}

increment_build_number:
@echo Incrementing build number app ...
Expand Down
10 changes: 8 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ GIT_BRANCH = ENV['GIT_BRANCH']
# Defaults
######################
DEFAULT_XCODE_TARGET = XCODE_TARGET.freeze
DEFAULT_BUILD_TYPE = 'build'
DEFAULT_DEPLOY_ENVIRONMENT = :dev
DEFAULT_BUILD_TYPE = 'build'.freeze
DEFAULT_DEPLOY_ENVIRONMENT = :dev.freeze

######################
# Variables
Expand Down Expand Up @@ -239,6 +239,12 @@ platform :ios do
build(deploy_environment: :dev, build_type: build_type)
end

desc 'Deploy Next Generation version of the app ...'
lane :next_generation do |options|
build_type = options[:build_type]
build(deploy_environment: :dev, build_type: build_type)
end

desc 'Deploy App Store version of the app ...'
lane :app_store do |options|
build_type = options[:build_type]
Expand Down

0 comments on commit 78a3c79

Please sign in to comment.