From 74c3ea4d41ffea6372b09fe6360baa194a694e62 Mon Sep 17 00:00:00 2001 From: keyonghan <54558023+keyonghan@users.noreply.github.com> Date: Mon, 5 Oct 2020 19:12:02 -0700 Subject: [PATCH] Remove deployment to play store for linux case in deploy_gallery test (#67349) --- .cirrus.yml | 15 +- dev/bots/deploy_gallery.sh | 41 ----- dev/ci/docker_linux/Dockerfile | 2 +- dev/ci/docker_linux/Gemfile | 4 - dev/ci/docker_linux/Gemfile.lock | 148 ------------------ dev/ci/mac/Gemfile | 4 - dev/ci/mac/Gemfile.lock | 136 +--------------- .../flutter_gallery/android/fastlane/Appfile | 1 - .../flutter_gallery/android/fastlane/Fastfile | 25 --- .../android/fastlane/README.md | 10 -- .../android/en-US/full_description.txt | 9 -- .../android/en-US/short_description.txt | 1 - .../fastlane/metadata/android/en-US/title.txt | 1 - .../fastlane/metadata/android/en-US/video.txt | 0 .../flutter_gallery/ios/fastlane/Appfile | 8 - .../flutter_gallery/ios/fastlane/Fastfile | 84 ---------- .../flutter_gallery/ios/fastlane/README.md | 18 --- 17 files changed, 4 insertions(+), 503 deletions(-) delete mode 100644 dev/integration_tests/flutter_gallery/android/fastlane/Appfile delete mode 100644 dev/integration_tests/flutter_gallery/android/fastlane/Fastfile delete mode 100644 dev/integration_tests/flutter_gallery/android/fastlane/README.md delete mode 100644 dev/integration_tests/flutter_gallery/android/fastlane/metadata/android/en-US/full_description.txt delete mode 100644 dev/integration_tests/flutter_gallery/android/fastlane/metadata/android/en-US/short_description.txt delete mode 100644 dev/integration_tests/flutter_gallery/android/fastlane/metadata/android/en-US/title.txt delete mode 100644 dev/integration_tests/flutter_gallery/android/fastlane/metadata/android/en-US/video.txt delete mode 100644 dev/integration_tests/flutter_gallery/ios/fastlane/Appfile delete mode 100644 dev/integration_tests/flutter_gallery/ios/fastlane/Fastfile delete mode 100644 dev/integration_tests/flutter_gallery/ios/fastlane/README.md diff --git a/.cirrus.yml b/.cirrus.yml index e16f40ebd8..990a058cce 100644 --- a/.cirrus.yml +++ b/.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 diff --git a/dev/bots/deploy_gallery.sh b/dev/bots/deploy_gallery.sh index cf33eb3021..69be7f29e0 100755 --- a/dev/bots/deploy_gallery.sh +++ b/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." diff --git a/dev/ci/docker_linux/Dockerfile b/dev/ci/docker_linux/Dockerfile index 06b3313ce7..05afc966f5 100644 --- a/dev/ci/docker_linux/Dockerfile +++ b/dev/ci/docker_linux/Dockerfile @@ -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. diff --git a/dev/ci/docker_linux/Gemfile b/dev/ci/docker_linux/Gemfile index 9fdb92a40b..f94d8b4020 100644 --- a/dev/ci/docker_linux/Gemfile +++ b/dev/ci/docker_linux/Gemfile @@ -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' diff --git a/dev/ci/docker_linux/Gemfile.lock b/dev/ci/docker_linux/Gemfile.lock index f7d5092cf8..f2bb79dfbb 100644 --- a/dev/ci/docker_linux/Gemfile.lock +++ b/dev/ci/docker_linux/Gemfile.lock @@ -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 diff --git a/dev/ci/mac/Gemfile b/dev/ci/mac/Gemfile index 011abee7e0..df73d9d050 100644 --- a/dev/ci/mac/Gemfile +++ b/dev/ci/mac/Gemfile @@ -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' diff --git a/dev/ci/mac/Gemfile.lock b/dev/ci/mac/Gemfile.lock index 4fa7b135c7..eeadd4e4f0 100644 --- a/dev/ci/mac/Gemfile.lock +++ b/dev/ci/mac/Gemfile.lock @@ -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 diff --git a/dev/integration_tests/flutter_gallery/android/fastlane/Appfile b/dev/integration_tests/flutter_gallery/android/fastlane/Appfile deleted file mode 100644 index 08f55239f6..0000000000 --- a/dev/integration_tests/flutter_gallery/android/fastlane/Appfile +++ /dev/null @@ -1 +0,0 @@ -package_name "io.flutter.demo.gallery" diff --git a/dev/integration_tests/flutter_gallery/android/fastlane/Fastfile b/dev/integration_tests/flutter_gallery/android/fastlane/Fastfile deleted file mode 100644 index 73bdd64166..0000000000 --- a/dev/integration_tests/flutter_gallery/android/fastlane/Fastfile +++ /dev/null @@ -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 diff --git a/dev/integration_tests/flutter_gallery/android/fastlane/README.md b/dev/integration_tests/flutter_gallery/android/fastlane/README.md deleted file mode 100644 index 6030165b36..0000000000 --- a/dev/integration_tests/flutter_gallery/android/fastlane/README.md +++ /dev/null @@ -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. diff --git a/dev/integration_tests/flutter_gallery/android/fastlane/metadata/android/en-US/full_description.txt b/dev/integration_tests/flutter_gallery/android/fastlane/metadata/android/en-US/full_description.txt deleted file mode 100644 index 000206cb10..0000000000 --- a/dev/integration_tests/flutter_gallery/android/fastlane/metadata/android/en-US/full_description.txt +++ /dev/null @@ -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. \ No newline at end of file diff --git a/dev/integration_tests/flutter_gallery/android/fastlane/metadata/android/en-US/short_description.txt b/dev/integration_tests/flutter_gallery/android/fastlane/metadata/android/en-US/short_description.txt deleted file mode 100644 index 04c96fa743..0000000000 --- a/dev/integration_tests/flutter_gallery/android/fastlane/metadata/android/en-US/short_description.txt +++ /dev/null @@ -1 +0,0 @@ -A gallery showcasing apps and widgets build using the Flutter framework \ No newline at end of file diff --git a/dev/integration_tests/flutter_gallery/android/fastlane/metadata/android/en-US/title.txt b/dev/integration_tests/flutter_gallery/android/fastlane/metadata/android/en-US/title.txt deleted file mode 100644 index 9f39b01e00..0000000000 --- a/dev/integration_tests/flutter_gallery/android/fastlane/metadata/android/en-US/title.txt +++ /dev/null @@ -1 +0,0 @@ -Flutter Gallery \ No newline at end of file diff --git a/dev/integration_tests/flutter_gallery/android/fastlane/metadata/android/en-US/video.txt b/dev/integration_tests/flutter_gallery/android/fastlane/metadata/android/en-US/video.txt deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/dev/integration_tests/flutter_gallery/ios/fastlane/Appfile b/dev/integration_tests/flutter_gallery/ios/fastlane/Appfile deleted file mode 100644 index a013fdd5b3..0000000000 --- a/dev/integration_tests/flutter_gallery/ios/fastlane/Appfile +++ /dev/null @@ -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 diff --git a/dev/integration_tests/flutter_gallery/ios/fastlane/Fastfile b/dev/integration_tests/flutter_gallery/ios/fastlane/Fastfile deleted file mode 100644 index d0590a4492..0000000000 --- a/dev/integration_tests/flutter_gallery/ios/fastlane/Fastfile +++ /dev/null @@ -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 diff --git a/dev/integration_tests/flutter_gallery/ios/fastlane/README.md b/dev/integration_tests/flutter_gallery/ios/fastlane/README.md deleted file mode 100644 index 3f040a7965..0000000000 --- a/dev/integration_tests/flutter_gallery/ios/fastlane/README.md +++ /dev/null @@ -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.