Todd Volkert
f0e8819886
Extract Android SDK version from named platform dirs. ( #13056 )
...
Previously, we were mapping certain named platforms
(e.g. `android-stable`) to their corresponding version.
this had two problems:
1. The version could become out of date. For instance, we had
mapped `android-stable` to version 24, but the stable version
is now 27.
2. The list of possible named versions wasn't comprehensive.
Some Android SDKs just list the platform as `stable`, or
`experimental`, etc.
This change updates the platform version detection to use
the `build.prop` file that exists in the platform directory
(only for cases where the version number is not encoded into
the directory name).
2017-11-16 17:38:53 -08:00
xster
987b205665
Delinting future awaits round 2 ( #10790 )
...
* round 2
* deal with null futures
* review
* review
* review
* review
2017-09-20 16:25:16 -07:00
Jason Simmons
1be406b1b5
Move the discovered Java installation to the front of PATH when running sdkmanager ( #10846 )
...
Fixes https://github.com/flutter/flutter/issues/10703
2017-06-20 09:53:01 -07:00
Chris Bracken
615410d2d2
Inject iOS, Android workflows via context ( #10750 )
...
Eliminates the need for the device/daemon code to get at the iOS/Android
tooling indirectly via Doctor. In tests, we now inject the workflow
objects (or mocks) directly.
2017-06-15 16:11:08 -07:00
Devon Carew
38891a2f72
IntelliJ and Flutter plugin version checks ( #10454 )
...
* add min version checks for IntelliJ
* validate the installed versions of IntelliJ and the flutter plugin
* review comments
2017-06-02 15:23:36 -07:00
Ian Hickson
dddf572780
Minor tweaks to flutter doctor ( #9963 )
2017-05-10 16:28:12 -07:00
Jason Simmons
d1fa21166b
Use runCommand to start sdkmanager and adjust the executable name for Windows ( #9962 )
...
Fixes https://github.com/flutter/flutter/issues/9954
2017-05-10 12:42:42 -07:00
Jason Simmons
f44ba8b9c9
Add a flutter doctor --android-licenses command that locates and runs the Android SDK license manager ( #9892 )
...
See https://github.com/flutter/flutter/issues/8438
2017-05-09 10:18:45 -07:00
Michael Goderbauer
9a05e984d8
Ask users to set ANDROID_HOME if SDK is installed in a non-standard location ( #9445 )
2017-04-18 11:56:09 -07:00
Jason Simmons
76bebeed9d
Instruct users to run Android Studio so it will install Android SDK components ( #9323 )
...
Fixes https://github.com/flutter/flutter/issues/8690
2017-04-13 11:28:18 -07:00
Alexandre Ardhuin
610955f81d
upgrade to linter-0.1.30 ( #9297 )
...
* upgrade to linter-0.1.30
* add prefer_is_empty lint
* add directives_ordering lint
* add no_adjacent_strings_in_list lint
* add no_duplicate_case_values lint
* add prefer_collection_literals lint
* add prefer_const_constructors lint
* add prefer_contains lint
* add prefer_initializing_formals lint
* add unnecessary_null_aware_assignments lint
* add unnecessary_null_in_if_null_operators lint
2017-04-08 08:43:19 +02:00
Michael Goderbauer
41edc1ac74
Use Java bundled with Android Studio for gradle ( #8965 )
...
* Use Java bundled with Android Studio for gradle
* review comments
2017-03-23 10:17:24 -07:00
John McCutchan
2148e9aff6
Improvements to flutter doctor JDK search. ( #8745 )
...
- [x] Add custom logic on MacOS to determine if Java is installed before invoking `java`.
- [x] Check JAVA_HOME, platform specific logic, and finally PATH to locate the `java` executable.
- [x] Improved doctor messages.
Fixes #8508
Fixes #8521
2017-03-14 09:57:34 -07:00
Chris Bracken
7a09316cd0
Declare locals final where not reassigned (flutter_tools) ( #8570 )
2017-03-03 17:50:46 -08:00
Michael Goderbauer
718859ad8d
Partially revert #8332 ( #8386 )
...
The JDK doesn't put `javac` in the PATH on Windows :(
2017-02-23 17:35:20 -08:00
Michael Goderbauer
99ae5a897e
Add line about Java version back to flutter doctor ( #8332 )
...
Line was accidentally removed by #8320
Also, change the version check from `java` to `javac` since we need the JDK and not just the JRE.
2017-02-22 13:01:53 -08:00
Michael Goderbauer
7db8241a6d
Revert "Revert "Replace jarsigner with apksigner" ( #8164 )" ( #8320 )
...
This reverts commit 70d7fe3a0dede9f3556fda8fe018dc4ed4a08490.
The Java version missmatch on the bots has been resolved.
2017-02-21 16:26:30 -08:00
Jakob Andersen
77efc38b67
Teach flutter tools to find gradle ( #8241 )
...
* Teach flutter tools to find gradle
Flutter tools will now use Gradle from Android Studio, which is now found automatically.
flutter doctor will verify that Android Studio has been installed, and that the included Gradle is at least version 2.14.1.
It is still possible to manually configure the path to Android Studio (flutter config --android-studio-dir=XXX) or Gradle (flutter config --gradle-dir=XXX), but this should only be necessary if they're installed somewhere non-standard.
Only tested on Linux and macOS for now.
Fixes #8131
2017-02-20 11:02:50 +01:00
Michael Goderbauer
70d7fe3a0d
Revert "Replace jarsigner with apksigner" ( #8164 )
2017-02-14 18:02:33 -08:00
Michael Goderbauer
b38a6cbbba
Replace jarsigner with apksigner ( #8154 )
2017-02-14 17:11:24 -08:00
Todd Volkert
417c2f25fc
Migrate flutter_tools to use package:platform ( #7642 )
2017-01-25 16:06:41 -08:00
Michael Goderbauer
aaaf0dac19
Teach Flutter Tools about IntelliJ and Android SDK on Windows. ( #7622 )
...
Required for https://github.com/flutter/flutter/issues/138
2017-01-24 16:53:20 -08:00
Todd Volkert
9ba607862e
Update to package:process v1.0.1 ( #7607 )
2017-01-24 10:09:29 -08:00
Todd Volkert
016b5ab0cc
Force all dart:io usage to go through 'base/io.dart' ( #7390 )
...
This ensures that accidental usages of dart:io's
file API don't creep in over time.
2017-01-09 08:37:00 -08:00
Todd Volkert
60b19b2035
Create abstraction layer for dart:io's Process commands ( #7100 )
...
With this change, they're run via instance methods on an object
obtained through the context. This will allow us to substitute
that object in tests with replay/record versions to allow us to
mock out the os-layer in tests.
2016-11-30 08:42:42 -08:00
Dan Rubel
311d371a97
display ANDROID_HOME env var in flutter doctor ( #6558 )
2016-10-27 22:24:50 +01:00
Dan Rubel
023b7de11f
show device list in flutter doctor output ( #5697 )
...
* show device list in flutter doctor output
fixes https://github.com/flutter/flutter/issues/5625
2016-09-01 17:55:16 -04:00
Devon Carew
99114cd414
show more errors on missing jarsigner ( #3626 )
2016-04-28 22:48:01 -07:00
Devon Carew
c3eec6ec4f
several fixes to the doctor command
2016-03-24 14:17:49 -07:00
Devon Carew
25f332d8d7
re-work the doctor command
2016-03-23 21:12:29 -07:00
Hixie
797e27edd3
Add @override annotations to flutter framework
2016-03-14 14:02:26 -07:00
Devon Carew
80d6130463
Update android_workflow.dart
2016-02-25 11:36:17 -08:00
Devon Carew
6e0c4f0fcf
Update android_workflow.dart
...
fix https://github.com/flutter/flutter/issues/2157
2016-02-25 09:25:06 -08:00
Devon Carew
9367b86abe
add a validator for Atom
2016-02-23 10:25:14 -08:00
Devon Carew
d5a6fceee5
add a summary option to the doctor class
2016-02-17 09:33:45 -08:00
Devon Carew
7ae6f7f391
make the ios development path less mandatory
2016-02-17 00:38:47 -08:00