Commit Graph

39 Commits

Author SHA1 Message Date
Zachary Anderson
6a6874ecf9
Update Android minSdkVersion to 21 (#142267)
This PR increases Android's `minSdkVersion` to 21.

There are two changes in this PR aside from simply increasing the number
from 19 to 21 everywhere.

First, tests using `flutter_gallery` fail without updating the
lockfiles. The changes in the PR are the results of running
`dev/tools/bin/generate_gradle_lockfiles.dart` on that app.

Second, from
[here](https://developer.android.com/build/multidex#mdex-pre-l):
> if your minSdkVersion is 21 or higher, multidex is enabled by default
and you don't need the multidex library.

As a result, the `multidex` option everywhere is obsolete. This PR
removes all logic and tests related to that option that I could find.
`Google testing` and `customer_tests` pass on this PR, so it seems like
this won't be too breaking if it is at all. If needed I'll give this
some time to bake in the framework before landing the flutter/engine
PRs.

Context: https://github.com/flutter/flutter/issues/138117,
https://github.com/flutter/flutter/issues/141277, b/319373605
2024-01-29 09:49:09 -08:00
Zachary Anderson
118c2df776
Allows adding a storage 'realm' to the storage base URL (#131951)
Context: https://github.com/flutter/flutter/issues/131862

This PR injects a "realm" component to the storage base URL when the contents of the file `bin/internal/engine.realm` is non-empty.

As documented in the PR, when the realm is `flutter_archives_v2`, and `bin/internal/engine.version` contains the commit hash for a commit in a `flutter/engine` PR, then the artifacts pulled by the tool will be the artifacts built by the presubmit checks for the PR.

This works for everything but the following two cases:
1. Fuchsia artifacts are not uploaded to CIPD by the Fuchsia presubmit builds.
2. Web artifacts are not uploaded to gstatic by the web engine presubmit builds.

For (1), the flutter/flutter presubmit `fuchsia_precache` is driven by a shell script outside of the repo. It will fail when the `engine.version` and `engine.realm` don't point to a post-submit engine commit.

For (2), the flutter/flutter web presubmit tests that refer to artifacts in gstatic hang when the artifacts aren't found, so this PR skips them.
2023-08-09 23:26:05 +00:00
Nabeel Parkar
e5a382ec92
Migrate activation issue template to Github form issues (#119916)
Migrate activation issue template to Github form issues
2023-02-28 08:08:01 +00:00
Deokgyu Yang
db8d1a4417
Add MSYS2 detection on Windows Terminal (#117612)
As the results of "uname -s" command is like the below on MSYS2 on
Windows Terminal,

MSYS_NT-10.0-22621

This patch fixes the Flutter command working on this kind of systems.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2023-01-12 22:15:11 +00:00
Christopher Fujino
6bb63ed0c8
[flutter_tools] port bash script to use sysctl not uname on macOS (#101308) 2022-04-05 14:17:29 -07:00
Zachary Anderson
657bca4b7f
[tool] Use an arm64 Dart SDK on arm64 macOS (#97189) 2022-01-26 11:30:20 -08:00
Bogdan Lukin
95e555344d
retry curl without --continue-at - flag (#95629) 2021-12-29 11:29:19 -08:00
Ian Hickson
bde9f11831
Add a test to verify that we only link to real issue templates (#93528) 2021-11-19 13:13:05 -08:00
Jonah Williams
54455c706d
conditionally set --verbose flag to curl (#76999) 2021-03-01 13:00:08 -08:00
Hidenori Matsubayashi
4cc0ab2d19
[flutter_tools] Add ARM64 Linux host and cross-building option support (#61221) 2021-02-12 14:25:30 -08:00
godofredoc
da6528cda6
Point to a new artifacts location. (#70673)
This is in preparation to move the flutter artifacts to a more secure
location.

Bug:
  go/fxb/64576
2021-02-04 18:44:47 -08:00
Jonah Williams
f1472e1fc4
[flutter_tools] only lock if an upgrade/download will be performed (linux/macos) and output building messages to stderr (#65422)
Currently an invocation of flutter/dart will always attempt to acquire a lock. This can pose problems for tools that attempt to run multiple dart/flutter instances.

Instead update the lock logic (on Linux/macOS) so that we only attempt to acquire it if an update/snapshot needs to be performed. To avoid repeatedly performing downloads/snapshots if multiple flutter/dart invocations are fired off concurrently when an update needs to be performed, do a second check of the download/snapshot condition after the lock is released.

Additionally, moves all of the building/debug output to stderr on both the bash and batch scripts. This allows machine mode consumption of the tool to ignore needing to parse/handle the rebuild messages.
2020-09-22 17:44:08 -07:00
Greg Spencer
6db22118ad
Make flutter and dart scripts invoke their batch file equivalents on Windows (#59789)
This makes the flutter and dart scripts invoke their batch file equivalents if running under MINGW (i.e. git-bash) on Windows.

This allows for proper locking, and makes sure that people aren't using two different (and non-mutally-aware) locking systems when running flutter on Windows.

I also fixed a couple of places where we look for MINGW32, which fails under MINGW64. It just looks for MINGW now.
2020-06-18 13:29:24 -07:00
Dmitry Mostovenko
9f92ec2651
Add error message about missing unzip utility (#55315) 2020-04-23 12:53:31 -07:00
Christopher Fujino
2cb0aa05a2
re-land "Retry cURL downloads" (#51518) 2020-02-27 11:02:00 -08:00
Vyacheslav Egorov
c0565c417b
Revert "Retry cURL downloads (#50731)" (#51466)
This reverts commit 492fb6381e.

Reason for revert: Dart HHH infrastructure including Golem builders are using older images which have older curl which does not support these flags. Upgrading images takes long time - so in the interim we are forced to revert to avoid accumulating gap in coverage.
2020-02-26 12:10:41 +01:00
Fedor Korotkov
492fb6381e
Retry cURL downloads (#50731)
Retry downloading Dart SDK at least 3 times with a 5 seconds wait in between retries
2020-02-25 22:29:16 -05:00
刘冲
51d5b1a2d5
Use the default find if possible else fall back (#47522) 2020-01-30 11:33:02 -08:00
Ian Hickson
449f4a6673
License update (#45373)
* Update project.pbxproj files to say Flutter rather than Chromium

Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright.

* Update the copyright notice checker to require a standard notice on all files

* Update copyrights on Dart files. (This was a mechanical commit.)

* Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine.

Some were already marked "The Flutter Authors", not clear why. Their
dates have been normalized. Some were missing the blank line after the
license. Some were randomly different in trivial ways for no apparent
reason (e.g. missing the trailing period).

* Clean up the copyrights in non-Dart files. (Manual edits.)

Also, make sure templates don't have copyrights.

* Fix some more ORGANIZATIONNAMEs
2019-11-27 15:04:02 -08:00
Jefferson Quesado
db041de63d Detecting when installing over MingW's Git Bash, fixing paths (#39699) 2019-10-24 11:06:46 -07:00
Tim Sneath
529189791c
Replace flutter.io with flutter.dev (#30562) 2019-04-05 11:39:30 -07:00
Todd Volkert
cb1c7a3664
Ensure that Dart SDK dirs have appropriate permissions (#26315)
This is a partial re-application of #24669

https://github.com/flutter/flutter/issues/24413
2019-02-15 11:03:57 -05:00
Jonah Williams
3d2f98498f
handle missing curl (#27295) 2019-01-30 12:53:23 -08:00
Ian Hickson
fb88a7bfd1
Update links for China help (#25238)
We have a page on the Web page now.
2018-12-21 10:12:49 -08:00
Jonah Williams
c461e93363
Revert "Ensure that cache dirs and files have appropriate permissions" (#25240) 2018-12-11 15:33:57 -08:00
Todd Volkert
74ab1bfbbd
Ensure that cache dirs and files have appropriate permissions (#24669)
Fixes https://github.com/flutter/flutter/issues/24413
2018-12-10 13:39:50 -08:00
Ian Hickson
f9374fe071
Update the URL to the recommend bug report (#23708)
We have templates now.
2018-11-07 17:12:35 -08:00
xster
bdc06194fb
Prompt a solution message when flutter tools network fail in China (#16244) 2018-04-06 18:44:05 -07:00
Ohad Rau
e1946f1f68 Fix absolute shebangs in install scripts (#16135)
* Fix absolute shebang in /bin/flutter

* Fix absolute shebang in bin/internal/update_dart_sdk.sh
2018-04-02 22:21:04 -07:00
Alexander Aprelev
a448994543
Use the Dart SDK built from Flutter engine rather than from dartlang.org (#14610)
* Use engine-built dart sdk

* Download dart-sdk from engine

* Move up deps to fix dart sdk constraint problem

* Update update_dart_sdk.ps1 for Windows

* Fix tests so they pass analysis

* More types for tests

* Roll engine

* Update dart sdk stamp location in flutter.bat

* Add newline
2018-02-14 07:18:25 -08:00
Jakob Andersen
e1018fab34
Make artifacts URLs configurable. (#13380)
Add support for configuring the base storage URL for Flutter's
artifacts. If FLUTTER_STORAGE_BASE_URL is set, use it instead of
storage.googleapis.com.

The pub server can be overridden by setting PUB_HOSTED_URL.
2017-12-07 16:30:23 +01:00
Jason Simmons
bb2554abcd Fix the continue-at flag in the curl command used to download the Dart SDK (#11757)
Fixes https://github.com/flutter/flutter/issues/11722
2017-08-23 11:28:19 -07:00
Devon Carew
3b35c0c9fc copy the dart sdk directory when we're upgrading it (#11331) 2017-07-20 21:34:27 -07:00
Alexander Aprelev
272faba1c0 Support 'be' channel so you can download dart-sdk from the tip. (#10625)
* Support 'be' channel so you can download dart-sdk from the tip.

This is triggered when you put 'hash/<build hash>' into dart-sdk.version file. For example, 'hash/c0617d20158955d99d6447036237fe2639ba088c'

* Add README.md

* Fix grammar, spacing, 80 chars, nicer ===
2017-06-13 08:28:16 -07:00
Brian Slesinsky
054c937917 don't use curl progress bar since it looks bad in IDEA console window (#9538)
Without this flag, it shows progress via increasing numbers instead of a progress bar. For some reason, the IDEA console seems to be okay with that.
2017-04-23 10:30:27 -07:00
Todd Volkert
ca2bf1efd0 Redirect curl's stderr to stdout, since it draws its progress bar to stderr (#9497) 2017-04-20 11:37:10 -07:00
Michael Goderbauer
51dc83dd80 Launch Flutter Tools on Windows. (#7613)
This brings the Windows script up to par with the Linux/Mac script.

`flutter doctor` works.

There are two scripts (`bin/flutter` and `bin/internal/update_dart-sdk`), which are platform dependent (bash script on Linux/Max, PowerShell script on Windows) and we need to keep an eye on making sure that their logic stays in sync. Both scripts are rather simple and I am not expecting many changes to them. I also made sure that both versions follow the same structure to make it easier to keep them consistent.

Required for https://github.com/flutter/flutter/issues/138
2017-01-24 10:58:11 -08:00
Chris Bracken
ab939ec61f Handle Flutter SDK paths with spaces in doctor (#6578) 2016-10-28 08:32:30 -07:00
Dan Rubel
94a83af5b1 Cleanup bin/cache (#6247) 2016-10-07 15:24:19 -04:00