Skip to content

Conversation

@franciscojma86
Copy link
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
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
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

Copy link

@blasten blasten left a comment

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