Download script for deferred components assets (#88905)

This commit is contained in:
Gary Qian 2021-08-26 15:18:37 -07:00 committed by GitHub
parent 7c915fe29c
commit e702a2b8c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 0 deletions

View File

@ -30,6 +30,7 @@
.pub-cache/
.pub/
/build/
/customassets/
# Web related
lib/generated_plugin_registrant.dart

View File

@ -1,5 +1,13 @@
# Deferred components integration test app
## Setup
This integration test app requires manually downloading additional assets to build. Run
`./download_assets.sh`
before running any of the tests.
## Tests
This app contains two sets of tests:

View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
# Copyright 2014 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
mkdir customassets
curl https://raw.githubusercontent.com/flutter/goldens/0fbd6c5d30ec714ffefd63b47910aee7debd2e7e/dev/integration_tests/assets_for_deferred_components_test/flutter_logo.png --output customassets/flutter_logo.png
curl https://raw.githubusercontent.com/flutter/goldens/0fbd6c5d30ec714ffefd63b47910aee7debd2e7e/dev/integration_tests/assets_for_deferred_components_test/key.properties --output android/key.properties
curl https://raw.githubusercontent.com/flutter/goldens/0fbd6c5d30ec714ffefd63b47910aee7debd2e7e/dev/integration_tests/assets_for_deferred_components_test/testing-keystore.jks --output android/testing-keystore.jks