87 Commits

Author SHA1 Message Date
Chris Bracken 5c9e134bf8 Add missing super.onNewIntent() call (#15328)
From the onNewIntent docs:

    If you are handling new intents and may be making changes to the
    fragment state, you want to be sure to call through to the
    super-class here first. Otherwise, if your state is saved but the
    activity is not stopped, you could get an onNewIntent() call which
    happens before onResume() and trying to perform fragment operations
    at that point will throw IllegalStateException because the fragment
    manager thinks the state is still saved.
2020-01-08 18:07:36 -08:00
Jenn Magder 5759a437e6 Revert "Add a deprecation javadoc note to the old FlutterActivity (#15156)" (#15331)
This reverts commit 293cd971d0.
2020-01-08 18:04:49 -08:00
xster 293cd971d0 Add a deprecation javadoc note to the old FlutterActivity (#15156) 2020-01-08 10:06:58 -08:00
Dan Field 6f40beed77 java imports/style (#13082) 2019-10-11 11:54:02 -07:00
liyuqian df0e911c67 SkSL precompile (#12412)
For https://github.com/flutter/flutter/issues/40686

Unit tests added:
- CacheSkSLWorks
- VisitFilesCanBeCalledTwice
- CanListFilesRecursively
2019-10-08 11:51:28 -07:00
Jason Simmons 26368225b5 Fix deprecation warnings in the Android embedding (#10424) 2019-08-01 18:13:27 -07:00
Jason Simmons 3f4f606105 Simplify loading of app bundles on Android (#9360)
* Remove deprecated runBundle APIs
* Remove code related to dynamic patching (including support for multiple
  bundle paths)
* Change FlutterRunArugments.bundlePath to be the Android AssetManager path
  where the app's assets are located
2019-06-25 14:17:50 -07:00
Dan Field 7c4f6a6830 Wire intent args for observatory port (#9378) 2019-06-19 13:13:13 -07:00
Amir Hardon 647a8524b0 Revert "Switch PlatformViewsController from Activity ref to Application ref. (#9193)" (#9211)
This reverts commit 5ea125eaf9.
2019-06-06 09:29:10 -07:00
Matt Carroll 5ea125eaf9 Switch PlatformViewsController from Activity ref to Application ref. (#9193) 2019-06-05 14:24:16 -07:00
Ben Konyi 12f48f7601 Allow for whitelisted flags to be passed to the Dart VM (#9148)
* Allow for whitelisted flags to be passed to the Dart VM

Fixed part of https://github.com/flutter/flutter/issues/32176
2019-06-04 14:51:29 -07:00
Matt Carroll 008090b8ab Extracted PlatformViewsChannel from PlatformViewsController. (#7847) 2019-06-03 11:04:33 -07:00
Chris Bracken 0a0f3305b5 Removed outdated deprecation comments (#9087)
In breaking change flutter/engine#4487, a typo was fixed in our Android
APIs correcting RequestPermissionResult to RequestPermissionsResult
(note the 's' on Permissions) for consistency with the Android SDK.

Various tombstone comments were left to help guide developers in the
right direction. These comments were slated for removal in March of
2018; at over a year later, we can probably safely remove them.
2019-05-25 15:02:52 -07:00
Stanislav Baranov 8b5f77630f Remove support for downloading dynamic patches. (#8663) 2019-04-22 09:05:06 -07:00
Ben Konyi 3e597e1de3 Enable VM service authentication codes by default (#8594) 2019-04-18 14:17:25 -07:00
Chris Bracken 1bb2c0cf06 Remove unused import in FlutterActivityDelegate (#8563)
android.app.UiModeManager is unused in FlutterActivityDelegate.
2019-04-12 11:17:57 -07:00
Ben Konyi 0a2869e5c3 Added support for authentication codes for the VM service (#8527) 2019-04-10 14:38:58 -07:00
Amir Hardon 45f69ac471 Plumb a reference of PlatformViewsController and AccessibilityBridge to each other (#8208)
This is in preparation for implementing platform views a11y on Android.

And e2e working prototype is available here: https://github.com/amirh/engine/tree/a11y_hacks

flutter/flutter#19418
2019-03-19 15:48:45 -07:00
liyuqian 66fdeb163e Add dump-shader-skp switch to help ShaderWarmUp (#8148)
Allow Flutter to automatically dump the skp that triggers new shader compilations. This is useful for writing custom ShaderWarmUp to reduce jank. By default, it's not enabled to reduce the overhead. This is only available in profile or debug build.

Later, we can add service protocol support to pull the skp from the client to the host. Currently, it works fine for Android-based devices (including our urgent internal clients) where we can `adb shell` into the cache directory.
2019-03-14 12:58:09 -07:00
Matt Carroll e11d0e96fb Android embedding refactor pr5 add flutterengine impl (#7878) 2019-02-20 17:06:33 -08:00
Matt Carroll cc27cafb84 Implemented Dark Mode for Android (#25525) (#7488) 2019-02-04 19:30:15 -08:00
Chinmay Garde 79dc315dc4 Allow the engine to redirect traces to systrace via settings. (#7617) 2019-01-28 17:39:31 -08:00
Stanislav Baranov 5401803f67 Validate dynamic patches before attempting to install (#7496)
This change adds explicit validation of dynamic patches in all places
where they're used, instead of only validating it in some places which
wasn't as reliable because some of the code paths were missed.

This change also moves utility functions that deal with validating
patches from ResourceExtractor to ResourceUpdater, to make them
available as API for other places in code that need this validation.
2019-01-15 18:09:25 -08:00
Stanislav Baranov 6071286ef1 Download dynamic patch to separate file, then rename it to install. (#7428)
This fixes potential race condition when patch gets downloaded on top
of zip file that's currently in active use by resource extractor and/or
asset manager. This change is necessary since download can happen in
the background while normal application operations are in progress.
2019-01-09 16:26:24 -08:00
Stanislav Baranov 844d27cb3c Refactor dynamic patching to use clearer naming and structure. (#7426)
This is a no-op change, except for fixing a bug where download task
reference wasn't cleared after download was completed.

This change also removes call to output stream flush(), which is not
necessary according to Java spec.

The rest of the change deals with requiring the code to work directly
with ResourceUpdater object instead of having FlutterMain be a facade
that forwards some of ResourceUpdater's methods. This simplifies the
other (more essential) upcoming changes that will be landing in the
followings few PRs.
2019-01-09 14:21:36 -08:00