{"action":"created","comment":{"url":"https://api.github.com/repos/google/flutter-desktop-embedding/pulls/comments/171954624","pull_request_review_id":100903242,"id":171954624,"diff_hunk":"@@ -0,0 +1,38 @@\n+// Copyright 2018 Google LLC\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+//      http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+#include <cstdlib>\n+#include <iostream>\n+\n+#include <flutter_embedder.h>\n+\n+int main(int argc, char **argv) {\n+  // Edit this as needed.\n+  std::string flutter_example_root = \"../../flutter/examples/flutter_gallery\";\n+  if (!glfwInit()) {\n+    std::cout << \"Couldn't init GLFW\";\n+  }\n+  auto window = CreateFlutterWindow(\n+      640, 480, flutter_example_root + \"/lib/main.dart\",\n+      flutter_example_root + \"/build/flutter_assets\",\n+      flutter_example_root + \"/.packages\",\n+      \"../../flutter/bin/cache/artifacts/engine/linux-x64/icudtl.dat\", argc,\n+      argv);","path":"linux/example/flutter_embedder_example.cc","position":null,"original_position":30,"commit_id":"857c9da9844f186e84dd612bb93acdcfbe77e79b","original_commit_id":"5ac46b7ab348dced0bcdb962fd78040f57a03165","user":{"login":"awdavies","id":2238468,"avatar_url":"https://avatars0.githubusercontent.com/u/2238468?v=4","gravatar_id":"","url":"https://api.github.com/users/awdavies","html_url":"https://github.com/awdavies","followers_url":"https://api.github.com/users/awdavies/followers","following_url":"https://api.github.com/users/awdavies/following{/other_user}","gists_url":"https://api.github.com/users/awdavies/gists{/gist_id}","starred_url":"https://api.github.com/users/awdavies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awdavies/subscriptions","organizations_url":"https://api.github.com/users/awdavies/orgs","repos_url":"https://api.github.com/users/awdavies/repos","events_url":"https://api.github.com/users/awdavies/events{/privacy}","received_events_url":"https://api.github.com/users/awdavies/received_events","type":"User","site_admin":false},"body":"Added","created_at":"2018-03-02T20:27:51Z","updated_at":"2018-03-02T20:27:51Z","html_url":"https://github.com/google/flutter-desktop-embedding/pull/12#discussion_r171954624","pull_request_url":"https://api.github.com/repos/google/flutter-desktop-embedding/pulls/12","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/google/flutter-desktop-embedding/pulls/comments/171954624"},"html":{"href":"https://github.com/google/flutter-desktop-embedding/pull/12#discussion_r171954624"},"pull_request":{"href":"https://api.github.com/repos/google/flutter-desktop-embedding/pulls/12"}},"in_reply_to_id":171912521},"pull_request":{"url":"https://api.github.com/repos/google/flutter-desktop-embedding/pulls/12","id":171830225,"html_url":"https://github.com/google/flutter-desktop-embedding/pull/12","diff_url":"https://github.com/google/flutter-desktop-embedding/pull/12.diff","patch_url":"https://github.com/google/flutter-desktop-embedding/pull/12.patch","issue_url":"https://api.github.com/repos/google/flutter-desktop-embedding/issues/12","number":12,"state":"open","locked":false,"title":"Added basic linux embedder using GLFW.","user":{"login":"awdavies","id":2238468,"avatar_url":"https://avatars0.githubusercontent.com/u/2238468?v=4","gravatar_id":"","url":"https://api.github.com/users/awdavies","html_url":"https://github.com/awdavies","followers_url":"https://api.github.com/users/awdavies/followers","following_url":"https://api.github.com/users/awdavies/following{/other_user}","gists_url":"https://api.github.com/users/awdavies/gists{/gist_id}","starred_url":"https://api.github.com/users/awdavies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awdavies/subscriptions","organizations_url":"https://api.github.com/users/awdavies/orgs","repos_url":"https://api.github.com/users/awdavies/repos","events_url":"https://api.github.com/users/awdavies/events{/privacy}","received_events_url":"https://api.github.com/users/awdavies/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-28T01:10:06Z","updated_at":"2018-03-02T20:27:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"21a68c4a2ebcabbb18ccc3517d9171670d39edfe","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/google/flutter-desktop-embedding/pulls/12/commits","review_comments_url":"https://api.github.com/repos/google/flutter-desktop-embedding/pulls/12/comments","review_comment_url":"https://api.github.com/repos/google/flutter-desktop-embedding/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/flutter-desktop-embedding/issues/12/comments","statuses_url":"https://api.github.com/repos/google/flutter-desktop-embedding/statuses/857c9da9844f186e84dd612bb93acdcfbe77e79b","head":{"label":"awdavies:linux_embedder","ref":"linux_embedder","sha":"857c9da9844f186e84dd612bb93acdcfbe77e79b","user":{"login":"awdavies","id":2238468,"avatar_url":"https://avatars0.githubusercontent.com/u/2238468?v=4","gravatar_id":"","url":"https://api.github.com/users/awdavies","html_url":"https://github.com/awdavies","followers_url":"https://api.github.com/users/awdavies/followers","following_url":"https://api.github.com/users/awdavies/following{/other_user}","gists_url":"https://api.github.com/users/awdavies/gists{/gist_id}","starred_url":"https://api.github.com/users/awdavies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awdavies/subscriptions","organizations_url":"https://api.github.com/users/awdavies/orgs","repos_url":"https://api.github.com/users/awdavies/repos","events_url":"https://api.github.com/users/awdavies/events{/privacy}","received_events_url":"https://api.github.com/users/awdavies/received_events","type":"User","site_admin":false},"repo":{"id":123208961,"name":"flutter-desktop-embedding","full_name":"awdavies/flutter-desktop-embedding","owner":{"login":"awdavies","id":2238468,"avatar_url":"https://avatars0.githubusercontent.com/u/2238468?v=4","gravatar_id":"","url":"https://api.github.com/users/awdavies","html_url":"https://github.com/awdavies","followers_url":"https://api.github.com/users/awdavies/followers","following_url":"https://api.github.com/users/awdavies/following{/other_user}","gists_url":"https://api.github.com/users/awdavies/gists{/gist_id}","starred_url":"https://api.github.com/users/awdavies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awdavies/subscriptions","organizations_url":"https://api.github.com/users/awdavies/orgs","repos_url":"https://api.github.com/users/awdavies/repos","events_url":"https://api.github.com/users/awdavies/events{/privacy}","received_events_url":"https://api.github.com/users/awdavies/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/awdavies/flutter-desktop-embedding","description":"Desktop implementations of the Flutter embedding API","fork":true,"url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding","forks_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/forks","keys_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/teams","hooks_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/hooks","issue_events_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/issues/events{/number}","events_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/events","assignees_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/assignees{/user}","branches_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/branches{/branch}","tags_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/tags","blobs_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/git/refs{/sha}","trees_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/statuses/{sha}","languages_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/languages","stargazers_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/stargazers","contributors_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/contributors","subscribers_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/subscribers","subscription_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/subscription","commits_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/commits{/sha}","git_commits_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/git/commits{/sha}","comments_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/comments{/number}","issue_comment_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/issues/comments{/number}","contents_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/contents/{+path}","compare_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/merges","archive_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/downloads","issues_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/issues{/number}","pulls_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/pulls{/number}","milestones_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/milestones{/number}","notifications_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/labels{/name}","releases_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/releases{/id}","deployments_url":"https://api.github.com/repos/awdavies/flutter-desktop-embedding/deployments","created_at":"2018-02-28T01:05:45Z","updated_at":"2018-02-28T01:05:47Z","pushed_at":"2018-03-02T20:20:26Z","git_url":"git://github.com/awdavies/flutter-desktop-embedding.git","ssh_url":"git@github.com:awdavies/flutter-desktop-embedding.git","clone_url":"https://github.com/awdavies/flutter-desktop-embedding.git","svn_url":"https://github.com/awdavies/flutter-desktop-embedding","homepage":"","size":80,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"bafb7820b915e42cb935b46004d5da2dfda92dd2","user":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":121454193,"name":"flutter-desktop-embedding","full_name":"google/flutter-desktop-embedding","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/flutter-desktop-embedding","description":"Desktop implementations of the Flutter embedding API","fork":false,"url":"https://api.github.com/repos/google/flutter-desktop-embedding","forks_url":"https://api.github.com/repos/google/flutter-desktop-embedding/forks","keys_url":"https://api.github.com/repos/google/flutter-desktop-embedding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/flutter-desktop-embedding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/flutter-desktop-embedding/teams","hooks_url":"https://api.github.com/repos/google/flutter-desktop-embedding/hooks","issue_events_url":"https://api.github.com/repos/google/flutter-desktop-embedding/issues/events{/number}","events_url":"https://api.github.com/repos/google/flutter-desktop-embedding/events","assignees_url":"https://api.github.com/repos/google/flutter-desktop-embedding/assignees{/user}","branches_url":"https://api.github.com/repos/google/flutter-desktop-embedding/branches{/branch}","tags_url":"https://api.github.com/repos/google/flutter-desktop-embedding/tags","blobs_url":"https://api.github.com/repos/google/flutter-desktop-embedding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/flutter-desktop-embedding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/flutter-desktop-embedding/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/flutter-desktop-embedding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/flutter-desktop-embedding/statuses/{sha}","languages_url":"https://api.github.com/repos/google/flutter-desktop-embedding/languages","stargazers_url":"https://api.github.com/repos/google/flutter-desktop-embedding/stargazers","contributors_url":"https://api.github.com/repos/google/flutter-desktop-embedding/contributors","subscribers_url":"https://api.github.com/repos/google/flutter-desktop-embedding/subscribers","subscription_url":"https://api.github.com/repos/google/flutter-desktop-embedding/subscription","commits_url":"https://api.github.com/repos/google/flutter-desktop-embedding/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/flutter-desktop-embedding/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/flutter-desktop-embedding/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/flutter-desktop-embedding/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/flutter-desktop-embedding/contents/{+path}","compare_url":"https://api.github.com/repos/google/flutter-desktop-embedding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/flutter-desktop-embedding/merges","archive_url":"https://api.github.com/repos/google/flutter-desktop-embedding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/flutter-desktop-embedding/downloads","issues_url":"https://api.github.com/repos/google/flutter-desktop-embedding/issues{/number}","pulls_url":"https://api.github.com/repos/google/flutter-desktop-embedding/pulls{/number}","milestones_url":"https://api.github.com/repos/google/flutter-desktop-embedding/milestones{/number}","notifications_url":"https://api.github.com/repos/google/flutter-desktop-embedding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/flutter-desktop-embedding/labels{/name}","releases_url":"https://api.github.com/repos/google/flutter-desktop-embedding/releases{/id}","deployments_url":"https://api.github.com/repos/google/flutter-desktop-embedding/deployments","created_at":"2018-02-14T00:41:16Z","updated_at":"2018-03-02T18:09:32Z","pushed_at":"2018-03-02T20:20:27Z","git_url":"git://github.com/google/flutter-desktop-embedding.git","ssh_url":"git@github.com:google/flutter-desktop-embedding.git","clone_url":"https://github.com/google/flutter-desktop-embedding.git","svn_url":"https://github.com/google/flutter-desktop-embedding","homepage":"","size":65,"stargazers_count":152,"watchers_count":152,"language":"Objective-C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":9,"open_issues":7,"watchers":152,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/flutter-desktop-embedding/pulls/12"},"html":{"href":"https://github.com/google/flutter-desktop-embedding/pull/12"},"issue":{"href":"https://api.github.com/repos/google/flutter-desktop-embedding/issues/12"},"comments":{"href":"https://api.github.com/repos/google/flutter-desktop-embedding/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/google/flutter-desktop-embedding/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/google/flutter-desktop-embedding/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/flutter-desktop-embedding/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/google/flutter-desktop-embedding/statuses/857c9da9844f186e84dd612bb93acdcfbe77e79b"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"awdavies"}}