Skip to content

Commit

Permalink
更新 README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
小鱼周凌宇 committed May 25, 2017
1 parent 700acb9 commit 5dd64f6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
Binary file not shown.
12 changes: 12 additions & 0 deletions README.md
Expand Up @@ -37,6 +37,14 @@ python ${PODS_ROOT}/Lotusoot/Lotusoot/Lotusoot.py ${SRC_ROOT} ${SRCROOT} Lotusoo
### 2. Use

```swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// register all routes
LotusootCoordinator.registerAll()
return true
}
```

1. Call a service

```swift
Expand Down Expand Up @@ -126,6 +134,10 @@ class AccountLotusoot: NSObject, AccountLotus {
3. In your main project `import Lotusoot``import ModulePublic`. You are free to call all the service and routers now

> Tip: You can refer [Demo](Demo) -> [NewProject](Demo/NewProject)
>
## Demo

[Demo 工程](Demo/DemoProject),Please do not forget build every `Scheme` first.

## TO DO

Expand Down
14 changes: 13 additions & 1 deletion README_CN.md
Expand Up @@ -17,6 +17,14 @@ pod 'Lotusoot'

## 使用

```
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// 通过 Build 阶段自动生成的 Lotusoot.plist 注册
LotusootCoordinator.registerAll()
return true
}
```

### 1. 配置

1. 在 Xcode 中点击工程,选择你的 `Target`,点击 `Buid Phases`,添加 `New Run Script Phase`
Expand Down Expand Up @@ -125,7 +133,11 @@ class AccountLotusoot: NSObject, AccountLotus {
3. 在主工程中 `import Lotusoot``import ModulePublic` 调用服务和路由。

> Tip: 具体可以查看 [Demo](Demo) -> [NewProject](Demo/NewProject)
> Tip: 具体可以查看 [Demo](Demo) -> [DemoProject](Demo/DemoProject)
## Demo

在这里查看 [Demo 工程](Demo/DemoProject),请记得先编译各个 Scheme。

## TO DO

Expand Down

0 comments on commit 5dd64f6

Please sign in to comment.