{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/21020","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/21020/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/21020/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/21020/events","html_url":"https://github.com/dart-lang/sdk/issues/21020","id":84590629,"number":21020,"title":"Feature Request: a way for a Dart library to refer to resources that are not Dart code","user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Area-Library","name":"Area-Library","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Priority-High","name":"Priority-High","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Triaged","name":"Triaged","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"lrhn","id":4865287,"avatar_url":"https://avatars.githubusercontent.com/u/4865287?v=3","gravatar_id":"","url":"https://api.github.com/users/lrhn","html_url":"https://github.com/lrhn","followers_url":"https://api.github.com/users/lrhn/followers","following_url":"https://api.github.com/users/lrhn/following{/other_user}","gists_url":"https://api.github.com/users/lrhn/gists{/gist_id}","starred_url":"https://api.github.com/users/lrhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrhn/subscriptions","organizations_url":"https://api.github.com/users/lrhn/orgs","repos_url":"https://api.github.com/users/lrhn/repos","events_url":"https://api.github.com/users/lrhn/events{/privacy}","received_events_url":"https://api.github.com/users/lrhn/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dart-lang/sdk/milestones/29","html_url":"https://github.com/dart-lang/sdk/milestones/1.12","labels_url":"https://api.github.com/repos/dart-lang/sdk/milestones/29/labels","id":1155671,"number":29,"title":"1.12","description":"","creator":{"login":"bwilkerson","id":5840555,"avatar_url":"https://avatars.githubusercontent.com/u/5840555?v=3","gravatar_id":"","url":"https://api.github.com/users/bwilkerson","html_url":"https://github.com/bwilkerson","followers_url":"https://api.github.com/users/bwilkerson/followers","following_url":"https://api.github.com/users/bwilkerson/following{/other_user}","gists_url":"https://api.github.com/users/bwilkerson/gists{/gist_id}","starred_url":"https://api.github.com/users/bwilkerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwilkerson/subscriptions","organizations_url":"https://api.github.com/users/bwilkerson/orgs","repos_url":"https://api.github.com/users/bwilkerson/repos","events_url":"https://api.github.com/users/bwilkerson/events{/privacy}","received_events_url":"https://api.github.com/users/bwilkerson/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":56,"state":"open","created_at":"2015-06-08T20:05:56Z","updated_at":"2015-08-18T07:34:21Z","due_on":null,"closed_at":null},"comments":22,"created_at":"2014-09-20T18:58:26Z","updated_at":"2015-08-18T07:34:21Z","closed_at":"2015-08-18T07:34:21Z","body":"*This issue was originally filed by @sethladd*\n_____\nUse case: a library needs to retrieve files inside itself and copy them to the current working directory. These files are not Dart code, instead they are text files and binary images. This library should work on the command line or as a web app or Chrome App. (that is, we can't always assume dart:io is available and we can't assume that Platform.script returns a file: URI)\n\nCurrent workaround is to embed the files' content into .dart files as triple quoted strings of text or base64. This is less than ideal:\n\n\\* It requires some sort of build step for the library\n\\* dart2js includes all of this content in its output, greatly increasing the size of the downloaded JS\n\n"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/132104032","html_url":"https://github.com/dart-lang/sdk/issues/21020#issuecomment-132104032","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/21020","id":132104032,"user":{"login":"lrhn","id":4865287,"avatar_url":"https://avatars.githubusercontent.com/u/4865287?v=3","gravatar_id":"","url":"https://api.github.com/users/lrhn","html_url":"https://github.com/lrhn","followers_url":"https://api.github.com/users/lrhn/followers","following_url":"https://api.github.com/users/lrhn/following{/other_user}","gists_url":"https://api.github.com/users/lrhn/gists{/gist_id}","starred_url":"https://api.github.com/users/lrhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrhn/subscriptions","organizations_url":"https://api.github.com/users/lrhn/orgs","repos_url":"https://api.github.com/users/lrhn/repos","events_url":"https://api.github.com/users/lrhn/events{/privacy}","received_events_url":"https://api.github.com/users/lrhn/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T07:34:21Z","updated_at":"2015-08-18T07:34:21Z","body":"The Resource class has landed."}}