-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add internal and production track to release into PlayStore on CD
- Loading branch information
1 parent
1708abc
commit 95e6d25
Showing
6 changed files
with
136 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "fastlane" |
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 @@ | ||
json_key_file("service-account.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one |
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,59 @@ | ||
# This file contains the fastlane.tools configuration | ||
# You can find the documentation at https://docs.fastlane.tools | ||
# | ||
# For a list of all available actions, check out | ||
# | ||
# https://docs.fastlane.tools/actions | ||
# | ||
# For a list of all available plugins, check out | ||
# | ||
# https://docs.fastlane.tools/plugins/available-plugins | ||
# | ||
|
||
# Uncomment the line if you want fastlane to automatically update itself | ||
# update_fastlane | ||
|
||
default_platform(:android) | ||
|
||
platform :android do | ||
|
||
lane :default do | ||
internal | ||
end | ||
|
||
# LANE 1 | ||
desc "Publish a new version to the Google Play (INTERNAL)" | ||
lane :internal do | ||
|
||
# Generate AAB file | ||
gradle( | ||
task: "demoscannerapp:bundle", | ||
build_type: "Release" | ||
) | ||
|
||
# Upload the AAB to play store (internal track) | ||
upload_to_play_store( | ||
package_name: "com.enioka.scanner.demoscannerapp.release", | ||
track: 'internal', | ||
release_status: "draft" | ||
) | ||
end | ||
|
||
# LANE 2 | ||
desc "Publish a new version to the Google Play (PRODUCTION)" | ||
lane :release do | ||
|
||
# Generate AAB file | ||
gradle( | ||
task: "demoscannerapp:bundle", | ||
build_type: "Release" | ||
) | ||
|
||
# Upload the AAB to play store (internal track) | ||
upload_to_play_store( | ||
package_name: "com.enioka.scanner.demoscannerapp.release", | ||
track: 'production', | ||
release_status: "draft" | ||
) | ||
end | ||
end |