{"action":"opened","number":87,"pull_request":{"url":"https://api.github.com/repos/devlucky/Kakapo/pulls/87","id":77173604,"html_url":"https://github.com/devlucky/Kakapo/pull/87","diff_url":"https://github.com/devlucky/Kakapo/pull/87.diff","patch_url":"https://github.com/devlucky/Kakapo/pull/87.patch","issue_url":"https://api.github.com/repos/devlucky/Kakapo/issues/87","number":87,"state":"open","locked":false,"title":"Fixed swizzling crash as soon as AFNetworking was loading","user":{"login":"MP0w","id":1812932,"avatar_url":"https://avatars.githubusercontent.com/u/1812932?v=3","gravatar_id":"","url":"https://api.github.com/users/MP0w","html_url":"https://github.com/MP0w","followers_url":"https://api.github.com/users/MP0w/followers","following_url":"https://api.github.com/users/MP0w/following{/other_user}","gists_url":"https://api.github.com/users/MP0w/gists{/gist_id}","starred_url":"https://api.github.com/users/MP0w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MP0w/subscriptions","organizations_url":"https://api.github.com/users/MP0w/orgs","repos_url":"https://api.github.com/users/MP0w/repos","events_url":"https://api.github.com/users/MP0w/events{/privacy}","received_events_url":"https://api.github.com/users/MP0w/received_events","type":"User","site_admin":false},"body":"Swift is not able to override `+ (void)load` so we swizzled in `+(void)initialize` this caused a crash as soon as AFNetworking (and potentially other code) started swizzling some class that required our swizzled class to load. Fixed by using an objective C category.\r\n\r\nPS: will leave AFNetworking and Alamofire in because anyway we will need them for #86 ","created_at":"2016-07-12T19:06:12Z","updated_at":"2016-07-12T19:06:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/devlucky/Kakapo/pulls/87/commits","review_comments_url":"https://api.github.com/repos/devlucky/Kakapo/pulls/87/comments","review_comment_url":"https://api.github.com/repos/devlucky/Kakapo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/devlucky/Kakapo/issues/87/comments","statuses_url":"https://api.github.com/repos/devlucky/Kakapo/statuses/571f1ce402bdc7c763ffb63672921724bcdfaaa0","head":{"label":"devlucky:fix/SwizzlingIncompatibility","ref":"fix/SwizzlingIncompatibility","sha":"571f1ce402bdc7c763ffb63672921724bcdfaaa0","user":{"login":"devlucky","id":18127620,"avatar_url":"https://avatars.githubusercontent.com/u/18127620?v=3","gravatar_id":"","url":"https://api.github.com/users/devlucky","html_url":"https://github.com/devlucky","followers_url":"https://api.github.com/users/devlucky/followers","following_url":"https://api.github.com/users/devlucky/following{/other_user}","gists_url":"https://api.github.com/users/devlucky/gists{/gist_id}","starred_url":"https://api.github.com/users/devlucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devlucky/subscriptions","organizations_url":"https://api.github.com/users/devlucky/orgs","repos_url":"https://api.github.com/users/devlucky/repos","events_url":"https://api.github.com/users/devlucky/events{/privacy}","received_events_url":"https://api.github.com/users/devlucky/received_events","type":"Organization","site_admin":false},"repo":{"id":54993813,"name":"Kakapo","full_name":"devlucky/Kakapo","owner":{"login":"devlucky","id":18127620,"avatar_url":"https://avatars.githubusercontent.com/u/18127620?v=3","gravatar_id":"","url":"https://api.github.com/users/devlucky","html_url":"https://github.com/devlucky","followers_url":"https://api.github.com/users/devlucky/followers","following_url":"https://api.github.com/users/devlucky/following{/other_user}","gists_url":"https://api.github.com/users/devlucky/gists{/gist_id}","starred_url":"https://api.github.com/users/devlucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devlucky/subscriptions","organizations_url":"https://api.github.com/users/devlucky/orgs","repos_url":"https://api.github.com/users/devlucky/repos","events_url":"https://api.github.com/users/devlucky/events{/privacy}","received_events_url":"https://api.github.com/users/devlucky/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/devlucky/Kakapo","description":"Next generation network mocking library in Swift","fork":false,"url":"https://api.github.com/repos/devlucky/Kakapo","forks_url":"https://api.github.com/repos/devlucky/Kakapo/forks","keys_url":"https://api.github.com/repos/devlucky/Kakapo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devlucky/Kakapo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devlucky/Kakapo/teams","hooks_url":"https://api.github.com/repos/devlucky/Kakapo/hooks","issue_events_url":"https://api.github.com/repos/devlucky/Kakapo/issues/events{/number}","events_url":"https://api.github.com/repos/devlucky/Kakapo/events","assignees_url":"https://api.github.com/repos/devlucky/Kakapo/assignees{/user}","branches_url":"https://api.github.com/repos/devlucky/Kakapo/branches{/branch}","tags_url":"https://api.github.com/repos/devlucky/Kakapo/tags","blobs_url":"https://api.github.com/repos/devlucky/Kakapo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devlucky/Kakapo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devlucky/Kakapo/git/refs{/sha}","trees_url":"https://api.github.com/repos/devlucky/Kakapo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devlucky/Kakapo/statuses/{sha}","languages_url":"https://api.github.com/repos/devlucky/Kakapo/languages","stargazers_url":"https://api.github.com/repos/devlucky/Kakapo/stargazers","contributors_url":"https://api.github.com/repos/devlucky/Kakapo/contributors","subscribers_url":"https://api.github.com/repos/devlucky/Kakapo/subscribers","subscription_url":"https://api.github.com/repos/devlucky/Kakapo/subscription","commits_url":"https://api.github.com/repos/devlucky/Kakapo/commits{/sha}","git_commits_url":"https://api.github.com/repos/devlucky/Kakapo/git/commits{/sha}","comments_url":"https://api.github.com/repos/devlucky/Kakapo/comments{/number}","issue_comment_url":"https://api.github.com/repos/devlucky/Kakapo/issues/comments{/number}","contents_url":"https://api.github.com/repos/devlucky/Kakapo/contents/{+path}","compare_url":"https://api.github.com/repos/devlucky/Kakapo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devlucky/Kakapo/merges","archive_url":"https://api.github.com/repos/devlucky/Kakapo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devlucky/Kakapo/downloads","issues_url":"https://api.github.com/repos/devlucky/Kakapo/issues{/number}","pulls_url":"https://api.github.com/repos/devlucky/Kakapo/pulls{/number}","milestones_url":"https://api.github.com/repos/devlucky/Kakapo/milestones{/number}","notifications_url":"https://api.github.com/repos/devlucky/Kakapo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devlucky/Kakapo/labels{/name}","releases_url":"https://api.github.com/repos/devlucky/Kakapo/releases{/id}","deployments_url":"https://api.github.com/repos/devlucky/Kakapo/deployments","created_at":"2016-03-29T16:57:21Z","updated_at":"2016-06-26T23:03:15Z","pushed_at":"2016-07-12T19:06:12Z","git_url":"git://github.com/devlucky/Kakapo.git","ssh_url":"git@github.com:devlucky/Kakapo.git","clone_url":"https://github.com/devlucky/Kakapo.git","svn_url":"https://github.com/devlucky/Kakapo","homepage":"devlucky.github.io/kakapo-swift","size":1026,"stargazers_count":13,"watchers_count":13,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":13,"default_branch":"master"}},"base":{"label":"devlucky:master","ref":"master","sha":"03c548cabf7901faffbe3944f97719e9738219ad","user":{"login":"devlucky","id":18127620,"avatar_url":"https://avatars.githubusercontent.com/u/18127620?v=3","gravatar_id":"","url":"https://api.github.com/users/devlucky","html_url":"https://github.com/devlucky","followers_url":"https://api.github.com/users/devlucky/followers","following_url":"https://api.github.com/users/devlucky/following{/other_user}","gists_url":"https://api.github.com/users/devlucky/gists{/gist_id}","starred_url":"https://api.github.com/users/devlucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devlucky/subscriptions","organizations_url":"https://api.github.com/users/devlucky/orgs","repos_url":"https://api.github.com/users/devlucky/repos","events_url":"https://api.github.com/users/devlucky/events{/privacy}","received_events_url":"https://api.github.com/users/devlucky/received_events","type":"Organization","site_admin":false},"repo":{"id":54993813,"name":"Kakapo","full_name":"devlucky/Kakapo","owner":{"login":"devlucky","id":18127620,"avatar_url":"https://avatars.githubusercontent.com/u/18127620?v=3","gravatar_id":"","url":"https://api.github.com/users/devlucky","html_url":"https://github.com/devlucky","followers_url":"https://api.github.com/users/devlucky/followers","following_url":"https://api.github.com/users/devlucky/following{/other_user}","gists_url":"https://api.github.com/users/devlucky/gists{/gist_id}","starred_url":"https://api.github.com/users/devlucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devlucky/subscriptions","organizations_url":"https://api.github.com/users/devlucky/orgs","repos_url":"https://api.github.com/users/devlucky/repos","events_url":"https://api.github.com/users/devlucky/events{/privacy}","received_events_url":"https://api.github.com/users/devlucky/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/devlucky/Kakapo","description":"Next generation network mocking library in Swift","fork":false,"url":"https://api.github.com/repos/devlucky/Kakapo","forks_url":"https://api.github.com/repos/devlucky/Kakapo/forks","keys_url":"https://api.github.com/repos/devlucky/Kakapo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devlucky/Kakapo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devlucky/Kakapo/teams","hooks_url":"https://api.github.com/repos/devlucky/Kakapo/hooks","issue_events_url":"https://api.github.com/repos/devlucky/Kakapo/issues/events{/number}","events_url":"https://api.github.com/repos/devlucky/Kakapo/events","assignees_url":"https://api.github.com/repos/devlucky/Kakapo/assignees{/user}","branches_url":"https://api.github.com/repos/devlucky/Kakapo/branches{/branch}","tags_url":"https://api.github.com/repos/devlucky/Kakapo/tags","blobs_url":"https://api.github.com/repos/devlucky/Kakapo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devlucky/Kakapo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devlucky/Kakapo/git/refs{/sha}","trees_url":"https://api.github.com/repos/devlucky/Kakapo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devlucky/Kakapo/statuses/{sha}","languages_url":"https://api.github.com/repos/devlucky/Kakapo/languages","stargazers_url":"https://api.github.com/repos/devlucky/Kakapo/stargazers","contributors_url":"https://api.github.com/repos/devlucky/Kakapo/contributors","subscribers_url":"https://api.github.com/repos/devlucky/Kakapo/subscribers","subscription_url":"https://api.github.com/repos/devlucky/Kakapo/subscription","commits_url":"https://api.github.com/repos/devlucky/Kakapo/commits{/sha}","git_commits_url":"https://api.github.com/repos/devlucky/Kakapo/git/commits{/sha}","comments_url":"https://api.github.com/repos/devlucky/Kakapo/comments{/number}","issue_comment_url":"https://api.github.com/repos/devlucky/Kakapo/issues/comments{/number}","contents_url":"https://api.github.com/repos/devlucky/Kakapo/contents/{+path}","compare_url":"https://api.github.com/repos/devlucky/Kakapo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devlucky/Kakapo/merges","archive_url":"https://api.github.com/repos/devlucky/Kakapo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devlucky/Kakapo/downloads","issues_url":"https://api.github.com/repos/devlucky/Kakapo/issues{/number}","pulls_url":"https://api.github.com/repos/devlucky/Kakapo/pulls{/number}","milestones_url":"https://api.github.com/repos/devlucky/Kakapo/milestones{/number}","notifications_url":"https://api.github.com/repos/devlucky/Kakapo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devlucky/Kakapo/labels{/name}","releases_url":"https://api.github.com/repos/devlucky/Kakapo/releases{/id}","deployments_url":"https://api.github.com/repos/devlucky/Kakapo/deployments","created_at":"2016-03-29T16:57:21Z","updated_at":"2016-06-26T23:03:15Z","pushed_at":"2016-07-12T19:06:12Z","git_url":"git://github.com/devlucky/Kakapo.git","ssh_url":"git@github.com:devlucky/Kakapo.git","clone_url":"https://github.com/devlucky/Kakapo.git","svn_url":"https://github.com/devlucky/Kakapo","homepage":"devlucky.github.io/kakapo-swift","size":1026,"stargazers_count":13,"watchers_count":13,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/devlucky/Kakapo/pulls/87"},"html":{"href":"https://github.com/devlucky/Kakapo/pull/87"},"issue":{"href":"https://api.github.com/repos/devlucky/Kakapo/issues/87"},"comments":{"href":"https://api.github.com/repos/devlucky/Kakapo/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/devlucky/Kakapo/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/devlucky/Kakapo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/devlucky/Kakapo/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/devlucky/Kakapo/statuses/571f1ce402bdc7c763ffb63672921724bcdfaaa0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":19422,"deletions":1355,"changed_files":116}}
{"actor":{"display_login":"MP0w"}}