liyuqian
ae8586cfa1
Show help info instead of crashing if Android SDK is not found ( #17610 )
...
Fixes #16832
2018-05-15 14:42:12 -07:00
Vyacheslav Egorov
4931b46772
Make --build-shared-library more robust. ( #17420 )
...
* Search for a suitable ARM sysroot instead of hardcoding it;
* Add facility to explain why NDK was not found;
2018-05-14 16:36:54 +02:00
Danny Tuppeny
7a810261fa
Only wait up to 3 seconds for emulator
...
Emaultor keeps running on a seuccessful launch, so this automatically returns after 3 seconds if the process hasn't quit (we have to wait for some period to get stderr in the case of a failure).
2018-05-09 16:03:59 +01:00
Danny Tuppeny
11076bfb43
Add missing awaits
2018-05-09 16:03:59 +01:00
Danny Tuppeny
90bdcef9f9
Remove redundant lines from errors
2018-05-09 16:03:59 +01:00
Danny Tuppeny
da5a64ec7f
More Windows fixes
...
Added an exists check to ensure we don't try to run if emulator is missing, but that requires the file extension for Windows.
2018-05-09 16:03:59 +01:00
Danny Tuppeny
1037586dd7
Don't try to build emulators from empty output
2018-05-09 16:03:59 +01:00
Danny Tuppeny
7a33888693
Tidy up
2018-05-09 16:03:59 +01:00
Danny Tuppeny
5793a3c372
Fix crash on Windows caused by no HOME var
...
Windows sets HOMEDRIVE/HOMEPATH.
2018-05-09 16:03:59 +01:00
Danny Tuppeny
b096c57bbd
Remove launch status
...
It's too fast and leaves weird output on the screen
2018-05-09 16:03:59 +01:00
Danny Tuppeny
6ff84d084b
Improve formatting
2018-05-09 16:03:59 +01:00
Danny Tuppeny
799678f0a7
Add some tests around device+ini parsing
2018-05-09 16:03:59 +01:00
Danny Tuppeny
4c67885b8e
Add support for launching emulators
2018-05-09 16:03:59 +01:00
Danny Tuppeny
4d7c3c775f
Read information about AVDs from config.ini
2018-05-09 16:03:59 +01:00
Danny Tuppeny
2bdb3bbe0e
Fix references to Devices and remove unused properties
2018-05-09 16:03:59 +01:00
Danny Tuppeny
53840fb0ce
Add basic support for listing Android AVDs
...
Very basic support for "flutter emulators" which just lists the available Android AVDs.
Relates to:
https://github.com/flutter/flutter/issues/14822
https://github.com/Dart-Code/Dart-Code/issues/490
https://github.com/flutter/flutter/issues/13379
2018-05-09 16:03:59 +01:00
Devon Carew
647c57dabd
update the build complete message to not include APK sizes for debug builds ( #16931 )
2018-04-25 20:38:33 -07:00
Hans Muller
0260642fc5
Revert some uses of Number.tryParse() ( #16546 )
...
Revert some uses of Number.tryParse(), ignore deprecation warnings for Number.parse()
2018-04-12 19:16:44 -07:00
Alexander Aprelev
e0cd42e4ad
Roll engine to 76cb311d9c33720dcd19274228b39ecdbad8d9af (with rolled dart) ( #16518 )
...
* Handle error count reported by frontend.
Extend compilation result from single string to a structure(string filename and integer error count).
* Use ?.
* Include engine roll with dart sdk roll.
* parse(onError) -> tryParse
* Make '?? throw' more readable and avoid issue with analyzer
* Fix test so it mocks compiler output including errors count
2018-04-12 16:28:01 -07:00
Todd Volkert
d9a3ced9db
Check whether we can run sdkmanager in AndroidWorkflow.licensesAccepted ( #16343 )
...
Fixes https://github.com/flutter/flutter/issues/16332
2018-04-09 08:57:11 -07:00
Konstantin Scheglov
4658ec0f9c
Extract checking IntelliJ packages into a helper and use for Android Studio. ( #16198 )
2018-04-04 10:48:46 -07:00
Todd Volkert
d4084cde7d
Revert "Adds Java EE module to SDK manager calls" ( #16227 )
...
This reverts https://github.com/flutter/flutter/pull/16035
2018-04-04 09:46:26 -07:00
Luke
0c18d29643
Adds Java EE module to SDK manager environment to stop missing xml library exception when checking for licenses. ( #16035 )
2018-04-02 23:06:28 -07:00
Ralph Bergmann
895707324d
improve Flutter build commands ( #15788 )
...
add --buildNumber and --buildName to flutter build like
flutter build apk --buildNumber=42 --buildName=1.0.42
2018-03-29 05:58:31 -07:00
Todd Volkert
8d11f5c763
Make AppContext immutable and race-free ( #15984 )
...
This updates AppContext per the recommendations in #15352
Fixes #15352
2018-03-28 10:58:28 -07:00
Mikkel Nygaard Ravn
8b25d4eadb
Add missing awaits ( #15595 )
2018-03-21 00:44:19 +01:00
Vilk
568ce697b4
add Samsung SM-J730F to isLocalEmulator ( #15517 )
...
Add another rel device to isLocalEmulator to make working flutter run --release
2018-03-19 21:40:34 -07:00
Alexander Aprelev
43284d70d9
Reland filesystem options support with fix for Windows test. ( #15655 )
...
* Revert "Revert "Reland pass filesystem options (#15622 )" (#15651 )"
This reverts commit 0f3eada0664e208bb8c65a5aa02daec38997e8b9.
* Fix for windows failing test
* !isEmpty -> isNotEmpty
2018-03-17 12:47:40 -07:00
Alexander Aprelev
0f3eada066
Revert "Reland pass filesystem options ( #15622 )" ( #15651 )
...
This reverts commit bbcf55a5b086559dc992c0657bcde0d95c1bc26e as it breaks hot reload on Windows.
2018-03-17 08:11:52 -07:00
Alexander Aprelev
bbcf55a5b0
Reland pass filesystem options ( #15622 )
...
* Revert "Revert "Pass filesystem-root, filesystem-scheme options through `flutter run, build` and gradle. (#15592 )" (#15621 )"
This reverts commit c663e3367da7c6b8b6571e7fcbf3b1050c805c78.
* Check whether filesystem-root is emtpy.
* Restore broken merge
* Fix windows test
* Adjust regex in test. Invalidate files by file path.
2018-03-17 06:49:15 -07:00
Alexander Aprelev
c663e3367d
Revert "Pass filesystem-root, filesystem-scheme options through flutter run, build and gradle. ( #15592 )" ( #15621 )
...
This reverts commit 0f659fb10b84fc0192c06ce351b00f6900b3408a as it
breaks bin/tasks/gradle_plugin_test.dart.
2018-03-16 12:28:30 -07:00
Alexander Aprelev
0f659fb10b
Pass filesystem-root, filesystem-scheme options through flutter run, build and gradle. ( #15592 )
...
* Pass filesystem-root, filesystem-scheme options through flutter run/build/gradle.
2018-03-16 11:16:54 -07:00
Alexandre Ardhuin
7667db6362
apply upcomming prefer_const_declarations ( #15498 )
2018-03-14 06:24:49 +01:00
Jason Simmons
466d15433f
Use Dart 2 camel case constants ( #15360 )
2018-03-12 11:06:32 -07:00
jcollins-g
050ee9d180
Improve robustness of --version parsing for sdkmanager ( #15029 )
2018-03-01 14:25:03 -08:00
jcollins-g
614df6949c
Android license detector in doctor, take two ( #14783 )
...
* Revert "Revert "Add android license verification to doctor and some refactoring" (#14727 )"
This reverts commit d26029475222e8b1c7d8b80072c6b6261e2c3551.
* Add tests, fix sdkManagerEnv and use it consistently, and rearrange Status object model
* AnsiSpinner needs to leave the cursor where it found it.
* fix tests
* Const constructor warning only shows up on windows...?
* Avoid crash if we can't find the home directory
* Make pathVarSeparator return a string in the mock
* Implement review comments
* Fix out-of-order problem on stop
2018-02-28 12:09:52 -08:00
Todd Volkert
21c514fc56
Wire up support for --skia-deterministic-rendering ( #14802 )
...
https://github.com/flutter/flutter/issues/14519
2018-02-20 23:22:58 -08:00
Mikkel Nygaard Ravn
2000435728
Move plugin injection to just after pub get ( #14743 )
2018-02-16 10:17:28 +01:00
asiva
11105bed4d
- Roll engine to version 9867298f86a7ccd5f1c07a83796ee21567d37fb0
...
- Remove redundant strong flag as it is the default for preview-dart-2
now
2018-02-15 17:45:36 -08:00
Mikkel Nygaard Ravn
c2e1bc0322
Revert "Move plugin injection to just after pub get ( #14560 )" ( #14734 )
...
This reverts commit b3e4976ca20dc878bd8a484b877b66351bed86e4.
2018-02-15 22:55:36 +01:00
Mikkel Nygaard Ravn
b3e4976ca2
Move plugin injection to just after pub get ( #14560 )
2018-02-15 22:17:12 +01:00
Todd Volkert
d260294752
Revert "Add android license verification to doctor and some refactoring" ( #14727 )
...
Reports from that commit included:
* Doctor hanging
* Doctor prompting to install JDK
* AnsiStatus.cancel() printing elapsed time and extra newline
* Printing extra spinner character at the end of each line
2018-02-15 09:13:56 -08:00
jcollins-g
59fe5d0f46
Add android license verification to doctor and some refactoring ( #14535 )
...
* Initial version, seems to work
* Unit test for android license checker
* Cleanups
* Windows analyzer wants const.
* Refinements to timeout
* review comments
* Forgot a nit
2018-02-14 15:25:12 -08:00
Jason Simmons
09aa673b1d
Revert "Disable selection of the Android ARM64 target platform based on the attached device" ( #14650 )
...
This reverts commit cdb581807cc11030b63d00c04bb2d55fcb3d7ef4.
Dart has been updated in the engine, and this workaround should no longer be necessary.
Fixes https://github.com/flutter/flutter/issues/14646
2018-02-12 13:56:17 -08:00
Jacob Richman
2c05ecab9f
Flutter tools support for kernel transformer tracking Widget creation locations. ( #13997 )
2018-02-12 10:44:31 -08:00
Jason Simmons
fa122f5a6b
Disable selection of the Android ARM64 target platform based on the attached device ( #14581 )
...
The current ARM64 back end generates code that crashes on some devices,
including Pixel phones. With this change, the android-arm64 target will
not be used by "flutter run" unless explicitly requested.
This is intended as a workaround until we can roll out an engine with the
required Dart VM fix.
See https://github.com/flutter/flutter/issues/14454
2018-02-08 17:51:20 -08:00
Jason Simmons
3c9ad811f7
Add a flutter run option that can override the default target platform ( #14537 )
...
By default flutter run will build a 64-bit APK if the attached Android device
is 64-bit. Specifying --target-platform=android-arm will deploy a 32-bit APK
to a 64-bit device.
Fixes https://github.com/flutter/flutter/issues/14526
2018-02-08 14:56:01 -08:00
jcollins-g
7982694a0c
Hide the NDK warning that should never happen with a regexp ( #14503 )
2018-02-08 12:16:04 -08:00
asiva
83e0ca24fd
Fuse --strong into --preview-dart-2 option.
2018-02-08 09:18:52 -08:00
Alexandre Ardhuin
c02b6a8bcf
some whitespace cleanup ( #14443 )
2018-02-02 23:27:29 +01:00