{"action":"created","comment":{"url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/comments/30222167","id":30222167,"diff_hunk":"@@ -857,6 +857,134 @@ class J2objcXcodeTask extends DefaultTask {\n     }\n }\n \n+/*\n+ * Updates the Xcode project with j2objc generated files and resources.\n+ * This uses the CocoaPods dependency system. For more details see \n+ * https://cocoapods.org/\n+ * It creates a podspec file and inserts it into your project's pod file.\n+ * If you haven't create a pod file yet you have to run `pod init` in your \n+ * project folder \n+ * before you run this task.\n+ */\n+class J2objcPodTask extends DefaultTask {\n+      \n+    @InputDirectory File srcDir\n+  \n+    @TaskAction\n+    def pod(IncrementalTaskInputs inputs) {\n+        \n+        if (project.j2objcConfig.xcodeProjectDir == null) {\n+            def message = \"You must specify the xcodeProjectDir\"\n+            throw new InvalidUserDataException(message)\n+        }\n+          \n+        if (project.j2objcConfig.xcodeTarget == null) {\n+            def message = \"You must specify the xcodeTarget\"\n+            throw new InvalidUserDataException(message)\n+        }\n+          \n+        def xcodeProjectDir = project.j2objcConfig.xcodeProjectDir\n+        def xcodeTarget = project.j2objcConfig.xcodeTarget\n+        def lineSeparator = System.getProperty(\"line.separator\")\n+          \n+        // Resource Folder is copied to buildDir where it's accessed by the pod later\n+        String j2objcResourceDirName = \"j2objcResources\"\n+        String j2objcResourceDirPath = \"${project.buildDir}/${j2objcResourceDirName}\"\n+        project.delete j2objcResourceDirPath\n+        project.copy {\n+            from project.files(\n+                    project.fileTree(dir: \"${project.projectDir}/src/main/resources\",","path":"j2objc.gradle","position":40,"original_position":40,"commit_id":"d57cceeddf3c334afe01128420965fcd62041f32","original_commit_id":"d57cceeddf3c334afe01128420965fcd62041f32","user":{"login":"advayDev1","id":11729521,"avatar_url":"https://avatars.githubusercontent.com/u/11729521?v=3","gravatar_id":"","url":"https://api.github.com/users/advayDev1","html_url":"https://github.com/advayDev1","followers_url":"https://api.github.com/users/advayDev1/followers","following_url":"https://api.github.com/users/advayDev1/following{/other_user}","gists_url":"https://api.github.com/users/advayDev1/gists{/gist_id}","starred_url":"https://api.github.com/users/advayDev1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advayDev1/subscriptions","organizations_url":"https://api.github.com/users/advayDev1/orgs","repos_url":"https://api.github.com/users/advayDev1/repos","events_url":"https://api.github.com/users/advayDev1/events{/privacy}","received_events_url":"https://api.github.com/users/advayDev1/received_events","type":"User","site_admin":false},"body":"consider instead joining the values of `project.sourceSets['main'].resources.srcDirs`; see fix #48","created_at":"2015-05-13T11:34:04Z","updated_at":"2015-05-13T11:34:04Z","html_url":"https://github.com/brunobowden/j2objc-gradle/pull/46#discussion_r30222167","pull_request_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/comments/30222167"},"html":{"href":"https://github.com/brunobowden/j2objc-gradle/pull/46#discussion_r30222167"},"pull_request":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/46","id":34609510,"html_url":"https://github.com/brunobowden/j2objc-gradle/pull/46","diff_url":"https://github.com/brunobowden/j2objc-gradle/pull/46.diff","patch_url":"https://github.com/brunobowden/j2objc-gradle/pull/46.patch","issue_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/46","number":46,"state":"open","locked":false,"title":"j2objcPod task to ...","user":{"login":"confile","id":64265,"avatar_url":"https://avatars.githubusercontent.com/u/64265?v=3","gravatar_id":"","url":"https://api.github.com/users/confile","html_url":"https://github.com/confile","followers_url":"https://api.github.com/users/confile/followers","following_url":"https://api.github.com/users/confile/following{/other_user}","gists_url":"https://api.github.com/users/confile/gists{/gist_id}","starred_url":"https://api.github.com/users/confile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confile/subscriptions","organizations_url":"https://api.github.com/users/confile/orgs","repos_url":"https://api.github.com/users/confile/repos","events_url":"https://api.github.com/users/confile/events{/privacy}","received_events_url":"https://api.github.com/users/confile/received_events","type":"User","site_admin":false},"body":"- generate a podspec file\r\n- integrate the pod in the podfile in the project dir\r\n- install the pod","created_at":"2015-05-03T23:04:30Z","updated_at":"2015-05-13T11:34:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa75cefe7926a3fc3723d5d4ce850346760ac071","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/46/commits","review_comments_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/46/comments","review_comment_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/46/comments","statuses_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/statuses/d57cceeddf3c334afe01128420965fcd62041f32","head":{"label":"confile:patch-1","ref":"patch-1","sha":"d57cceeddf3c334afe01128420965fcd62041f32","user":{"login":"confile","id":64265,"avatar_url":"https://avatars.githubusercontent.com/u/64265?v=3","gravatar_id":"","url":"https://api.github.com/users/confile","html_url":"https://github.com/confile","followers_url":"https://api.github.com/users/confile/followers","following_url":"https://api.github.com/users/confile/following{/other_user}","gists_url":"https://api.github.com/users/confile/gists{/gist_id}","starred_url":"https://api.github.com/users/confile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confile/subscriptions","organizations_url":"https://api.github.com/users/confile/orgs","repos_url":"https://api.github.com/users/confile/repos","events_url":"https://api.github.com/users/confile/events{/privacy}","received_events_url":"https://api.github.com/users/confile/received_events","type":"User","site_admin":false},"repo":{"id":34420486,"name":"j2objc-gradle","full_name":"confile/j2objc-gradle","owner":{"login":"confile","id":64265,"avatar_url":"https://avatars.githubusercontent.com/u/64265?v=3","gravatar_id":"","url":"https://api.github.com/users/confile","html_url":"https://github.com/confile","followers_url":"https://api.github.com/users/confile/followers","following_url":"https://api.github.com/users/confile/following{/other_user}","gists_url":"https://api.github.com/users/confile/gists{/gist_id}","starred_url":"https://api.github.com/users/confile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confile/subscriptions","organizations_url":"https://api.github.com/users/confile/orgs","repos_url":"https://api.github.com/users/confile/repos","events_url":"https://api.github.com/users/confile/events{/privacy}","received_events_url":"https://api.github.com/users/confile/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/confile/j2objc-gradle","description":"Gradle plugin for j2objc (Java to Objective-C transpiler)","fork":true,"url":"https://api.github.com/repos/confile/j2objc-gradle","forks_url":"https://api.github.com/repos/confile/j2objc-gradle/forks","keys_url":"https://api.github.com/repos/confile/j2objc-gradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/confile/j2objc-gradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/confile/j2objc-gradle/teams","hooks_url":"https://api.github.com/repos/confile/j2objc-gradle/hooks","issue_events_url":"https://api.github.com/repos/confile/j2objc-gradle/issues/events{/number}","events_url":"https://api.github.com/repos/confile/j2objc-gradle/events","assignees_url":"https://api.github.com/repos/confile/j2objc-gradle/assignees{/user}","branches_url":"https://api.github.com/repos/confile/j2objc-gradle/branches{/branch}","tags_url":"https://api.github.com/repos/confile/j2objc-gradle/tags","blobs_url":"https://api.github.com/repos/confile/j2objc-gradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/confile/j2objc-gradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/confile/j2objc-gradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/confile/j2objc-gradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/confile/j2objc-gradle/statuses/{sha}","languages_url":"https://api.github.com/repos/confile/j2objc-gradle/languages","stargazers_url":"https://api.github.com/repos/confile/j2objc-gradle/stargazers","contributors_url":"https://api.github.com/repos/confile/j2objc-gradle/contributors","subscribers_url":"https://api.github.com/repos/confile/j2objc-gradle/subscribers","subscription_url":"https://api.github.com/repos/confile/j2objc-gradle/subscription","commits_url":"https://api.github.com/repos/confile/j2objc-gradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/confile/j2objc-gradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/confile/j2objc-gradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/confile/j2objc-gradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/confile/j2objc-gradle/contents/{+path}","compare_url":"https://api.github.com/repos/confile/j2objc-gradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/confile/j2objc-gradle/merges","archive_url":"https://api.github.com/repos/confile/j2objc-gradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/confile/j2objc-gradle/downloads","issues_url":"https://api.github.com/repos/confile/j2objc-gradle/issues{/number}","pulls_url":"https://api.github.com/repos/confile/j2objc-gradle/pulls{/number}","milestones_url":"https://api.github.com/repos/confile/j2objc-gradle/milestones{/number}","notifications_url":"https://api.github.com/repos/confile/j2objc-gradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/confile/j2objc-gradle/labels{/name}","releases_url":"https://api.github.com/repos/confile/j2objc-gradle/releases{/id}","created_at":"2015-04-22T22:54:57Z","updated_at":"2015-04-06T10:04:24Z","pushed_at":"2015-05-13T11:28:29Z","git_url":"git://github.com/confile/j2objc-gradle.git","ssh_url":"git@github.com:confile/j2objc-gradle.git","clone_url":"https://github.com/confile/j2objc-gradle.git","svn_url":"https://github.com/confile/j2objc-gradle","homepage":null,"size":337,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"brunobowden:master","ref":"master","sha":"5665f0a5ff774005ce30e088ab2e1b76caca5a43","user":{"login":"brunobowden","id":679339,"avatar_url":"https://avatars.githubusercontent.com/u/679339?v=3","gravatar_id":"","url":"https://api.github.com/users/brunobowden","html_url":"https://github.com/brunobowden","followers_url":"https://api.github.com/users/brunobowden/followers","following_url":"https://api.github.com/users/brunobowden/following{/other_user}","gists_url":"https://api.github.com/users/brunobowden/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobowden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobowden/subscriptions","organizations_url":"https://api.github.com/users/brunobowden/orgs","repos_url":"https://api.github.com/users/brunobowden/repos","events_url":"https://api.github.com/users/brunobowden/events{/privacy}","received_events_url":"https://api.github.com/users/brunobowden/received_events","type":"User","site_admin":false},"repo":{"id":30206593,"name":"j2objc-gradle","full_name":"brunobowden/j2objc-gradle","owner":{"login":"brunobowden","id":679339,"avatar_url":"https://avatars.githubusercontent.com/u/679339?v=3","gravatar_id":"","url":"https://api.github.com/users/brunobowden","html_url":"https://github.com/brunobowden","followers_url":"https://api.github.com/users/brunobowden/followers","following_url":"https://api.github.com/users/brunobowden/following{/other_user}","gists_url":"https://api.github.com/users/brunobowden/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobowden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobowden/subscriptions","organizations_url":"https://api.github.com/users/brunobowden/orgs","repos_url":"https://api.github.com/users/brunobowden/repos","events_url":"https://api.github.com/users/brunobowden/events{/privacy}","received_events_url":"https://api.github.com/users/brunobowden/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brunobowden/j2objc-gradle","description":"Gradle plugin for j2objc (Java to Objective-C transpiler)","fork":false,"url":"https://api.github.com/repos/brunobowden/j2objc-gradle","forks_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/forks","keys_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/teams","hooks_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/hooks","issue_events_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/events{/number}","events_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/events","assignees_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/assignees{/user}","branches_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/branches{/branch}","tags_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/tags","blobs_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/statuses/{sha}","languages_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/languages","stargazers_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/stargazers","contributors_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/contributors","subscribers_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/subscribers","subscription_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/subscription","commits_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/contents/{+path}","compare_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/merges","archive_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/downloads","issues_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues{/number}","pulls_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls{/number}","milestones_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/milestones{/number}","notifications_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/labels{/name}","releases_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/releases{/id}","created_at":"2015-02-02T20:22:07Z","updated_at":"2015-05-13T06:04:59Z","pushed_at":"2015-05-13T11:28:29Z","git_url":"git://github.com/brunobowden/j2objc-gradle.git","ssh_url":"git@github.com:brunobowden/j2objc-gradle.git","clone_url":"https://github.com/brunobowden/j2objc-gradle.git","svn_url":"https://github.com/brunobowden/j2objc-gradle","homepage":null,"size":925,"stargazers_count":25,"watchers_count":25,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":15,"forks":7,"open_issues":15,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/46"},"html":{"href":"https://github.com/brunobowden/j2objc-gradle/pull/46"},"issue":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/46"},"comments":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/statuses/d57cceeddf3c334afe01128420965fcd62041f32"}}}}