Skip to content

switch to the new Resources api #769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

switch to the new Resources api #769

wants to merge 1 commit into from

Conversation

devoncarew
Copy link
Member

Placeholder until 0.12.0-dev5 is out.

}

/// Determine how to do the load. HTTP? Snapshotted? From source?
Future<Uint8List> _doLoad(final String path) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this will break on pub global activated installs, because those don't write .packages yet. We might not want to remove all this code quite yet.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, so try the new resource api, and if that fails, fall back to the pub_cache method?

Copy link
Contributor

Choose a reason for hiding this comment

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

For now, yes. Just test this with pub global activate before you commit.

(you can globally activate without pushing to pub, fwiw)

Copy link
Member Author

Choose a reason for hiding this comment

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

kk, sounds good

@devoncarew devoncarew closed this Aug 7, 2015
@devoncarew devoncarew deleted the ddc_resources branch August 11, 2015 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants