Skip to content

Commit 4951a97

Browse files
committed
Update protocol to latest version
1 parent 01412a3 commit 4951a97

File tree

173 files changed

+12833
-1210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+12833
-1210
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,8 @@ verify:
6565
cd $(JAVA_PROTOCOL_BUILDER_DIR)/ && make verify
6666
cd $(JAVA_CLIENT_DIR)/ && make verify
6767
$(MVN) --file "$(JAVA_CLIENT_DIR)/" clean install && \
68-
$(MVN) --file "$(EXAMPLES_DIR)/" clean compile
68+
$(MVN) --file "$(EXAMPLES_DIR)/" clean compile
69+
70+
download-latest-protocol:
71+
curl -o browser_protocol.json https://raw.githubusercontent.com/ChromeDevTools/devtools-protocol/master/json/browser_protocol.json
72+
curl -o js_protocol.json https://raw.githubusercontent.com/ChromeDevTools/devtools-protocol/master/json/js_protocol.json

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ Chrome DevTools Java Client is a DevTools client - in Java. (: It can be used fo
66

77
For more information on DevTools, see https://chromedevtools.github.io/devtools-protocol/.
88

9-
Tested on Google Chrome Version 67.0.3396.87. Protocol files from [dev-tools-protocol#1aa7b31ca7](https://github.com/ChromeDevTools/devtools-protocol/tree/1aa7b31ca7bba982eceea8d4bd494b27850fb0df/json)
9+
[v1.3.6](https://github.com/kklisura/chrome-devtools-java-client/tree/v1.3.6) tested on Google Chrome Version 67.0.3396.87. Protocol files from [dev-tools-protocol#1aa7b31ca7](https://github.com/ChromeDevTools/devtools-protocol/tree/1aa7b31ca7bba982eceea8d4bd494b27850fb0df/json)
10+
11+
[vX.X.X](https://github.com/kklisura/chrome-devtools-java-client/tree/vX.X.X) tested on Google Chrome Version 76.0.3809.100. Protocol files from [dev-tools-protocol#e1fb93bd76](https://github.com/ChromeDevTools/devtools-protocol/tree/e1fb93bd76f99cdf401b949757c874c579e15434/json)
1012

1113
[1] https://chromedevtools.github.io/devtools-protocol/.
1214

@@ -97,6 +99,26 @@ For more examples, see [examples](cdt-examples/src/main/java/com/github/kklisura
9799

98100
`make sonar-analysis`
99101

102+
## Download latest protocol
103+
104+
Run following:
105+
```
106+
make download-latest-protocol
107+
```
108+
109+
This will download `browser_protocol.json` and `js_protocol.json` (protocol definitions) from https://github.com/ChromeDevTools/devtools-protocol repo.
110+
111+
## Update protocol (generate Java files from protocol definitions)
112+
113+
Make sure you have correct or latest protocol definitions. See [Download latest protocol](#download-latest-protocol) on how to update protocol definitions to latest version.
114+
115+
Run following:
116+
```
117+
make update-protocol
118+
```
119+
120+
This will build the tools for parsing and generating Java files, [cdt-protocol-builder](cdt-protocol-builder/) project. The input for this tool are protocol definitions files: `browser_protocol.json` and `js_protocol.json`. The generated Java files will be present in [cdt-java-client](cdt-java-client/) project. After building Java files, the [cdt-java-client](cdt-java-client/) will be compiled. If everything goes successfully, consider the protocol updated. :)
121+
100122
## License
101123

102124
Chrome DevTools Java Client is licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE.txt) for the full license text.

0 commit comments

Comments
 (0)