7943 Commits

Author SHA1 Message Date
gspencergoog
18fdfb86bb Removed 'pub get' from the instructions (#3774)
* Removed 'pub get' from the instructions

According to Hixie, 'pub get' is abstracted into flutter packages upgrade, and so there shouldn't be a need to run pub get directly.

* Removed pub get lines entirely.
2017-06-14 16:28:21 -07:00
Michael Goderbauer
cfe70e07d3 Revert "Run Flutter on iOS and Android with color correct Skia (#3743)" (#3775)
This reverts commit ffe8181ffe7432b61a67323c80fd8025704e4695.
2017-06-14 16:26:20 -07:00
Jason Simmons
834fb9638e Simplify state management in the Android text editing plugin (#3769)
In particular, this avoids some unnecessary calls to InputMethodManager.restartInput
that caused noticeable lag when moving the cursor.

Fixes https://github.com/flutter/flutter/issues/9928
2017-06-14 10:24:41 -07:00
George Kulakowski
06c91ff232 Use the new MX_OK mx_ (#3768) 2017-06-13 10:12:14 -07:00
Todd Volkert
4f5d6fab11 Add support for application:openURL:options: in FlutterPlugin (#3766)
Both the following, which we also support, are deprecated in UIKit:

* `application:handleOpenURL:`
* `application:openURL:sourceApplication:annotation:`
2017-06-12 20:57:12 -07:00
Chinmay Garde
800d817b8b Forward frame construction time to the compositor context. (#3765) 2017-06-12 17:52:42 -07:00
Mehmet Fidanboylu
0b24568ec1 Expose performActionForShortcutItem call to all registered plugins so we can handle quick actions (#3763)
* Expose performActionForShortcutItem call to all registered plugins so we can handle quick actions

* Should return BOOL not void

* clang-formatted
2017-06-09 17:55:48 -07:00
Michael Goderbauer
1787c3fb1e Adding SemanticsFlag.isSelected (#3764)
* Adding SemanticsFlag.isSelected

* typo
2017-06-09 15:58:30 -07:00
Todd Volkert
b91d2f1bb4 Fix some minor issues with Javadocs (#3761) 2017-06-09 07:35:50 -07:00
mattsarett
ffe8181ffe Run Flutter on iOS and Android with color correct Skia (#3743)
* Run Flutter on iOS and Android with color correct Skia (#3716)

***Turns on color correct rendering for Android and iOS
***Communicates dst color space to raster cache
***Turns on color space aware image decoding

Test:
***color_testing_demo on Pixel XL
***flutter_gallery on iPad Mini and iPad Pro (haven't figured out how to run manual_tests on iOS)

TODO:
I needed to split up this CL somewhere. These are follow-up tasks.
***Make desktop backends color correct
***Make debugging tools (ex: encoding frames to png) preserve color space
***Investigate using UIKit API to allow iOS to fine tune color space of rendered content
2017-06-09 08:39:21 -04:00
Sarah Zakarias
f44bc00abd Add setInitialRoute on FlutterViewController (#3754) 2017-06-09 10:37:53 +02:00
Todd Volkert
e6da0a2b9e Add android v4 support lib to classpath when generating docs (#3760) 2017-06-08 18:58:08 -07:00
Todd Volkert
4d423b62b9 Bump buildroot version (#3759) 2017-06-08 17:03:00 -07:00
Todd Volkert
919f0ad063 Create FlutterFragmentActivity (#3757)
This creates a `FlutterFragmentActivity` class that extends
the Android v4 Support librray's `FragmentActivity` class.
However, we intentionally do not bundle the support library
with our engine, so apps that wish to use this class are
responsible for including the support library .jar file in
their runtime deps when creating the final app.

flutter/flutter#10072
2017-06-08 16:40:37 -07:00
Alexander Aprelev
f298557739 Roll Dart dependency in Flutter engine. (#3755)
* Roll Dart dependency in Flutter engine to pick up assert in constructor's initializers support

* Missing comma

* Use correct revision

* Rev up, update license

* Update to sky/pacakges/sky_engine/LICENSE

* Roll to updated ver with license text fixed

* Update license file
2017-06-08 15:10:12 -07:00
Jason Simmons
e70fe3766a Call the superclass onConfigurationChanged in FlutterActivity (#3758) 2017-06-08 14:58:22 -07:00
Zachary Anderson
11131b2678 [Fuchsia] For profiling, export symbols, profile the VM (#3756) 2017-06-08 13:57:31 -07:00
Todd Volkert
2d541dd5e7 Only handle refresh intent when the app is marked as debuggable. (#3752) 2017-06-08 08:13:52 -07:00
Chris Bracken
1f765cdba7 Don't override ios deployment target in gn (#3751)
Use the value specified in build/config/ios/ios_sdk.gni in the buildroot
repo.

Updates buildroot to 4d1c1fd7103d6daba559e456a6a68e4385bb28f1
2017-06-07 13:47:13 -07:00
Todd Volkert
ec8cbe0fb6 Refactor FlutterActivity to be more composable (#3748)
This factors the functionality that was in `FlutterActivity`
to live in `FlutterActivityDelegate`. This will allow the creation of a
`FlutterFragmentActivity` that has the same core functionality, which in
turn unlocks certain Android plugins that choose to require the v4
support library (like Google Sign-In).

https://github.com/flutter/flutter/issues/10072
2017-06-07 12:28:41 -07:00
Chris Bracken
c9bbcbec3a Exclude ios_tools from license script (#3750)
ios_tools exists to provide find_xcode.py, which is used only on the Mac
Engine bot to select the correct version of Xcode to build with.
2017-06-07 10:01:44 -07:00
Ryan Macnak
3f8eddf34a Plumbing for a core snapshot with code (currently empty). (#3749) 2017-06-07 09:57:24 -07:00
Chris Bracken
72e8a76352 Add iOS build tooling dependency (#3747)
This adds a dependency on the Chromium iOS build tooling to support
deterministic selection of Xcode version on the Mac_Engine build bots.
2017-06-06 17:04:40 -07:00
Jason Simmons
c457ec6341 AndroidSurfaceSoftware renderer based on NDK native window APIs (#3745) 2017-06-06 16:58:43 -07:00
Adam Barth
2e74a6ba20 Add support for PA_SERVICE_REQUEST (#3746)
This patch adds support for the new way of exposing services from applications.
2017-06-06 16:05:00 -07:00
Zachary Anderson
ffba1d6154 [Fuchsia] AOT fixes, CPU profiling (#3744) 2017-06-06 12:20:39 -07:00
Benjamin Lerman
7dbd8dbfcc Add missing method on RuntimeHolder. (#3742) 2017-06-06 09:09:18 -07:00
Sarah Zakarias
f37aafd456 Add setInitialRoute on FlutterView. (#3727) 2017-06-06 10:59:41 +02:00
Ian Hickson
62c6f6571a Add breadcrumbs from dart:ui to other docs. (#3741) 2017-06-05 20:06:40 -07:00
Michael Goderbauer
8686a45810 Retain the parent of a SemanticsObject and implement proper dealloc (#3740)
* Retain the parent of a SemanticsObject

This fixes the last known crash in iOS accessibility.

* rework memory management

* review comments
2017-06-05 17:35:44 -07:00
Chinmay Garde
1c6a531e89 Rework raster cache to fix numerous issues. (#3717)
* Fix pixel rounding error in the picture layer by first ensuring that
  the texture for the image is at least as big as the next integer size
  along each dimension and using kStrict_SrcRectConstraint while
  drawing the same image. We already select the source subset by
  looking at the cull rect of the picture.
* Decompose the transformation matrix into a series of operations that
  generated the same to calculate the scale at which to rasterize the
  picture. This make the rasterization scale resilient to
  transformations that introduce a perspective component to the
  resultant matrix.
* The scale in the decomposed matrix is now part of the key in the
  cache.
* Raster cache images that could never be rasterized were still taking
  part in the cache. Now, those entries are rejected early on. This
  leads to the sweep after the frame iterating over fewer items.
* Added a unit test target.
2017-06-05 15:57:05 -07:00
Chris Bracken
c3721a589b Log to stdout on all platforms except Android (#3739)
Fixes a Fuchsia breakage introduced in
dcfcc9259d4f4321e8daea24f1778694a8dca98a.
2017-06-05 14:27:41 -07:00
Chinmay Garde
70b71a49ea Revert "Run Flutter on iOS and Android with color correct Skia" (#3738) 2017-06-05 14:08:22 -07:00
mikejurka
b7dd2a3f97 Invoke deferred invalidation callback before destroying it. (#3734)
If it is not invoked, it triggers a fatal fidl runtime check.
2017-06-05 14:07:09 -07:00
Alexander Aprelev
a85610b1b6 Roll dart to 64ce51ce4bc3aa4248dba87c44775c9b84bd2b5d (#3737)
* Roll dart to 64ce51ce4bc3aa4248dba87c44775c9b84bd2b5d (last roll 13 days ago)

* Update license file - ORIGIN was changed because first file was added
2017-06-05 14:04:26 -07:00
Jason Simmons
16c411205f Render software rasterizer bitmaps through the SurfaceHolder (#3736) 2017-06-05 12:21:14 -07:00
mattsarett
fe82757603 Run Flutter on iOS and Android with color correct Skia (#3716)
***Turns on color correct rendering for Android and iOS
***Communicates dst color space to raster cache
***Turns on color space aware image decoding

Test:
***color_testing_demo on Pixel XL
***flutter_gallery on iPad Mini and iPad Pro (haven't figured out how to run manual_tests on iOS)

TODO:
I needed to split up this CL somewhere. These are follow-up tasks.
***Make desktop backends color correct
***Make debugging tools (ex: encoding frames to png) preserve color space
***Investigate using UIKit API to allow iOS to fine tune color space of rendered content
2017-06-05 14:59:04 -04:00
Chris Bracken
2727002f47 Set autocapitalizationType on iOS (#3735)
Disables auto-capitalization on iOS text fields for TextInputTypes other
than text.
2017-06-05 11:33:08 -07:00
freiling
e954e2f689 [MA-225][DNO-95] remove message loop handlers when destroying VulkanSurfaceProducer to avoid callbacks on deleted pointers (#3733) 2017-06-02 16:31:39 -07:00
Chris Bracken
bd09286e4a Improve auto-correct disabling on Android when obscureText is true (#3731)
Some keyboards (e.g., on some Samsung devices, SwiftKey) ignore
InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS and require
InputType.TYPE_TEXT_VARIATION_PASSWORD.
2017-06-02 15:50:23 -07:00
Michael Goderbauer
28e50a6291 Fix crash when iOS accessibility is turned off and then on again (#3732) 2017-06-02 15:50:12 -07:00
Chris Bracken
5cd58ba4fa Add support for TextInputType.url (#3730)
Adds support for requesting a platform keyboard optimised for entering
URLs.
2017-06-02 15:13:37 -07:00
Chris Bracken
f990f8b0d3 Add support for TextInputType.emailAddress (#3729)
Adds support for requesting a platform keyboard optimised for entering
email addresses.
2017-06-02 15:04:35 -07:00
Chris Bracken
9af413ca8b Log to stdout in flutter_tester (#3728)
Fixes a regression introduced in
dcfcc9259d4f4321e8daea24f1778694a8dca98a in flutter_tester on Linux.
2017-06-02 10:25:15 -07:00
Chris Bracken
dcfcc9259d Simplify log forwarding on iOS, Android (#3726)
Eliminates logging to stdout on Android -- now using __android_log_print
only.

Eliminates logging to syslog on iOS -- now writing to stdout with the
existing ASL redirection (from platform_mac.mm) only. syslog() wasn't
ever picked up in logs.

This patch is a pre-factoring change before swapping out iOS engine
logging to a flutter-specific mechanism.
2017-06-02 09:32:08 -07:00
Gary Qian
09de6f79da Add software as fallback if Vulkan and OpenGL fails (#3725) 2017-06-01 17:50:03 -07:00
Gary Qian
1f2aa07571 Add flags for enabling software rendering in FlutterActivity (#3724) 2017-06-01 13:53:12 -07:00
Chinmay Garde
71da3d7955 Ensure that gradient tile mode enum values in Dart match SkShader::TileMode. (#3721) 2017-06-01 12:18:13 -07:00
Zachary Anderson
a808ab9f0c Stop passing ignored argument to snapshot script (#3723) 2017-06-01 12:09:14 -07:00
Gary Qian
796259c089 Allow switching to the software rendering backend on Android. (#3719)
* Enable software rendering backend on android. Add "enable-software-rendering" flag.

* Fix variable naming and threading.
2017-05-31 17:27:47 -07:00