Skip to content

Reland "[flutter_tools] Removes the need of a no-op plugin implementations #48614" - #49085

Merged
franciscojma86 merged 36 commits into
flutter:masterfrom
franciscojma86:plugins-json
Jan 17, 2020
Merged

franciscojma86 merged 36 commits into
flutter:masterfrom
franciscojma86:plugins-json

Conversation

@franciscojma86

Copy link
Copy Markdown
Contributor

Reland of #48614 with updated logic and test.

Comments on PR

@fluttergithubbot fluttergithubbot added c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels. labels Jan 17, 2020
result['date_created'] = systemClock.now().toString();
result['version'] = flutterVersion.frameworkVersion;

// Only notify if the plugins list has changed. [date_created] will always be different,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This logic had to be updated. It was always returning true, since date_created was always different on each file. This caused the podfiles to be invalidated every time.

FlutterVersion: () => mockVersion
});

testUsingContext('No changes to the plugin list does not invalidate the Cocoapod lockfiles', () {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This tests the new change, where podfiles shouldn't be invalidated if plugins didn't change

@blasten blasten left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants