This commit is contained in:
Christian Pauly 2020-11-22 10:47:37 +01:00
parent 3678d24744
commit 9a2f5f3154
3 changed files with 8 additions and 8 deletions

View File

@ -16,9 +16,9 @@ update_fastlane
default_platform(:android)
platform :android do
lane :set_build_code_beta do
lane :set_build_code_internal do
versions = google_play_track_version_codes(
track: "beta",
track: "internal",
json_key: "./keys.json"
)
last_version = versions[0].to_i
@ -35,16 +35,16 @@ platform :android do
end
end
lane :deploy_beta_test do
lane :deploy_internal_test do
versions = google_play_track_version_codes(
track: "beta",
track: "internal",
json_key: "./keys.json"
)
last_version = versions[0].to_i
upload_to_play_store(track: 'beta', aab: '../build/app/outputs/bundle/release/app-release.aab', version_code: "#{last_version+1}")
upload_to_play_store(track: 'internal', aab: '../build/app/outputs/bundle/release/app-release.aab', version_code: "#{last_version+1}")
end
lane :deploy_release do
upload_to_play_store(track: 'beta', track_promote_to: "production", deactivate_on_promote: false, skip_upload_changelogs: true)
upload_to_play_store(track: 'internal', track_promote_to: "production", deactivate_on_promote: false, skip_upload_changelogs: true)
end
end

View File

@ -8,7 +8,7 @@ echo "storeFile=../key.jks" >> key.properties
echo $PLAYSTORE_DEPLOY_KEY >> keys.json
bundle install
bundle update fastlane
bundle exec fastlane set_build_code_beta
bundle exec fastlane set_build_code_internal
cd app
echo $GOOGLE_SERVICES >> google-services.json/..
cd ../..

View File

@ -6,5 +6,5 @@ flutter build appbundle --target-platform android-arm,android-arm64,android-x64
mkdir -p build/android
cp build/app/outputs/bundle/release/app-release.aab build/android/
cd android
bundle exec fastlane deploy_beta_test
bundle exec fastlane deploy_internal_test
cd ..