{"action":"created","comment":{"url":"https://api.github.com/repos/douban/rexxar-ios/pulls/comments/83576941","pull_request_review_id":4410143,"id":83576941,"diff_hunk":"@@ -0,0 +1,233 @@\n+# Rexxar iOS\n+\n+[![Test Status](https://travis-ci.org/douban/rexxar-ios.svg?branch=master)](https://travis-ci.org/douban/rexxar-ios)\n+[![IDE](https://img.shields.io/badge/XCode-8-blue.svg)]()\n+[![iOS](https://img.shields.io/badge/iOS-7.0-green.svg)]()\n+[![Language](https://img.shields.io/badge/language-ObjC-blue.svg)](https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html)\n+\n+**Rexxar** is a hybrid library for mobile application development. Now it supports iOS and Android platform. `Rexxar iOS` is Rexxar's Container in iOS.\n+\n+With Rexxar, you can develop mobile application by traditional web technologies including javascript, html and css. Rexxar Container has not any requirements of web front side. Our demo in the web front side is implemented by [React](https://facebook.github.io/react/). You can use your own web front side framework to develop the application in Rexxar Container.\n+\n+Rexxar iOS supports iOS 7.0 and above systems.\n+\n+\n+## Rexxar\n+\n+About Rexxar's integral introduction, please check this article: [豆瓣的混合开发框架 -- Rexxar](http://lincode.github.io/Rexxar-OpenSource). Sorry about these is only Chinese version at present.\n+\n+Rexxar includes threes libraries:\n+\n+- Rexxar Web ：[https://github.com/douban/rexxar-web](https://github.com/douban/rexxar-web)。\n+- Rexxar Android：[https://github.com/douban/rexxar-android](https://github.com/douban/rexxar-android)。\n+- Rexxar iOS：[https://github.com/douban/rexxar-ios](https://github.com/douban/rexxar-ios)。\n+\n+\n+## Installation\n+\n+### Install Cocoapods\n+\n+[CocoaPods](http://cocoapods.org) is a dependency manager for Objective-C and Swift. You can install it with the following command:\n+\n+```bash\n+$ gem install cocoapods\n+```\n+\n+### Podfile\n+\n+```ruby\n+target 'TargetName' do\n+  pod 'Rexxar', :git => 'https://github.com/douban/rexxar-ios.git', :commit => '0.2.1'\n+end\n+```\n+\n+Then, run the following command:\n+\n+```bash\n+$ pod install\n+```\n+\n+\n+## Usage\n+\n+You can take a look at the example in the RexxarDemo folder.\n+\n+We use github raw file to serve the routes map api for this demo. You definitely need implement a real server in your real product serving the routes map api and html, css, javascript resource files. \n+\n+You can use any server framework. Rexxar hasn't any requirement about the server framework. Rexxar offers the configuration interface of the routes map api address in `RXRConfig`. You can find the way to configure the address in next section.\n+\n+### Configure routes map api address\n+\n+```Swift\n+  RXRConfig.setRoutesMapURL(NSURL(string:\"https://raw.githubusercontent.com/douban/rexxar-web/master/example/dist/routes.json)!)\n+```\n+\n+Rexxar use url to identify the page in mobile application. With a valid url, we can create a RXRViewController. There is the map from url to html resources in the routes map api file. In the Demo, you can see a routes map api file like this:\n+\n+```json\n+{\n+    \"items\": [{\n+        \"remote_file\": \"https://raw.githubusercontent.com/douban/rexxar-web/master/example/dist/rexxar/demo-252452ae58.html\",\n+        \"deploy_time\": \"Sun, 09 Oct 2016 07:43:47 GMT\",\n+        \"uri\": \"douban://douban.com/rexxar_demo[/]?.*\"\n+    }],\n+    \"partial_items\": [{\n+        \"remote_file\": \"https://raw.githubusercontent.com/douban/rexxar-web/master/example/dist/rexxar/demo-252452ae58.html\",\n+        \"deploy_time\": \"Sun, 09 Oct 2016 07:43:47 GMT\",\n+        \"uri\": \"douban://partial.douban.com/rexxar_demo/_.*\"\n+    }],\n+    \"deploy_time\": \"Sun, 09 Oct 2016 07:43:47 GMT\",\n+}","path":"README_EN.md","position":80,"original_position":80,"commit_id":"28283fc5527e25456b947285120ed7f81709d76e","original_commit_id":"28283fc5527e25456b947285120ed7f81709d76e","user":{"login":"ktmud","id":335541,"avatar_url":"https://avatars.githubusercontent.com/u/335541?v=3","gravatar_id":"","url":"https://api.github.com/users/ktmud","html_url":"https://github.com/ktmud","followers_url":"https://api.github.com/users/ktmud/followers","following_url":"https://api.github.com/users/ktmud/following{/other_user}","gists_url":"https://api.github.com/users/ktmud/gists{/gist_id}","starred_url":"https://api.github.com/users/ktmud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktmud/subscriptions","organizations_url":"https://api.github.com/users/ktmud/orgs","repos_url":"https://api.github.com/users/ktmud/repos","events_url":"https://api.github.com/users/ktmud/events{/privacy}","received_events_url":"https://api.github.com/users/ktmud/received_events","type":"User","site_admin":false},"body":"Please explain the JSON format with details of each parameter/property. What are they used for, why are they important.","created_at":"2016-10-17T04:38:12Z","updated_at":"2016-10-17T04:38:12Z","html_url":"https://github.com/douban/rexxar-ios/pull/20#discussion_r83576941","pull_request_url":"https://api.github.com/repos/douban/rexxar-ios/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/douban/rexxar-ios/pulls/comments/83576941"},"html":{"href":"https://github.com/douban/rexxar-ios/pull/20#discussion_r83576941"},"pull_request":{"href":"https://api.github.com/repos/douban/rexxar-ios/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/douban/rexxar-ios/pulls/20","id":89557592,"html_url":"https://github.com/douban/rexxar-ios/pull/20","diff_url":"https://github.com/douban/rexxar-ios/pull/20.diff","patch_url":"https://github.com/douban/rexxar-ios/pull/20.patch","issue_url":"https://api.github.com/repos/douban/rexxar-ios/issues/20","number":20,"state":"open","locked":false,"title":"Update REAMD_EN.md","user":{"login":"lincode","id":1203604,"avatar_url":"https://avatars.githubusercontent.com/u/1203604?v=3","gravatar_id":"","url":"https://api.github.com/users/lincode","html_url":"https://github.com/lincode","followers_url":"https://api.github.com/users/lincode/followers","following_url":"https://api.github.com/users/lincode/following{/other_user}","gists_url":"https://api.github.com/users/lincode/gists{/gist_id}","starred_url":"https://api.github.com/users/lincode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lincode/subscriptions","organizations_url":"https://api.github.com/users/lincode/orgs","repos_url":"https://api.github.com/users/lincode/repos","events_url":"https://api.github.com/users/lincode/events{/privacy}","received_events_url":"https://api.github.com/users/lincode/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-17T03:58:22Z","updated_at":"2016-10-17T04:59:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e863c393fb620d5780504ab8de32055f721e7f3c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/douban/rexxar-ios/pulls/20/commits","review_comments_url":"https://api.github.com/repos/douban/rexxar-ios/pulls/20/comments","review_comment_url":"https://api.github.com/repos/douban/rexxar-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/douban/rexxar-ios/issues/20/comments","statuses_url":"https://api.github.com/repos/douban/rexxar-ios/statuses/28283fc5527e25456b947285120ed7f81709d76e","head":{"label":"lincode:dev","ref":"dev","sha":"28283fc5527e25456b947285120ed7f81709d76e","user":{"login":"lincode","id":1203604,"avatar_url":"https://avatars.githubusercontent.com/u/1203604?v=3","gravatar_id":"","url":"https://api.github.com/users/lincode","html_url":"https://github.com/lincode","followers_url":"https://api.github.com/users/lincode/followers","following_url":"https://api.github.com/users/lincode/following{/other_user}","gists_url":"https://api.github.com/users/lincode/gists{/gist_id}","starred_url":"https://api.github.com/users/lincode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lincode/subscriptions","organizations_url":"https://api.github.com/users/lincode/orgs","repos_url":"https://api.github.com/users/lincode/repos","events_url":"https://api.github.com/users/lincode/events{/privacy}","received_events_url":"https://api.github.com/users/lincode/received_events","type":"User","site_admin":false},"repo":{"id":70334621,"name":"rexxar-ios","full_name":"lincode/rexxar-ios","owner":{"login":"lincode","id":1203604,"avatar_url":"https://avatars.githubusercontent.com/u/1203604?v=3","gravatar_id":"","url":"https://api.github.com/users/lincode","html_url":"https://github.com/lincode","followers_url":"https://api.github.com/users/lincode/followers","following_url":"https://api.github.com/users/lincode/following{/other_user}","gists_url":"https://api.github.com/users/lincode/gists{/gist_id}","starred_url":"https://api.github.com/users/lincode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lincode/subscriptions","organizations_url":"https://api.github.com/users/lincode/orgs","repos_url":"https://api.github.com/users/lincode/repos","events_url":"https://api.github.com/users/lincode/events{/privacy}","received_events_url":"https://api.github.com/users/lincode/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lincode/rexxar-ios","description":"Mobile Hybrid framework Rexxar iOS Container","fork":true,"url":"https://api.github.com/repos/lincode/rexxar-ios","forks_url":"https://api.github.com/repos/lincode/rexxar-ios/forks","keys_url":"https://api.github.com/repos/lincode/rexxar-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lincode/rexxar-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lincode/rexxar-ios/teams","hooks_url":"https://api.github.com/repos/lincode/rexxar-ios/hooks","issue_events_url":"https://api.github.com/repos/lincode/rexxar-ios/issues/events{/number}","events_url":"https://api.github.com/repos/lincode/rexxar-ios/events","assignees_url":"https://api.github.com/repos/lincode/rexxar-ios/assignees{/user}","branches_url":"https://api.github.com/repos/lincode/rexxar-ios/branches{/branch}","tags_url":"https://api.github.com/repos/lincode/rexxar-ios/tags","blobs_url":"https://api.github.com/repos/lincode/rexxar-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lincode/rexxar-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lincode/rexxar-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/lincode/rexxar-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lincode/rexxar-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/lincode/rexxar-ios/languages","stargazers_url":"https://api.github.com/repos/lincode/rexxar-ios/stargazers","contributors_url":"https://api.github.com/repos/lincode/rexxar-ios/contributors","subscribers_url":"https://api.github.com/repos/lincode/rexxar-ios/subscribers","subscription_url":"https://api.github.com/repos/lincode/rexxar-ios/subscription","commits_url":"https://api.github.com/repos/lincode/rexxar-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/lincode/rexxar-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/lincode/rexxar-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/lincode/rexxar-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/lincode/rexxar-ios/contents/{+path}","compare_url":"https://api.github.com/repos/lincode/rexxar-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lincode/rexxar-ios/merges","archive_url":"https://api.github.com/repos/lincode/rexxar-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lincode/rexxar-ios/downloads","issues_url":"https://api.github.com/repos/lincode/rexxar-ios/issues{/number}","pulls_url":"https://api.github.com/repos/lincode/rexxar-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/lincode/rexxar-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/lincode/rexxar-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lincode/rexxar-ios/labels{/name}","releases_url":"https://api.github.com/repos/lincode/rexxar-ios/releases{/id}","deployments_url":"https://api.github.com/repos/lincode/rexxar-ios/deployments","created_at":"2016-10-08T13:57:54Z","updated_at":"2016-10-09T06:46:53Z","pushed_at":"2016-10-17T03:54:39Z","git_url":"git://github.com/lincode/rexxar-ios.git","ssh_url":"git@github.com:lincode/rexxar-ios.git","clone_url":"https://github.com/lincode/rexxar-ios.git","svn_url":"https://github.com/lincode/rexxar-ios","homepage":null,"size":273,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"douban:master","ref":"master","sha":"424b5c1646ab50499524c4436e157a1e9f0a2ea2","user":{"login":"douban","id":1220164,"avatar_url":"https://avatars.githubusercontent.com/u/1220164?v=3","gravatar_id":"","url":"https://api.github.com/users/douban","html_url":"https://github.com/douban","followers_url":"https://api.github.com/users/douban/followers","following_url":"https://api.github.com/users/douban/following{/other_user}","gists_url":"https://api.github.com/users/douban/gists{/gist_id}","starred_url":"https://api.github.com/users/douban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douban/subscriptions","organizations_url":"https://api.github.com/users/douban/orgs","repos_url":"https://api.github.com/users/douban/repos","events_url":"https://api.github.com/users/douban/events{/privacy}","received_events_url":"https://api.github.com/users/douban/received_events","type":"Organization","site_admin":false},"repo":{"id":69011655,"name":"rexxar-ios","full_name":"douban/rexxar-ios","owner":{"login":"douban","id":1220164,"avatar_url":"https://avatars.githubusercontent.com/u/1220164?v=3","gravatar_id":"","url":"https://api.github.com/users/douban","html_url":"https://github.com/douban","followers_url":"https://api.github.com/users/douban/followers","following_url":"https://api.github.com/users/douban/following{/other_user}","gists_url":"https://api.github.com/users/douban/gists{/gist_id}","starred_url":"https://api.github.com/users/douban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douban/subscriptions","organizations_url":"https://api.github.com/users/douban/orgs","repos_url":"https://api.github.com/users/douban/repos","events_url":"https://api.github.com/users/douban/events{/privacy}","received_events_url":"https://api.github.com/users/douban/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/douban/rexxar-ios","description":"Mobile Hybrid Framework Rexxar iOS Container","fork":false,"url":"https://api.github.com/repos/douban/rexxar-ios","forks_url":"https://api.github.com/repos/douban/rexxar-ios/forks","keys_url":"https://api.github.com/repos/douban/rexxar-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/douban/rexxar-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/douban/rexxar-ios/teams","hooks_url":"https://api.github.com/repos/douban/rexxar-ios/hooks","issue_events_url":"https://api.github.com/repos/douban/rexxar-ios/issues/events{/number}","events_url":"https://api.github.com/repos/douban/rexxar-ios/events","assignees_url":"https://api.github.com/repos/douban/rexxar-ios/assignees{/user}","branches_url":"https://api.github.com/repos/douban/rexxar-ios/branches{/branch}","tags_url":"https://api.github.com/repos/douban/rexxar-ios/tags","blobs_url":"https://api.github.com/repos/douban/rexxar-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/douban/rexxar-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/douban/rexxar-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/douban/rexxar-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/douban/rexxar-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/douban/rexxar-ios/languages","stargazers_url":"https://api.github.com/repos/douban/rexxar-ios/stargazers","contributors_url":"https://api.github.com/repos/douban/rexxar-ios/contributors","subscribers_url":"https://api.github.com/repos/douban/rexxar-ios/subscribers","subscription_url":"https://api.github.com/repos/douban/rexxar-ios/subscription","commits_url":"https://api.github.com/repos/douban/rexxar-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/douban/rexxar-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/douban/rexxar-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/douban/rexxar-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/douban/rexxar-ios/contents/{+path}","compare_url":"https://api.github.com/repos/douban/rexxar-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/douban/rexxar-ios/merges","archive_url":"https://api.github.com/repos/douban/rexxar-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/douban/rexxar-ios/downloads","issues_url":"https://api.github.com/repos/douban/rexxar-ios/issues{/number}","pulls_url":"https://api.github.com/repos/douban/rexxar-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/douban/rexxar-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/douban/rexxar-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/douban/rexxar-ios/labels{/name}","releases_url":"https://api.github.com/repos/douban/rexxar-ios/releases{/id}","deployments_url":"https://api.github.com/repos/douban/rexxar-ios/deployments","created_at":"2016-09-23T09:44:29Z","updated_at":"2016-10-16T14:43:23Z","pushed_at":"2016-10-17T03:58:22Z","git_url":"git://github.com/douban/rexxar-ios.git","ssh_url":"git@github.com:douban/rexxar-ios.git","clone_url":"https://github.com/douban/rexxar-ios.git","svn_url":"https://github.com/douban/rexxar-ios","homepage":"","size":271,"stargazers_count":143,"watchers_count":143,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":3,"forks":23,"open_issues":3,"watchers":143,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/douban/rexxar-ios/pulls/20"},"html":{"href":"https://github.com/douban/rexxar-ios/pull/20"},"issue":{"href":"https://api.github.com/repos/douban/rexxar-ios/issues/20"},"comments":{"href":"https://api.github.com/repos/douban/rexxar-ios/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/douban/rexxar-ios/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/douban/rexxar-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/douban/rexxar-ios/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/douban/rexxar-ios/statuses/28283fc5527e25456b947285120ed7f81709d76e"}}}}
{"actor":{"display_login":"ktmud"}}