Remove deployment to play store for linux case in deploy_gallery test (#67349)
This commit is contained in:
parent
734cc1a132
commit
74c3ea4d41
15
.cirrus.yml
15
.cirrus.yml
@ -203,11 +203,8 @@ task:
|
||||
# See also: https://github.com/flutter/flutter/pull/49454
|
||||
depends_on:
|
||||
- analyze-linux
|
||||
environment:
|
||||
# As of October 2019, 1 CPU and 4G of RAM let deploy_gallery-linux finish in about 15
|
||||
# minutes, once it got started.
|
||||
GOOGLE_DEVELOPER_SERVICE_ACCOUNT_ACTOR_FASTLANE: ENCRYPTED[d9ac1462c3c556fc2f8165c9d5566a16497d8ebc38a50357f7f3abf136b7f83e1d1d76dde36fee356cb0f9ebf7a89346]
|
||||
ANDROID_GALLERY_UPLOAD_KEY: ENCRYPTED[0f2aca35f05b26add5d9edea2a7449341269a2b7e22d5c667f876996e2e8bc44ff1369431ebf73b7c5581fd95d0e5902]
|
||||
# As of October 2019, 1 CPU and 4G of RAM let deploy_gallery-linux finish in about 15
|
||||
# minutes, once it got started.
|
||||
script:
|
||||
- ./dev/bots/deploy_gallery.sh
|
||||
|
||||
@ -254,14 +251,6 @@ task:
|
||||
# See also: https://github.com/flutter/flutter/pull/49454
|
||||
depends_on:
|
||||
- analyze-linux
|
||||
environment:
|
||||
# Apple Fastlane password.
|
||||
FASTLANE_PASSWORD: ENCRYPTED[4b1f0b8d52874e9de965acd46c79743f3b81f3a513614179b9be7cf53dc8258753e257bdadb11a298ee455259df21865]
|
||||
# Private repo for publishing certificates.
|
||||
PUBLISHING_MATCH_CERTIFICATE_REPO: ENCRYPTED[3c0e78877d933fc80107aa6f3790fd1cf927250b852d6cb53202be696b4903ed8ca839b809626aaf18050bf7e436fab7]
|
||||
PUBLISHING_MATCH_REPO_TOKEN: ENCRYPTED[3d1230b744c6ed6c788a91bec741b769401dbcd426b18f9af8080bfeefdfc21913ca4047980c5b5b7ce823f12e7b6b19]
|
||||
# Apple Certificates Match Passphrase
|
||||
MATCH_PASSWORD: ENCRYPTED[db07f252234397090e3ec59152d9ec1831f5ecd0ef97d247b1dca757bbb9ef9b7c832a39bce2caf1949ccdf097e59a73]
|
||||
script:
|
||||
- ulimit -S -n 2048 # https://github.com/flutter/flutter/issues/2976
|
||||
- ./dev/bots/deploy_gallery.sh
|
||||
|
@ -35,21 +35,6 @@ if [[ "$OS" == "linux" ]]; then
|
||||
cd dev/integration_tests/flutter_gallery
|
||||
flutter build apk --release -t lib/main_publish.dart
|
||||
)
|
||||
echo "Android Flutter Gallery built"
|
||||
if [[ -z "$CIRRUS_PR" && "$CIRRUS_BRANCH" == "dev" && "$version" != *"pre"* ]]; then
|
||||
echo "Deploying Flutter Gallery $version to Play Store..."
|
||||
set +x # Don't echo back the below.
|
||||
if [ -n "$ANDROID_GALLERY_UPLOAD_KEY" ]; then
|
||||
echo "$ANDROID_GALLERY_UPLOAD_KEY" | base64 --decode > /root/.android/debug.keystore
|
||||
fi
|
||||
set -x
|
||||
(
|
||||
cd dev/integration_tests/flutter_gallery/android
|
||||
bundle exec fastlane deploy_play_store
|
||||
)
|
||||
else
|
||||
echo "(Not deploying; Flutter Gallery is only deployed to Play store for tagged dev branch commits.)"
|
||||
fi
|
||||
elif [[ "$OS" == "darwin" ]]; then
|
||||
echo "Building Flutter Gallery $version for iOS..."
|
||||
export BUNDLE_GEMFILE="$FLUTTER_ROOT/dev/ci/mac/Gemfile"
|
||||
@ -87,32 +72,6 @@ elif [[ "$OS" == "darwin" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
)
|
||||
echo "iOS Flutter Gallery built"
|
||||
if [[ -z "$CIRRUS_PR" ]]; then
|
||||
if [[ "$CIRRUS_BRANCH" == "dev" && "$version" != *"pre"* ]]; then
|
||||
echo "Archiving with distribution profile and deploying to TestFlight..."
|
||||
(
|
||||
cd dev/integration_tests/flutter_gallery/ios
|
||||
export DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS="-t DAV"
|
||||
bundle exec fastlane build_and_deploy_testflight upload:true
|
||||
)
|
||||
else
|
||||
# On iOS the signing can break as well, so we verify this regularly (not just
|
||||
# on tagged dev branch commits). We can only do this post-merge, though, because
|
||||
# the secrets aren't available on PRs.
|
||||
echo "Testing archiving with distribution profile..."
|
||||
(
|
||||
cd dev/integration_tests/flutter_gallery/ios
|
||||
# Cirrus Mac VMs come with an old version of fastlane which was causing
|
||||
# dependency issues (https://github.com/flutter/flutter/issues/43435),
|
||||
# so explicitly use the version specified in $BUNDLE_GEMFILE.
|
||||
bundle exec fastlane build_and_deploy_testflight
|
||||
)
|
||||
echo "(Not deploying; Flutter Gallery is only deployed to TestFlight for tagged dev branch commits.)"
|
||||
fi
|
||||
else
|
||||
echo "(Not archiving or deploying; Flutter Gallery archiving is only tested post-commit.)"
|
||||
fi
|
||||
else
|
||||
echo "Unknown OS: $OS"
|
||||
echo "Aborted."
|
||||
|
@ -10,7 +10,7 @@
|
||||
# for performing pushes to production, and so this image is quite a bit larger
|
||||
# than strictly needed for just building Flutter apps.
|
||||
|
||||
# Last manual update 2020-08-11 (changing this comment will re-build image)
|
||||
# Last manual update 2020-10-05 (changing this comment will re-build image)
|
||||
|
||||
# Note: updating past stretch (Debian 9) will bump Java past version 8,
|
||||
# which will break the Android SDK.
|
||||
|
@ -2,7 +2,3 @@
|
||||
# in dev/ci/docker_linux/Dockerfile to retrigger a Docker build on Cirrus.
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
# Install fastlane which is used on Linux to build and deploy Android
|
||||
# builds to the Play Store.
|
||||
gem 'fastlane', '2.134.0'
|
||||
|
@ -1,159 +1,11 @@
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
CFPropertyList (3.0.1)
|
||||
addressable (2.7.0)
|
||||
public_suffix (>= 2.0.2, < 5.0)
|
||||
atomos (0.1.3)
|
||||
babosa (1.0.3)
|
||||
claide (1.0.3)
|
||||
colored (1.2)
|
||||
colored2 (3.1.2)
|
||||
commander-fastlane (4.4.6)
|
||||
highline (~> 1.7.2)
|
||||
declarative (0.0.10)
|
||||
declarative-option (0.1.0)
|
||||
digest-crc (0.4.1)
|
||||
domain_name (0.5.20190701)
|
||||
unf (>= 0.0.5, < 1.0.0)
|
||||
dotenv (2.7.5)
|
||||
emoji_regex (1.0.1)
|
||||
excon (0.71.0)
|
||||
faraday (0.17.0)
|
||||
multipart-post (>= 1.2, < 3)
|
||||
faraday-cookie_jar (0.0.6)
|
||||
faraday (>= 0.7.4)
|
||||
http-cookie (~> 1.0.0)
|
||||
faraday_middleware (0.13.1)
|
||||
faraday (>= 0.7.4, < 1.0)
|
||||
fastimage (2.1.7)
|
||||
fastlane (2.134.0)
|
||||
CFPropertyList (>= 2.3, < 4.0.0)
|
||||
addressable (>= 2.3, < 3.0.0)
|
||||
babosa (>= 1.0.2, < 2.0.0)
|
||||
bundler (>= 1.12.0, < 3.0.0)
|
||||
colored
|
||||
commander-fastlane (>= 4.4.6, < 5.0.0)
|
||||
dotenv (>= 2.1.1, < 3.0.0)
|
||||
emoji_regex (>= 0.1, < 2.0)
|
||||
excon (>= 0.45.0, < 1.0.0)
|
||||
faraday (~> 0.17)
|
||||
faraday-cookie_jar (~> 0.0.6)
|
||||
faraday_middleware (~> 0.13.1)
|
||||
fastimage (>= 2.1.0, < 3.0.0)
|
||||
gh_inspector (>= 1.1.2, < 2.0.0)
|
||||
google-api-client (>= 0.21.2, < 0.24.0)
|
||||
google-cloud-storage (>= 1.15.0, < 2.0.0)
|
||||
highline (>= 1.7.2, < 2.0.0)
|
||||
json (< 3.0.0)
|
||||
jwt (~> 2.1.0)
|
||||
mini_magick (>= 4.9.4, < 5.0.0)
|
||||
multi_xml (~> 0.5)
|
||||
multipart-post (~> 2.0.0)
|
||||
plist (>= 3.1.0, < 4.0.0)
|
||||
public_suffix (~> 2.0.0)
|
||||
rubyzip (>= 1.3.0, < 2.0.0)
|
||||
security (= 0.1.3)
|
||||
simctl (~> 1.6.3)
|
||||
slack-notifier (>= 2.0.0, < 3.0.0)
|
||||
terminal-notifier (>= 2.0.0, < 3.0.0)
|
||||
terminal-table (>= 1.4.5, < 2.0.0)
|
||||
tty-screen (>= 0.6.3, < 1.0.0)
|
||||
tty-spinner (>= 0.8.0, < 1.0.0)
|
||||
word_wrap (~> 1.0.0)
|
||||
xcodeproj (>= 1.8.1, < 2.0.0)
|
||||
xcpretty (~> 0.3.0)
|
||||
xcpretty-travis-formatter (>= 0.0.3)
|
||||
gh_inspector (1.1.3)
|
||||
google-api-client (0.23.9)
|
||||
addressable (~> 2.5, >= 2.5.1)
|
||||
googleauth (>= 0.5, < 0.7.0)
|
||||
httpclient (>= 2.8.1, < 3.0)
|
||||
mime-types (~> 3.0)
|
||||
representable (~> 3.0)
|
||||
retriable (>= 2.0, < 4.0)
|
||||
signet (~> 0.9)
|
||||
google-cloud-core (1.3.2)
|
||||
google-cloud-env (~> 1.0)
|
||||
google-cloud-env (1.2.1)
|
||||
faraday (~> 0.11)
|
||||
google-cloud-storage (1.16.0)
|
||||
digest-crc (~> 0.4)
|
||||
google-api-client (~> 0.23)
|
||||
google-cloud-core (~> 1.2)
|
||||
googleauth (>= 0.6.2, < 0.10.0)
|
||||
googleauth (0.6.7)
|
||||
faraday (~> 0.12)
|
||||
jwt (>= 1.4, < 3.0)
|
||||
memoist (~> 0.16)
|
||||
multi_json (~> 1.11)
|
||||
os (>= 0.9, < 2.0)
|
||||
signet (~> 0.7)
|
||||
highline (1.7.10)
|
||||
http-cookie (1.0.3)
|
||||
domain_name (~> 0.5)
|
||||
httpclient (2.8.3)
|
||||
json (2.3.1)
|
||||
jwt (2.1.0)
|
||||
memoist (0.16.0)
|
||||
mime-types (3.3)
|
||||
mime-types-data (~> 3.2015)
|
||||
mime-types-data (3.2019.1009)
|
||||
mini_magick (4.9.5)
|
||||
multi_json (1.14.1)
|
||||
multi_xml (0.6.0)
|
||||
multipart-post (2.0.0)
|
||||
nanaimo (0.2.6)
|
||||
naturally (2.2.0)
|
||||
os (1.0.1)
|
||||
plist (3.5.0)
|
||||
public_suffix (2.0.5)
|
||||
representable (3.0.4)
|
||||
declarative (< 0.1.0)
|
||||
declarative-option (< 0.2.0)
|
||||
uber (< 0.2.0)
|
||||
retriable (3.1.2)
|
||||
rouge (2.0.7)
|
||||
rubyzip (1.3.0)
|
||||
security (0.1.3)
|
||||
signet (0.11.0)
|
||||
addressable (~> 2.3)
|
||||
faraday (~> 0.9)
|
||||
jwt (>= 1.5, < 3.0)
|
||||
multi_json (~> 1.10)
|
||||
simctl (1.6.6)
|
||||
CFPropertyList
|
||||
naturally
|
||||
slack-notifier (2.3.2)
|
||||
terminal-notifier (2.0.0)
|
||||
terminal-table (1.8.0)
|
||||
unicode-display_width (~> 1.1, >= 1.1.1)
|
||||
tty-cursor (0.7.0)
|
||||
tty-screen (0.7.0)
|
||||
tty-spinner (0.9.1)
|
||||
tty-cursor (~> 0.7)
|
||||
uber (0.1.0)
|
||||
unf (0.1.4)
|
||||
unf_ext
|
||||
unf_ext (0.0.7.6)
|
||||
unicode-display_width (1.6.0)
|
||||
word_wrap (1.0.0)
|
||||
xcodeproj (1.13.0)
|
||||
CFPropertyList (>= 2.3.3, < 4.0)
|
||||
atomos (~> 0.1.3)
|
||||
claide (>= 1.0.2, < 2.0)
|
||||
colored2 (~> 3.1)
|
||||
nanaimo (~> 0.2.6)
|
||||
xcpretty (0.3.0)
|
||||
rouge (~> 2.0.7)
|
||||
xcpretty-travis-formatter (1.0.0)
|
||||
xcpretty (~> 0.2, >= 0.0.7)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
fastlane (= 2.134.0)
|
||||
|
||||
BUNDLED WITH
|
||||
2.0.2
|
||||
|
@ -1,10 +1,6 @@
|
||||
# This Gemfile is for the setup step of the Cirrus Mac tasks
|
||||
source 'https://rubygems.org'
|
||||
|
||||
# If fastlane fails with a wrong Google Cloud dependency, bump this version,
|
||||
# e.g. https://github.com/flutter/flutter/pull/43362
|
||||
gem 'fastlane', '2.134.0'
|
||||
|
||||
# Don't pin cocoapods so we can catch breakages from upstream changes, e.g.
|
||||
# https://github.com/flutter/flutter/issues/41144
|
||||
gem 'cocoapods'
|
||||
|
@ -7,13 +7,10 @@ GEM
|
||||
minitest (~> 5.1)
|
||||
thread_safe (~> 0.3, >= 0.3.4)
|
||||
tzinfo (~> 1.1)
|
||||
addressable (2.7.0)
|
||||
public_suffix (>= 2.0.2, < 5.0)
|
||||
algoliasearch (1.27.1)
|
||||
httpclient (~> 2.8, >= 2.8.3)
|
||||
json (>= 1.5.1)
|
||||
atomos (0.1.3)
|
||||
babosa (1.0.3)
|
||||
claide (1.0.3)
|
||||
cocoapods (1.8.4)
|
||||
activesupport (>= 4.0.2, < 5)
|
||||
@ -50,168 +47,37 @@ GEM
|
||||
nap (>= 0.8, < 2.0)
|
||||
netrc (~> 0.11)
|
||||
cocoapods-try (1.1.0)
|
||||
colored (1.2)
|
||||
colored2 (3.1.2)
|
||||
commander-fastlane (4.4.6)
|
||||
highline (~> 1.7.2)
|
||||
concurrent-ruby (1.1.5)
|
||||
declarative (0.0.10)
|
||||
declarative-option (0.1.0)
|
||||
digest-crc (0.4.1)
|
||||
domain_name (0.5.20190701)
|
||||
unf (>= 0.0.5, < 1.0.0)
|
||||
dotenv (2.7.5)
|
||||
emoji_regex (1.0.1)
|
||||
escape (0.0.4)
|
||||
excon (0.71.0)
|
||||
faraday (0.17.0)
|
||||
multipart-post (>= 1.2, < 3)
|
||||
faraday-cookie_jar (0.0.6)
|
||||
faraday (>= 0.7.4)
|
||||
http-cookie (~> 1.0.0)
|
||||
faraday_middleware (0.13.1)
|
||||
faraday (>= 0.7.4, < 1.0)
|
||||
fastimage (2.1.7)
|
||||
fastlane (2.134.0)
|
||||
CFPropertyList (>= 2.3, < 4.0.0)
|
||||
addressable (>= 2.3, < 3.0.0)
|
||||
babosa (>= 1.0.2, < 2.0.0)
|
||||
bundler (>= 1.12.0, < 3.0.0)
|
||||
colored
|
||||
commander-fastlane (>= 4.4.6, < 5.0.0)
|
||||
dotenv (>= 2.1.1, < 3.0.0)
|
||||
emoji_regex (>= 0.1, < 2.0)
|
||||
excon (>= 0.45.0, < 1.0.0)
|
||||
faraday (~> 0.17)
|
||||
faraday-cookie_jar (~> 0.0.6)
|
||||
faraday_middleware (~> 0.13.1)
|
||||
fastimage (>= 2.1.0, < 3.0.0)
|
||||
gh_inspector (>= 1.1.2, < 2.0.0)
|
||||
google-api-client (>= 0.21.2, < 0.24.0)
|
||||
google-cloud-storage (>= 1.15.0, < 2.0.0)
|
||||
highline (>= 1.7.2, < 2.0.0)
|
||||
json (< 3.0.0)
|
||||
jwt (~> 2.1.0)
|
||||
mini_magick (>= 4.9.4, < 5.0.0)
|
||||
multi_xml (~> 0.5)
|
||||
multipart-post (~> 2.0.0)
|
||||
plist (>= 3.1.0, < 4.0.0)
|
||||
public_suffix (~> 2.0.0)
|
||||
rubyzip (>= 1.3.0, < 2.0.0)
|
||||
security (= 0.1.3)
|
||||
simctl (~> 1.6.3)
|
||||
slack-notifier (>= 2.0.0, < 3.0.0)
|
||||
terminal-notifier (>= 2.0.0, < 3.0.0)
|
||||
terminal-table (>= 1.4.5, < 2.0.0)
|
||||
tty-screen (>= 0.6.3, < 1.0.0)
|
||||
tty-spinner (>= 0.8.0, < 1.0.0)
|
||||
word_wrap (~> 1.0.0)
|
||||
xcodeproj (>= 1.8.1, < 2.0.0)
|
||||
xcpretty (~> 0.3.0)
|
||||
xcpretty-travis-formatter (>= 0.0.3)
|
||||
fourflusher (2.3.1)
|
||||
fuzzy_match (2.0.4)
|
||||
gh_inspector (1.1.3)
|
||||
google-api-client (0.23.9)
|
||||
addressable (~> 2.5, >= 2.5.1)
|
||||
googleauth (>= 0.5, < 0.7.0)
|
||||
httpclient (>= 2.8.1, < 3.0)
|
||||
mime-types (~> 3.0)
|
||||
representable (~> 3.0)
|
||||
retriable (>= 2.0, < 4.0)
|
||||
signet (~> 0.9)
|
||||
google-cloud-core (1.3.2)
|
||||
google-cloud-env (~> 1.0)
|
||||
google-cloud-env (1.2.1)
|
||||
faraday (~> 0.11)
|
||||
google-cloud-storage (1.16.0)
|
||||
digest-crc (~> 0.4)
|
||||
google-api-client (~> 0.23)
|
||||
google-cloud-core (~> 1.2)
|
||||
googleauth (>= 0.6.2, < 0.10.0)
|
||||
googleauth (0.6.7)
|
||||
faraday (~> 0.12)
|
||||
jwt (>= 1.4, < 3.0)
|
||||
memoist (~> 0.16)
|
||||
multi_json (~> 1.11)
|
||||
os (>= 0.9, < 2.0)
|
||||
signet (~> 0.7)
|
||||
highline (1.7.10)
|
||||
http-cookie (1.0.3)
|
||||
domain_name (~> 0.5)
|
||||
httpclient (2.8.3)
|
||||
i18n (0.9.5)
|
||||
concurrent-ruby (~> 1.0)
|
||||
json (2.3.1)
|
||||
jwt (2.1.0)
|
||||
memoist (0.16.0)
|
||||
mime-types (3.3)
|
||||
mime-types-data (~> 3.2015)
|
||||
mime-types-data (3.2019.1009)
|
||||
mini_magick (4.9.5)
|
||||
minitest (5.12.2)
|
||||
molinillo (0.6.6)
|
||||
multi_json (1.14.1)
|
||||
multi_xml (0.6.0)
|
||||
multipart-post (2.0.0)
|
||||
nanaimo (0.2.6)
|
||||
nap (1.1.0)
|
||||
naturally (2.2.0)
|
||||
netrc (0.11.0)
|
||||
os (1.0.1)
|
||||
plist (3.5.0)
|
||||
public_suffix (2.0.5)
|
||||
representable (3.0.4)
|
||||
declarative (< 0.1.0)
|
||||
declarative-option (< 0.2.0)
|
||||
uber (< 0.2.0)
|
||||
retriable (3.1.2)
|
||||
rouge (2.0.7)
|
||||
ruby-macho (1.4.0)
|
||||
rubyzip (1.3.0)
|
||||
security (0.1.3)
|
||||
signet (0.11.0)
|
||||
addressable (~> 2.3)
|
||||
faraday (~> 0.9)
|
||||
jwt (>= 1.5, < 3.0)
|
||||
multi_json (~> 1.10)
|
||||
simctl (1.6.6)
|
||||
CFPropertyList
|
||||
naturally
|
||||
slack-notifier (2.3.2)
|
||||
terminal-notifier (2.0.0)
|
||||
terminal-table (1.8.0)
|
||||
unicode-display_width (~> 1.1, >= 1.1.1)
|
||||
thread_safe (0.3.6)
|
||||
tty-cursor (0.7.0)
|
||||
tty-screen (0.7.0)
|
||||
tty-spinner (0.9.1)
|
||||
tty-cursor (~> 0.7)
|
||||
tzinfo (1.2.5)
|
||||
thread_safe (~> 0.1)
|
||||
uber (0.1.0)
|
||||
unf (0.1.4)
|
||||
unf_ext
|
||||
unf_ext (0.0.7.6)
|
||||
unicode-display_width (1.6.0)
|
||||
word_wrap (1.0.0)
|
||||
xcodeproj (1.13.0)
|
||||
CFPropertyList (>= 2.3.3, < 4.0)
|
||||
atomos (~> 0.1.3)
|
||||
claide (>= 1.0.2, < 2.0)
|
||||
colored2 (~> 3.1)
|
||||
nanaimo (~> 0.2.6)
|
||||
xcpretty (0.3.0)
|
||||
rouge (~> 2.0.7)
|
||||
xcpretty-travis-formatter (1.0.0)
|
||||
xcpretty (~> 0.2, >= 0.0.7)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
cocoapods
|
||||
fastlane (= 2.134.0)
|
||||
xcpretty (= 0.3.0)
|
||||
|
||||
BUNDLED WITH
|
||||
2.0.2
|
||||
|
@ -1 +0,0 @@
|
||||
package_name "io.flutter.demo.gallery"
|
@ -1,25 +0,0 @@
|
||||
# Prevent Fastlane from overwriting README.md
|
||||
skip_docs
|
||||
|
||||
default_platform(:android)
|
||||
|
||||
# This should be run after running
|
||||
# flutter build apk --release
|
||||
# to build the app using the Flutter toolchain.
|
||||
platform :android do
|
||||
desc 'Push the built release APK to alpha or beta depending on current branch'
|
||||
lane :deploy_play_store do
|
||||
begin
|
||||
upload_to_play_store(
|
||||
track: 'alpha',
|
||||
apk: '../build/app/outputs/apk/release/app-release.apk',
|
||||
json_key_data: ENV['GOOGLE_DEVELOPER_SERVICE_ACCOUNT_ACTOR_FASTLANE'],
|
||||
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
|
@ -1,10 +0,0 @@
|
||||
FastLane documentation
|
||||
================
|
||||
This folder contains hermetic scripts to deploy a built APK to the play store.
|
||||
|
||||
This is done using the [FastLane](https://fastlane.tools) tool suite.
|
||||
|
||||
Deployment can be done manually by Googlers by following
|
||||
go/flutter-gallery-publish (internal doc).
|
||||
|
||||
Deployment is automatically done by Cirrus on tagged branch commits.
|
@ -1,9 +0,0 @@
|
||||
(Flutter is beta technology)
|
||||
|
||||
A gallery of widgets and behaviors, plus demos and vignettes, all built with Flutter.
|
||||
|
||||
Flutter is Google’s multi-platform mobile app SDK for crafting beautiful native experiences on iOS and Android in record time.
|
||||
|
||||
This app is open source. Check out the code to see how this app is built: https://github.com/flutter/flutter/tree/master/dev/integration_tests/flutter_gallery
|
||||
|
||||
Visit https://flutter.dev to learn more.
|
@ -1 +0,0 @@
|
||||
A gallery showcasing apps and widgets build using the Flutter framework
|
@ -1 +0,0 @@
|
||||
Flutter Gallery
|
@ -1,8 +0,0 @@
|
||||
app_identifier "io.flutter.demo.gallery" # The bundle identifier of your app
|
||||
apple_id "deploybot@flutter.io" # Your Apple email address
|
||||
|
||||
itc_team_id "118089806" # iTunes Connect Team ID
|
||||
team_id "S8QB4VV633" # Developer Portal Team ID
|
||||
|
||||
# For more information about the Appfile, see:
|
||||
# https://docs.fastlane.tools/advanced/#appfile
|
@ -1,84 +0,0 @@
|
||||
# Prevent Fastlane from overwriting README.md
|
||||
skip_docs
|
||||
|
||||
default_platform(:ios)
|
||||
|
||||
def suppress_output
|
||||
original_stdout, original_stderr = $stdout.clone, $stderr.clone
|
||||
$stderr.reopen File.new('/dev/null', 'w')
|
||||
$stdout.reopen File.new('/dev/null', 'w')
|
||||
yield
|
||||
ensure
|
||||
$stdout.reopen original_stdout
|
||||
$stderr.reopen original_stderr
|
||||
end
|
||||
|
||||
# This should be run after running
|
||||
# flutter build ios --release --no-codesign
|
||||
# to build the app using the Flutter toolchain. This lane is meant to only
|
||||
# rebuild the app by:
|
||||
# 1- Signing using the publishing credentials; and
|
||||
# 2- xcodebuild with archive option
|
||||
platform :ios do
|
||||
desc 'Push a new release to TestFlight'
|
||||
lane :build_and_deploy_testflight do |options|
|
||||
# Doesn't do anything when not on a CI bot. Even though it's called
|
||||
# "setup_travis", this also runs on Cirrus, since the CI environment
|
||||
# variable is set. When on a CI bot, it creates a temporary keychain and
|
||||
# switches "match" to readonly mode to not create new profiles/certs on CI.
|
||||
setup_travis
|
||||
|
||||
# Relative to this file.
|
||||
raw_version = File.read('../../../../../version')
|
||||
puts "Building and deploying version #{raw_version}..."
|
||||
|
||||
update_app_identifier(
|
||||
plist_path: 'Runner/Info.plist',
|
||||
# Let the checked-in bundle ID be different so users don't collide on
|
||||
# provisioning profile creation when building locally.
|
||||
app_identifier: 'io.flutter.demo.gallery'
|
||||
)
|
||||
|
||||
increment_version_number(
|
||||
# Only major, minor, patch digits and dots.
|
||||
version_number: /\d+\.\d+\.\d+/.match(raw_version)[0]
|
||||
)
|
||||
|
||||
# Stop fastlane from echoing back PUBLISHING_MATCH_CERTIFICATE_REPO var.
|
||||
# Doesn't matter too much since Cirrus doesn't echo back encrypted variables
|
||||
# anyway.
|
||||
suppress_output {
|
||||
# Retrieves all the necessary certs and provisioning profiles.
|
||||
sync_code_signing(
|
||||
git_url: "https://x-access-token:#{ENV['PUBLISHING_MATCH_REPO_TOKEN']}@#{ENV['PUBLISHING_MATCH_CERTIFICATE_REPO']}" ,
|
||||
type: 'appstore',
|
||||
readonly: true,
|
||||
)
|
||||
}
|
||||
puts 'Certificates and profiles installed'
|
||||
|
||||
# Modify the Xcode project to use the new team and profile.
|
||||
# It will put the git state to dirty but Travis will be wiped after
|
||||
# then run session.
|
||||
disable_automatic_code_signing
|
||||
update_project_provisioning(
|
||||
xcodeproj: 'Runner.xcodeproj',
|
||||
target_filter: 'Runner',
|
||||
build_configuration: 'Release',
|
||||
profile: ENV['sigh_io.flutter.demo.gallery_appstore_profile-path'],
|
||||
)
|
||||
|
||||
# Build and archive the app again.
|
||||
build_ios_app(
|
||||
workspace: 'Runner.xcworkspace',
|
||||
scheme: 'Runner',
|
||||
export_method: 'app-store',
|
||||
# Verify that the right signing identity is used for publishing.
|
||||
codesigning_identity: 'Apple Distribution: FLUTTER.IO LLC (S8QB4VV633)',
|
||||
)
|
||||
|
||||
if options[:upload]
|
||||
upload_to_testflight
|
||||
end
|
||||
end
|
||||
end
|
@ -1,18 +0,0 @@
|
||||
FastLane documentation
|
||||
================
|
||||
This folder contains hermetic scripts to re-build the app using a distribution
|
||||
profile and then deploy to TestFlight.
|
||||
|
||||
This is done using the [FastLane](https://fastlane.tools) tool suite.
|
||||
|
||||
Deployment can be done manually by Googlers by following
|
||||
go/flutter-gallery-publish (internal doc).
|
||||
|
||||
Deployment is automatically done by Cirrus on tagged branch commits.
|
||||
|
||||
## How to renew the Apple distribution certificate
|
||||
|
||||
In case the distribution certifcate expires, for example, this error message
|
||||
occured: "Your certificate ... is not valid, please check end date and
|
||||
renew it if necessary", a Googler can renew it by following the instructions at
|
||||
http://go/googler-flutter-signing#how-to-renew.
|
Loading…
x
Reference in New Issue
Block a user