Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@GaryQian
Copy link
Contributor

@GaryQian GaryQian commented Dec 21, 2020

Description

Renames Dynamic Features to DeferredComponents (as per discussion in go/flutter-dynamic-features-tooling)
Adds uninstalling deferred components.

Resolves flutter/flutter#72757

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@GaryQian GaryQian added the Work in progress (WIP) Not ready (yet) for review! label Dec 21, 2020
@GaryQian GaryQian changed the title Adds uninstall capability to PlayStoreDynamicFeatureManager [WIP] Adds uninstall capability to PlayStoreDynamicFeatureManager Dec 21, 2020
@GaryQian GaryQian changed the title [WIP] Adds uninstall capability to PlayStoreDynamicFeatureManager [WIP] Implement uninstall in PlayStoreDynamicFeatureManager Dec 22, 2020
@GaryQian GaryQian changed the title [WIP] Implement uninstall in PlayStoreDynamicFeatureManager Implement uninstall in PlayStoreDynamicFeatureManager Dec 23, 2020
@GaryQian GaryQian requested a review from xster December 28, 2020 16:43
* uninstall. Actual uninstallation (eg, removal of assets and files) may occur at a later time.
* However, once uninstallation is requested, the dynamic feature should not be used anymore until
* {@link installDynamicFeature} is called again.
*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

describe what does it do specifically? Does it remove files on disk?

"Dynamic feature module name was null and could not be resolved from loading unit id.");
return;
}
List<String> modules_to_uninstall = new ArrayList<>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No snake notations in Java

dynamicFeatureManager.getDynamicFeatureInstallState(loadingUnitId, moduleName));
break;
case "uninstallDynamicFeature":
dynamicFeatureManager.uninstallDynamicFeature(loadingUnitId, moduleName);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the couldn't find unit signal feedback into the result?

@GaryQian GaryQian force-pushed the splitaotuninstall branch 2 times, most recently from c96d358 to a564dcc Compare January 8, 2021 00:24
@GaryQian GaryQian changed the title Implement uninstall in PlayStoreDynamicFeatureManager Rename to DynamicFeature->DeferredComponent and impl uninstall DeferredComponents Jan 8, 2021
@GaryQian GaryQian changed the title Rename to DynamicFeature->DeferredComponent and impl uninstall DeferredComponents Rename DynamicFeature->DeferredComponent and impl uninstall DeferredComponents Jan 8, 2021
@GaryQian GaryQian added waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. and removed Work in progress (WIP) Not ready (yet) for review! labels Jan 8, 2021
@fluttergithubbot
Copy link
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite build_and_test_linux_unopt_debug has failed. Please fix the issues identified (or deflake) before re-applying this label.

@fluttergithubbot fluttergithubbot removed the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Jan 8, 2021
@GaryQian GaryQian merged commit 3f20060 into flutter:master Jan 8, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 8, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 8, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 8, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 8, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 8, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 8, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow uninstalling dynamic features

4 participants