Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
eaa9b47a
Unverified
Commit
eaa9b47a
authored
Feb 26, 2018
by
xster
Committed by
GitHub
Feb 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add version collition error handling for Android publish (#14835)
parent
44592238
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
Fastfile
examples/flutter_gallery/android/fastlane/Fastfile
+12
-7
No files found.
examples/flutter_gallery/android/fastlane/Fastfile
View file @
eaa9b47a
...
@@ -9,12 +9,17 @@ default_platform(:android)
...
@@ -9,12 +9,17 @@ default_platform(:android)
platform :android do
platform :android do
desc 'Push the built release APK to alpha or beta depending on current branch'
desc 'Push the built release APK to alpha or beta depending on current branch'
lane :deploy_play_store do
lane :deploy_play_store do
upload_to_play_store(
begin
track: ENV['TRAVIS_BRANCH'] == 'beta' ? 'beta' : 'alpha',
upload_to_play_store(
apk: '../build/app/outputs/apk/release/app-release.apk',
track: ENV['TRAVIS_BRANCH'] == 'beta' ? 'beta' : 'alpha',
json_key_data: ENV['GOOGLE_DEVELOPER_SERVICE_ACCOUNT_ACTOR_FASTLANE'],
apk: '../build/app/outputs/apk/release/app-release.apk',
skip_upload_screenshots: true,
json_key_data: ENV['GOOGLE_DEVELOPER_SERVICE_ACCOUNT_ACTOR_FASTLANE'],
skip_upload_images: true
skip_upload_screenshots: true,
)
skip_upload_images: true
)
rescue => exception
raise exception unless exception.message.include?('apkUpgradeVersionConflict')
puts 'Current version already present on the Play Store. Omitting this upload.'
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment