You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/07/21 09:01:11 UTC
[09/16] incubator-weex git commit: * [ios] add carthage compatible
* [ios] add carthage compatible
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/7fe4476f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/7fe4476f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/7fe4476f
Branch: refs/heads/0.15-dev
Commit: 7fe4476ff75b022f4d4712cbc327e40e7227208b
Parents: 4b5326b
Author: acton393 <zh...@gmail.com>
Authored: Wed Jun 21 19:50:42 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Wed Jun 21 19:50:42 2017 +0800
----------------------------------------------------------------------
README.md | 48 ++++++++++++++++++++++++++++++++----------------
1 file changed, 32 insertions(+), 16 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7fe4476f/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index f9400f0..9b6bc41 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
A framework for building Mobile cross-platform UI.
Android[![Download](https://api.bintray.com/packages/alibabaweex/maven/weex_sdk/images/download.svg)](https://bintray.com/alibabaweex/maven/weex_sdk/_latestVersion)
-iOS[![Pod version](https://badge.fury.io/co/WeexSDK.svg)](https://cocoapods.org/pods/WeexSDK)
+iOS[![Pod version](https://badge.fury.io/co/WeexSDK.svg)](https://cocoapods.org/pods/WeexSDK) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
HTML5[![npm version](https://badge.fury.io/js/weex-html5.svg)](https://www.npmjs.com/package/weex-html5)
[![CircleCI](https://circleci.com/gh/alibaba/weex/tree/dev.svg?style=svg&circle-token=b83b047a3a01f6ec26458a455530a5ddc261925f)](https://circleci.com/gh/alibaba/weex/tree/dev)
@@ -46,21 +46,37 @@ Please ***INSTALL [Git for Windows](https://git-scm.com/download/win)*** and run
On Android Platform , Weex code is executed in [weex_v8core](https://github.com/alibaba/weex_v8core) which is based on Google V8 JavaScript engine.
### iOS
-
-* Prerequisites
- * Install [Node.js](http://nodejs.org/) 4.0+
- * Under project root
- * `npm install`, install project
- * `./start`
- * Install [iOS Environment](https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppStoreDistributionTutorial/Setup/Setup.html)
- * Install [CocoaPods](https://guides.cocoapods.org/using/getting-started.html)
-* Run playground
- * `cd ios/playground`
- * `pod install`
- * Open `WeexDemo.xcworkspace` in Xcode
- * Click <img src="http://img1.tbcdn.cn/L1/461/1/5470b677a2f2eaaecf412cc55eeae062dbc275f9" height="16" > (`Run` button) or use default shortcut `cmd + r` in Xcode
- * If you want to run the demo on your device, don't need to modify `CURRENT_IP` manually. ~~In `DemoDefine.h`(you can search this file by Xcode default shortcut `cmd + shift + o`), modify `CURRENT_IP` to your local IP~~
-* [Add an example](./examples/README.md#add-an-example)
+* run playground
+ * Prerequisites
+ * Install [Node.js](http://nodejs.org/) 4.0+
+ * Under project root
+ * `npm install`, install project
+ * `./start`
+ * Install [iOS Environment](https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppStoreDistributionTutorial/Setup/Setup.html)
+ * Install [CocoaPods](https://guides.cocoapods.org/using/getting-started.html)
+ * Run playground
+ * `cd ios/playground`
+ * `pod install`
+ * Open `WeexDemo.xcworkspace` in Xcode
+ * Click <img src="http://img1.tbcdn.cn/L1/461/1/5470b677a2f2eaaecf412cc55eeae062dbc275f9" height="16" > (`Run` button) or use default shortcut `cmd + r` in Xcode
+ * If you want to run the demo on your device, don't need to modify `CURRENT_IP` manually. ~~In `DemoDefine.h`(you can search this file by Xcode default shortcut `cmd + shift + o`), modify `CURRENT_IP` to your local IP~~
+ * [Add an example](./examples/README.md#add-an-example)
+* integrate to your application
+
+ - **[CocoaPods](https://cocoapods.org)**
+ Add the following line to your Podfile:
+ ```
+ pod 'WeexSDK'
+ ```
+ run `pod install`
+ - **[Carthage](https://github.com/carthage/carthage)**
+ Add the following line to your Cartfile:
+ ```
+ github "apache/incubator-weex"
+ ```
+ Run `carthage update`, and you should now have the latest version of `WeexSDK` in your `Carthage` folder.
+
+
## Scripts