Skip to content

Conversation

@srawlins
Copy link
Member

  • The top-level functions in resource_loader.dart were wrapped in a class, ResourceLoader, to account for ResourceProvider.
  • Breaking Change: Templates.fromDirectory is made private and now requires
    a ResourceLoader.
  • Templates.createDefault is made @visibleForTesting and now requires a
    ResourceLoader.

This includes a few minor cleanups as well.

* **Breaking Change**: Templates.fromDirectory is made private and now requires
  a ResourceLoader.
* Templates.createDefault is made `@visibleForTesting` and now requires a
  ResourceLoader.

This includes a few minor cleanups as well.
@google-cla google-cla bot added the cla: yes Google CLA check succeeded. label Jan 11, 2021
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 91.547% when pulling 8930201 on srawlins:templates-rp into b956fa3 on dart-lang:master.

@srawlins srawlins requested a review from jcollins-g January 11, 2021 22:44
@srawlins
Copy link
Member Author

I think the new ResourceLoader class could actually just be a set of ~3 extension methods on ResourceProvider. I'm happy to explore that in this CL or in a follow-up.

@srawlins srawlins merged commit 48f5259 into dart-lang:master Jan 15, 2021
@srawlins srawlins deleted the templates-rp branch January 15, 2021 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Google CLA check succeeded.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants