{"action":"created","comment":{"url":"https://api.github.com/repos/yeti/signals/pulls/comments/39581316","id":39581316,"diff_hunk":"@@ -75,6 +78,26 @@ def copy_data_models(self):\n         shutil.copyfile(self.header_file, \"{}/DataModel.h\".format(self.data_models_path))\n         shutil.copyfile(self.implementation_file, \"{}/DataModel.m\".format(self.data_models_path))\n \n+    def check_setup_called(self):\n+        # Define pattern we're looking for to verify that setup was called\n+        pattern = re.compile(\"sharedDataModel\\(\\)\\.setup\\(\\)\")\n+\n+        # Find parent path that contains AppDelegate.swift\n+        # TODO: Update this to include AppDelegate.m once an objective-c template exists","path":"signals/generators/ios/ios_generator.py","position":31,"original_position":31,"commit_id":"03b712f728f41fd172f3c190a9962c828326c722","original_commit_id":"03b712f728f41fd172f3c190a9962c828326c722","user":{"login":"rmutter","id":1711801,"avatar_url":"https://avatars.githubusercontent.com/u/1711801?v=3","gravatar_id":"","url":"https://api.github.com/users/rmutter","html_url":"https://github.com/rmutter","followers_url":"https://api.github.com/users/rmutter/followers","following_url":"https://api.github.com/users/rmutter/following{/other_user}","gists_url":"https://api.github.com/users/rmutter/gists{/gist_id}","starred_url":"https://api.github.com/users/rmutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmutter/subscriptions","organizations_url":"https://api.github.com/users/rmutter/orgs","repos_url":"https://api.github.com/users/rmutter/repos","events_url":"https://api.github.com/users/rmutter/events{/privacy}","received_events_url":"https://api.github.com/users/rmutter/received_events","type":"User","site_admin":false},"body":"Couldn't the app using signals still have AppDelegate written in Objective C?","created_at":"2015-09-16T00:05:36Z","updated_at":"2015-09-16T00:05:36Z","html_url":"https://github.com/yeti/signals/pull/46#discussion_r39581316","pull_request_url":"https://api.github.com/repos/yeti/signals/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/yeti/signals/pulls/comments/39581316"},"html":{"href":"https://github.com/yeti/signals/pull/46#discussion_r39581316"},"pull_request":{"href":"https://api.github.com/repos/yeti/signals/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/yeti/signals/pulls/46","id":45116977,"html_url":"https://github.com/yeti/signals/pull/46","diff_url":"https://github.com/yeti/signals/pull/46.diff","patch_url":"https://github.com/yeti/signals/pull/46.patch","issue_url":"https://api.github.com/repos/yeti/signals/issues/46","number":46,"state":"open","locked":false,"title":"Data model setup check #39","user":{"login":"leemcdole","id":12139935,"avatar_url":"https://avatars.githubusercontent.com/u/12139935?v=3","gravatar_id":"","url":"https://api.github.com/users/leemcdole","html_url":"https://github.com/leemcdole","followers_url":"https://api.github.com/users/leemcdole/followers","following_url":"https://api.github.com/users/leemcdole/following{/other_user}","gists_url":"https://api.github.com/users/leemcdole/gists{/gist_id}","starred_url":"https://api.github.com/users/leemcdole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leemcdole/subscriptions","organizations_url":"https://api.github.com/users/leemcdole/orgs","repos_url":"https://api.github.com/users/leemcdole/repos","events_url":"https://api.github.com/users/leemcdole/events{/privacy}","received_events_url":"https://api.github.com/users/leemcdole/received_events","type":"User","site_admin":false},"body":"ios_generator now searches for an AppDelegate.swift file, and if it finds one in a parent directory of the data_models path, it opens the file and searches for the string \"sharedDataModel().setup()\".  If it's not found, it outputs a warning to the user.\r\n\r\nFixes #39 \r\n\r\n@rmutter @baylee ","created_at":"2015-09-15T23:56:43Z","updated_at":"2015-09-16T00:05:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a154a025fc8f92fd56bf89470b373f192827024","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yeti/signals/pulls/46/commits","review_comments_url":"https://api.github.com/repos/yeti/signals/pulls/46/comments","review_comment_url":"https://api.github.com/repos/yeti/signals/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yeti/signals/issues/46/comments","statuses_url":"https://api.github.com/repos/yeti/signals/statuses/03b712f728f41fd172f3c190a9962c828326c722","head":{"label":"yeti:dataModelSetupCheck","ref":"dataModelSetupCheck","sha":"03b712f728f41fd172f3c190a9962c828326c722","user":{"login":"yeti","id":3828158,"avatar_url":"https://avatars.githubusercontent.com/u/3828158?v=3","gravatar_id":"","url":"https://api.github.com/users/yeti","html_url":"https://github.com/yeti","followers_url":"https://api.github.com/users/yeti/followers","following_url":"https://api.github.com/users/yeti/following{/other_user}","gists_url":"https://api.github.com/users/yeti/gists{/gist_id}","starred_url":"https://api.github.com/users/yeti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeti/subscriptions","organizations_url":"https://api.github.com/users/yeti/orgs","repos_url":"https://api.github.com/users/yeti/repos","events_url":"https://api.github.com/users/yeti/events{/privacy}","received_events_url":"https://api.github.com/users/yeti/received_events","type":"Organization","site_admin":false},"repo":{"id":25012852,"name":"signals","full_name":"yeti/signals","owner":{"login":"yeti","id":3828158,"avatar_url":"https://avatars.githubusercontent.com/u/3828158?v=3","gravatar_id":"","url":"https://api.github.com/users/yeti","html_url":"https://github.com/yeti","followers_url":"https://api.github.com/users/yeti/followers","following_url":"https://api.github.com/users/yeti/following{/other_user}","gists_url":"https://api.github.com/users/yeti/gists{/gist_id}","starred_url":"https://api.github.com/users/yeti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeti/subscriptions","organizations_url":"https://api.github.com/users/yeti/orgs","repos_url":"https://api.github.com/users/yeti/repos","events_url":"https://api.github.com/users/yeti/events{/privacy}","received_events_url":"https://api.github.com/users/yeti/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yeti/signals","description":"","fork":false,"url":"https://api.github.com/repos/yeti/signals","forks_url":"https://api.github.com/repos/yeti/signals/forks","keys_url":"https://api.github.com/repos/yeti/signals/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yeti/signals/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yeti/signals/teams","hooks_url":"https://api.github.com/repos/yeti/signals/hooks","issue_events_url":"https://api.github.com/repos/yeti/signals/issues/events{/number}","events_url":"https://api.github.com/repos/yeti/signals/events","assignees_url":"https://api.github.com/repos/yeti/signals/assignees{/user}","branches_url":"https://api.github.com/repos/yeti/signals/branches{/branch}","tags_url":"https://api.github.com/repos/yeti/signals/tags","blobs_url":"https://api.github.com/repos/yeti/signals/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yeti/signals/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yeti/signals/git/refs{/sha}","trees_url":"https://api.github.com/repos/yeti/signals/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yeti/signals/statuses/{sha}","languages_url":"https://api.github.com/repos/yeti/signals/languages","stargazers_url":"https://api.github.com/repos/yeti/signals/stargazers","contributors_url":"https://api.github.com/repos/yeti/signals/contributors","subscribers_url":"https://api.github.com/repos/yeti/signals/subscribers","subscription_url":"https://api.github.com/repos/yeti/signals/subscription","commits_url":"https://api.github.com/repos/yeti/signals/commits{/sha}","git_commits_url":"https://api.github.com/repos/yeti/signals/git/commits{/sha}","comments_url":"https://api.github.com/repos/yeti/signals/comments{/number}","issue_comment_url":"https://api.github.com/repos/yeti/signals/issues/comments{/number}","contents_url":"https://api.github.com/repos/yeti/signals/contents/{+path}","compare_url":"https://api.github.com/repos/yeti/signals/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yeti/signals/merges","archive_url":"https://api.github.com/repos/yeti/signals/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yeti/signals/downloads","issues_url":"https://api.github.com/repos/yeti/signals/issues{/number}","pulls_url":"https://api.github.com/repos/yeti/signals/pulls{/number}","milestones_url":"https://api.github.com/repos/yeti/signals/milestones{/number}","notifications_url":"https://api.github.com/repos/yeti/signals/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yeti/signals/labels{/name}","releases_url":"https://api.github.com/repos/yeti/signals/releases{/id}","created_at":"2014-10-09T23:35:53Z","updated_at":"2015-08-26T22:02:28Z","pushed_at":"2015-09-16T00:02:01Z","git_url":"git://github.com/yeti/signals.git","ssh_url":"git@github.com:yeti/signals.git","clone_url":"https://github.com/yeti/signals.git","svn_url":"https://github.com/yeti/signals","homepage":"","size":556,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":28,"forks":0,"open_issues":28,"watchers":0,"default_branch":"master"}},"base":{"label":"yeti:master","ref":"master","sha":"5ca1b5e0a0d6fe5bb535ee6f5a5938de42caf896","user":{"login":"yeti","id":3828158,"avatar_url":"https://avatars.githubusercontent.com/u/3828158?v=3","gravatar_id":"","url":"https://api.github.com/users/yeti","html_url":"https://github.com/yeti","followers_url":"https://api.github.com/users/yeti/followers","following_url":"https://api.github.com/users/yeti/following{/other_user}","gists_url":"https://api.github.com/users/yeti/gists{/gist_id}","starred_url":"https://api.github.com/users/yeti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeti/subscriptions","organizations_url":"https://api.github.com/users/yeti/orgs","repos_url":"https://api.github.com/users/yeti/repos","events_url":"https://api.github.com/users/yeti/events{/privacy}","received_events_url":"https://api.github.com/users/yeti/received_events","type":"Organization","site_admin":false},"repo":{"id":25012852,"name":"signals","full_name":"yeti/signals","owner":{"login":"yeti","id":3828158,"avatar_url":"https://avatars.githubusercontent.com/u/3828158?v=3","gravatar_id":"","url":"https://api.github.com/users/yeti","html_url":"https://github.com/yeti","followers_url":"https://api.github.com/users/yeti/followers","following_url":"https://api.github.com/users/yeti/following{/other_user}","gists_url":"https://api.github.com/users/yeti/gists{/gist_id}","starred_url":"https://api.github.com/users/yeti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeti/subscriptions","organizations_url":"https://api.github.com/users/yeti/orgs","repos_url":"https://api.github.com/users/yeti/repos","events_url":"https://api.github.com/users/yeti/events{/privacy}","received_events_url":"https://api.github.com/users/yeti/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yeti/signals","description":"","fork":false,"url":"https://api.github.com/repos/yeti/signals","forks_url":"https://api.github.com/repos/yeti/signals/forks","keys_url":"https://api.github.com/repos/yeti/signals/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yeti/signals/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yeti/signals/teams","hooks_url":"https://api.github.com/repos/yeti/signals/hooks","issue_events_url":"https://api.github.com/repos/yeti/signals/issues/events{/number}","events_url":"https://api.github.com/repos/yeti/signals/events","assignees_url":"https://api.github.com/repos/yeti/signals/assignees{/user}","branches_url":"https://api.github.com/repos/yeti/signals/branches{/branch}","tags_url":"https://api.github.com/repos/yeti/signals/tags","blobs_url":"https://api.github.com/repos/yeti/signals/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yeti/signals/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yeti/signals/git/refs{/sha}","trees_url":"https://api.github.com/repos/yeti/signals/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yeti/signals/statuses/{sha}","languages_url":"https://api.github.com/repos/yeti/signals/languages","stargazers_url":"https://api.github.com/repos/yeti/signals/stargazers","contributors_url":"https://api.github.com/repos/yeti/signals/contributors","subscribers_url":"https://api.github.com/repos/yeti/signals/subscribers","subscription_url":"https://api.github.com/repos/yeti/signals/subscription","commits_url":"https://api.github.com/repos/yeti/signals/commits{/sha}","git_commits_url":"https://api.github.com/repos/yeti/signals/git/commits{/sha}","comments_url":"https://api.github.com/repos/yeti/signals/comments{/number}","issue_comment_url":"https://api.github.com/repos/yeti/signals/issues/comments{/number}","contents_url":"https://api.github.com/repos/yeti/signals/contents/{+path}","compare_url":"https://api.github.com/repos/yeti/signals/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yeti/signals/merges","archive_url":"https://api.github.com/repos/yeti/signals/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yeti/signals/downloads","issues_url":"https://api.github.com/repos/yeti/signals/issues{/number}","pulls_url":"https://api.github.com/repos/yeti/signals/pulls{/number}","milestones_url":"https://api.github.com/repos/yeti/signals/milestones{/number}","notifications_url":"https://api.github.com/repos/yeti/signals/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yeti/signals/labels{/name}","releases_url":"https://api.github.com/repos/yeti/signals/releases{/id}","created_at":"2014-10-09T23:35:53Z","updated_at":"2015-08-26T22:02:28Z","pushed_at":"2015-09-16T00:02:01Z","git_url":"git://github.com/yeti/signals.git","ssh_url":"git@github.com:yeti/signals.git","clone_url":"https://github.com/yeti/signals.git","svn_url":"https://github.com/yeti/signals","homepage":"","size":556,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":28,"forks":0,"open_issues":28,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yeti/signals/pulls/46"},"html":{"href":"https://github.com/yeti/signals/pull/46"},"issue":{"href":"https://api.github.com/repos/yeti/signals/issues/46"},"comments":{"href":"https://api.github.com/repos/yeti/signals/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/yeti/signals/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/yeti/signals/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yeti/signals/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/yeti/signals/statuses/03b712f728f41fd172f3c190a9962c828326c722"}}}}