Skip to content

Commit ddce7af

Browse files
author
yuki tamazawa
committed
[ci skip] v1.0.0
1 parent 56f776c commit ddce7af

2 files changed

Lines changed: 75 additions & 2 deletions

File tree

README.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,77 @@
11
![](https://img.shields.io/github/license/srea/RIBsTreeViewerClient.svg)
22
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
33
# RIBsTreeViewer
4+
45
Real Time viewing attached RIBs Tree on Browser
6+
7+
# Carthage
8+
9+
## Cartfile
10+
11+
```shell
12+
github "srea/RIBsTreeViewerClient"
13+
```
14+
15+
## Build Phase
16+
17+
Carthage CopyFrameworks (ONLY DEBUG)
18+
19+
```shell
20+
if [ ${CONFIGURATION%%-*} == "Debug" ]; then
21+
/usr/local/bin/carthage copy-frameworks
22+
fi
23+
```
24+
25+
## Implementation
26+
27+
```swift
28+
#if DEBUG
29+
import RIBsTreeViewerClient
30+
#endif
31+
32+
@UIApplicationMain
33+
class AppDelegate: UIResponder, UIApplicationDelegate {
34+
35+
#if DEBUG
36+
private var ribsTreeViewer: RIBsTreeViewer?
37+
#endif
38+
39+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
40+
let window = UIWindow(frame: UIScreen.main.bounds)
41+
self.window = window
42+
43+
...
44+
45+
launchRouter.launch(from: window)
46+
#if DEBUG
47+
startRIBsTreeViewer(launchRouter: launchRouter)
48+
#endif
49+
return true
50+
}
51+
52+
}
53+
54+
#if DEBUG
55+
extension AppDelegate {
56+
private func startRIBsTreeViewer(launchRouter: Routing) {
57+
ribsTreeViewer = RIBsTreeViewer.init(router: launchRouter)
58+
ribsTreeViewer?.start()
59+
}
60+
}
61+
#endif
62+
```
63+
64+
# WebSocket Server
65+
66+
```shell
67+
$ yarn install
68+
$ node index.js
69+
```
70+
71+
# Browser
72+
73+
```shell
74+
$ yarn install
75+
$ npx webpack
76+
$ open ./public/index.html
77+
```

RIBsTreeViewerClient.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
"@executable_path/Frameworks",
318318
"@loader_path/Frameworks",
319319
);
320-
MARKETING_VERSION = 2.0;
320+
MARKETING_VERSION = 1.0.0;
321321
PRODUCT_BUNDLE_IDENTIFIER = co.minipro.app.RIBsTreeViewerClient;
322322
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
323323
SKIP_INSTALL = YES;
@@ -351,7 +351,7 @@
351351
"@executable_path/Frameworks",
352352
"@loader_path/Frameworks",
353353
);
354-
MARKETING_VERSION = 2.0;
354+
MARKETING_VERSION = 1.0.0;
355355
PRODUCT_BUNDLE_IDENTIFIER = co.minipro.app.RIBsTreeViewerClient;
356356
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
357357
SKIP_INSTALL = YES;

0 commit comments

Comments
 (0)