Remove deployment to play store for linux case in deploy_gallery test (#67349)
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user