-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically publish builds to play store's alpha channel (#82)
For commits to master with a tag, use a free library called fastlane to kick off gradle and upload the output to the Play Store.
- Loading branch information
1 parent
e0da38d
commit 70e501c
Showing
6 changed files
with
88 additions
and
17 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This file contains the fastlane.tools configuration | ||
# You can find the documentation at https://docs.fastlane.tools | ||
# | ||
|
||
default_platform(:android) | ||
|
||
platform :android do | ||
desc "Build and deploy on Google Play" | ||
lane :deploy do |options| | ||
gradleTaskName = "assemble#{options[:flavor]}Release" | ||
version = ENV['TRAVIS_TAG'].empty? ? 'SNAPSHOT' : ENV['TRAVIS_TAG'] | ||
package_name = options[:flavor] == 'unbranded' ? "org.medicmobile.webapp.mobile" : "org.medicmobile.webapp.mobile.#{options[:flavor]}" | ||
|
||
gradle(task: gradleTaskName) | ||
|
||
supply( | ||
package_name: package_name, | ||
track: "alpha", | ||
json_key: "playstore-secret.json", | ||
apk_paths: [ | ||
"build/outputs/apk/#{options[:flavor]}/release/medic-android-#{version}-#{options[:flavor]}-arm64-v8a-release.apk", | ||
"build/outputs/apk/#{options[:flavor]}/release/medic-android-#{version}-#{options[:flavor]}-armeabi-v7a-release.apk", | ||
], | ||
skip_upload_aab: true, | ||
skip_upload_metadata: true, | ||
skip_upload_images: true, | ||
skip_upload_screenshots: true, | ||
validate_only: false, | ||
|
||
timeout: 3600, | ||
) | ||
end | ||
end |
Binary file not shown.