Devon Carew
3b3b0ff1bb
make sdb getprop less verbose ( #4053 )
2016-05-19 14:10:09 -07:00
Jason Simmons
fc61060421
Log an error if the Android intent fails during flutter refresh ( #3988 )
2016-05-17 14:35:11 -07:00
Jason Simmons
c192a7e4ca
Replace the checked flag in DebuggingOptions with the build mode ( #3901 )
...
This also fixes some related problems affecting "flutter run":
* FLXes built during AndroidDevice.startApp need to match the build mode
* APKs should always be rebuilt if the build mode uses AOT compilation
2016-05-17 12:38:25 -07:00
Devon Carew
cc5d1adcfc
handle an exit code from android n ( #3914 )
...
* handle an exit code from android n
* review comments
2016-05-13 16:47:30 -07:00
Devon Carew
40c0d6ea12
Consolidate observatory code ( #3892 )
...
* rename service_protocol.dart to protocol_discovery.dart
* add a wrapper around the obs. protocol
* use json-rpc in run
* consolidate obs. code; implement flutter run --benchmark
* review comments
2016-05-12 18:15:23 -07:00
Phil Quitslund
616d9e2ea8
Merge pull request #3880 from pq/void_setters
...
Turn on `avoid_return_types_on_setters` and cleanup annotated setters.
2016-05-12 12:28:15 -07:00
Jason Simmons
a590ee2671
Remove BuildConfigurations ( #3879 )
...
Artifacts from local engine builds will be found based on the --local-engine flag
2016-05-12 12:22:15 -07:00
pq
e54196d7fc
Turn on avoid_return_types_on_setters
and cleanup annotated setters.
...
It's safe to remove the unneeded `void`s from setters since the blocking issues in the
`always_declare_return_types` lint have been fixed (https://github.com/dart-lang/linter/ ). We can also safely flip the bit on `avoid_return_types_on_setters`.
2016-05-12 11:45:30 -07:00
Jason Simmons
0f53f7966b
Remove Toolchain and extend ToolConfiguration to locate host tools such as sky_snapshot ( #3870 )
...
Host tools can be found in the artifact cache directory for the host platform.
If a developer wants to use a local engine build instead, then provide an
--engine-build flag that selects the specific engine build variant.
2016-05-11 15:47:26 -07:00
Devon Carew
45db865079
be more lenient when looking for matching android sdk components ( #3830 )
...
* be more lenient when looking for matching android sdk components
* use a null aware operator
2016-05-11 15:34:24 -07:00
Collin Jackson
e2ab858202
Fix #3825 crash installing onto certain Android devices
2016-05-11 09:32:35 -07:00
Jason Simmons
4d0e6984c2
Build tool support for Android x86 targets in 32- or 64-bit modes ( #3761 )
2016-05-05 16:04:22 -07:00
Devon Carew
f34d31717c
complain on missing entries in flutter.yaml ( #3731 )
...
* complain on missing entries in flutter.yaml
* change to a hard failure
2016-05-04 12:33:34 -07:00
Devon Carew
e365453eac
better parsing of adb devices output ( #3726 )
...
* better parsing of adb devices output
* re-order lines
2016-05-04 12:32:46 -07:00
Devon Carew
c9010c91f6
fix analysis errors ( #3677 )
...
* fix analysis errors
* review comments; fix test
* re-add an export for debugPrint
2016-05-03 09:09:00 -07:00
Jason Simmons
30d8dc1399
Check the adb install output for errors and stop "flutter run" if package installation fails ( #3672 )
2016-05-02 14:11:40 -07:00
Devon Carew
60755f6d9c
fix an issue parsing adb output ( #3629 )
2016-04-29 09:52:44 -07:00
Devon Carew
99114cd414
show more errors on missing jarsigner ( #3626 )
2016-04-28 22:48:01 -07:00
Yegor
c2cccc7b3b
[tools] teach flutter run to get startup trace info ( #3589 )
2016-04-27 17:58:20 -07:00
Devon Carew
b0dca79671
Flutter run ( #3553 )
...
* rework flutter run
* fix npe with --debug-port
* connect to obs and exit when that conneciton closes
* update todos
2016-04-27 14:43:42 -07:00
Devon Carew
ace1a64bfd
don't print installing device twice ( #3520 )
2016-04-25 09:25:47 -07:00
Jason Simmons
8451b669c8
Collect trace data through the observatory HTTP interface ( #3393 )
2016-04-19 10:38:49 -07:00
Devon Carew
26906240e5
fix an issue parsing adb devices ( #3235 )
2016-04-11 07:50:03 -07:00
Devon Carew
1311ae6ffe
add a target for android-x64 ( #3224 )
...
* add a target for android-x64
* update armeabi-v7a to x86_64
2016-04-08 14:04:46 -07:00
Adam Barth
e456d86327
Update engine ( #3214 )
...
Also, update hello_android to use the new Java class names.
2016-04-08 10:25:41 -07:00
Jason Simmons
9d022ed26d
Add a command that can capture a Skia picture of a Flutter frame and send it to a file or skiaserve debugger ( #3165 )
2016-04-07 12:33:11 -07:00
Jason Simmons
379c563b62
Merge pull request #3034 from jason-simmons/gradle_flx_refresh
...
Support "flutter refresh" in the Gradle-based sample project
2016-04-01 12:39:04 -07:00
Jason Simmons
d4bc6d5e0c
Add all variants of the Roboto font as assets to Material Design apps
2016-03-28 09:53:16 -07:00
Devon Carew
15b9e1ddb0
add a screenshot command
2016-03-25 22:01:32 -07:00
Devon Carew
2fc8e9a110
create a crash report
2016-03-25 13:29:15 -07:00
Devon Carew
c3eec6ec4f
several fixes to the doctor command
2016-03-24 14:17:49 -07:00
Devon Carew
7940e26b04
Merge pull request #2862 from devoncarew/less_noisy_android
...
filter some noisy messages from adb logcat
2016-03-24 09:20:20 -07:00
Devon Carew
25f332d8d7
re-work the doctor command
2016-03-23 21:12:29 -07:00
Devon Carew
017f0271b7
filter some noisy messages from adb logcat
2016-03-23 21:12:04 -07:00
Devon Carew
99b70dab62
handle android n in the android sdk
2016-03-17 15:30:47 -07:00
John McCutchan
83e6ee36a0
Sniff service protocol port from device
2016-03-17 11:44:16 -07:00
Hixie
797e27edd3
Add @override annotations to flutter framework
2016-03-14 14:02:26 -07:00
Ian Hickson
d745e20853
Even more types
2016-03-14 09:41:54 -07:00
Devon Carew
f13314867c
Merge pull request #2645 from devoncarew/platform_constants
...
rename the platform constants
2016-03-12 12:46:55 -08:00
Devon Carew
3ce1685d6d
update comments for android abi
2016-03-12 11:47:50 -08:00
Devon Carew
e939b152af
rename the platform constants
2016-03-12 11:08:21 -08:00
Devon Carew
5b383a0353
Merge pull request #2643 from devoncarew/fix_adb_forward
...
fix a regression in adb forward
2016-03-12 11:00:08 -08:00
Devon Carew
ce9111b591
fix a regression in adb forward
2016-03-12 10:41:34 -08:00
Devon Carew
ad7a666a3e
fix a launch issue when the user has deleted the app
2016-03-11 15:44:24 -08:00
John McCutchan
5e140b7533
Add DevicePortForwarder with adb fix
2016-03-11 09:26:17 -08:00
Ian Hickson
1b9cd52081
Enable ALL THE LINTS
...
Well, all the easy ones, anyway.
For some reason `// ignore:` isn't working for me so I've disabled
lints that need that. Also disabled those that require a ton of work
(which I'm doing, but not in this PR, to keep it reviewable).
This adds:
- avoid_init_to_null
- library_names
- package_api_docs
- package_names
- package_prefixed_library_names
- prefer_is_not_empty
- sort_constructors_first
- sort_unnamed_constructors_first
- unnecessary_getters_setters
2016-03-10 23:15:31 -08:00
Eric Seidel
37f0b5dd98
Revert "Add DevicePortForwarder"
2016-03-10 14:23:39 -08:00
John McCutchan
131359f4bc
Add DevicePortForwarder
2016-03-10 12:49:07 -08:00
Hixie
c7339de6bc
Enable always_declare_return_types lint
...
And fix a zillion omissions this uncovered.
2016-03-09 17:57:39 -08:00
Devon Carew
2e9fef8c46
fix a regression in flutter logs
2016-03-09 10:48:34 -08:00
Devon Carew
ee5c5970dc
fix npe in lastLogcatTimestamp
2016-03-08 19:04:49 -08:00
John McCutchan
8803cecea1
Refactor DeviceLogReader
2016-03-08 10:38:22 -08:00
Adam Barth
ad718a8d1e
Teach flutter logs to show only new logs
...
After this patch, the flutter logs command on Android shows only log messages
since the command was run. Previously, it showed historical logs, which was
confusing.
Fixes #2013
2016-02-29 12:05:07 -08:00
Devon Carew
d326991b97
add back a call to device.stop() from the run command
2016-02-27 19:32:02 -08:00
Devon Carew
4e10bf596c
improve startup time
2016-02-27 08:19:19 -08:00
Devon Carew
022047f5eb
remove the isConnected() method from device
2016-02-26 13:23:48 -08:00
Yegor Jbanov
677e63b79d
decouple flutter drive
from flutter start
...
flutter start's method of finding devices to run the app on is not suitable for flutter drive.
This commit also refactors several tool services to allow mocking in unit tests.
2016-02-26 10:18:24 -08: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
488e5dcd6c
log for specific adb devices
2016-02-21 00:23:13 -08:00
Devon Carew
67046f933d
add the ability to start and stop device polling
2016-02-20 22:00:11 -08:00
Chinmay Garde
d797995632
tvOS, watchOS and old simulators are blacklisted in the tools
2016-02-19 16:29:41 -08:00
Adam Barth
b7ee5980ea
Enable background compilation
2016-02-19 13:06:55 -08:00
Devon Carew
d5a6fceee5
add a summary option to the doctor class
2016-02-17 09:33:45 -08:00
Devon Carew
6a6b6539c8
Merge pull request #1947 from devoncarew/less_ios
...
make the ios development path less mandatory
2016-02-17 00:48:00 -08:00
Devon Carew
7ae6f7f391
make the ios development path less mandatory
2016-02-17 00:38:47 -08:00
Adam Barth
bef8d081ed
Improve error message when Android SDK not found
...
Also, look for the Android SDK in the default locations.
2016-02-16 17:02:52 -08:00
Devon Carew
b7b06c2a27
fixes found when running through the getting started process
2016-02-15 14:06:23 -08:00
Devon Carew
dcf0b7bae6
allow any android sdk version
2016-02-13 14:37:41 -08:00
Devon Carew
2dbceafbc6
introduce globals scoped to the app's context
2016-02-09 22:03:13 -08:00
Jason Simmons
8baffeb9a6
Merge pull request #1724 from jason-simmons/refresh_update_snapshot
...
Add a refresh command that rebuilds the snapshot and reloads it on th…
2016-02-09 16:22:51 -08:00
Devon Carew
36b6210c93
filter offline devices from notifications
2016-02-09 13:30:21 -08:00
Jason Simmons
bf1246d881
Add a refresh command that rebuilds the snapshot and reloads it on the device
...
This provides a fast way to iterate on changes to a Flutter app that only
involve updates to Dart code and do not require a full build and install
of the FLX and APK
2016-02-09 13:08:19 -08:00
Devon Carew
9e6d45cb03
general refactoring around device management
...
remove the device factory methods as well as the device cache
2016-02-06 11:49:48 -08:00
Devon Carew
4ff43bf418
get the adb device name when using the adb server
2016-02-04 14:03:16 -08:00
Devon Carew
b780c07622
add --start-paused,--debug-port flags
2016-02-02 11:38:56 -08:00
Devon Carew
78e05884ed
refactor flutter logs
2016-02-01 12:56:46 -08:00
Jason Simmons
12419d6bcf
Merge pull request #1446 from jason-simmons/app_process_restart
...
Add a --full-restart flag to the start command that controls whether …
2016-01-28 14:23:01 -08:00
Jason Simmons
0eb970f7f0
Add a --full-restart flag to the start command that controls whether we stop the application process
...
SkyActivity now allows reloading application Dart code within an existing
activity. If a SkyActivity instance is already running, then passing
--no-full-restart will restart the Dart code without killing and restarting
the SkyShell application.
(full-restart will remain the default until the engine
that supports this is rolled out)
Also remove the obsolete --poke flag
2016-01-28 14:13:42 -08:00
Devon Carew
d7fbf5302d
use status(), error(), and trace() for logging
...
rename to printTrace(), printStatus(), and printError()
2016-01-28 12:44:17 -08:00
Devon Carew
7ac4e6248f
refactor the list command
2016-01-27 14:03:41 -08:00
Jason Simmons
58ba5129e3
Allow collection of trace files when adbd is not running as root
...
Also fix a bug where the trace command may capture the wrong file
if multiple trace file paths are in the Android log buffer.
Previously we found a lower bound timestamp for the trace path log
by running the date command on the device and parsing the result on
the host. This could yield an inaccurate result if the device and
host are using different time zones.
The command will now obtain the most recent timestamp in the device's
time format by running logcat.
2016-01-27 10:57:13 -08:00
Devon Carew
5bce2fbdec
refactor platform specific code out of device.dart
...
remove device type specific checks
2016-01-22 10:51:49 -08:00
Devon Carew
2727954d0e
review comments
2016-01-19 13:15:58 -08:00
Devon Carew
077ee32ea5
guard against npe
2016-01-19 12:15:11 -08:00
Devon Carew
677a80c16b
add a wrapper around the adb command
2016-01-19 11:31:20 -08:00