Skip to content

Commit 09a22e5

Browse files
authored
[MercedesMe] Switch to Mercedes App SDK (openhab#15628)
* add protocol buffer definitions * oauth rework * websocket introduction Signed-off-by: Bernd Weymann <[email protected]>
1 parent c9864d6 commit 09a22e5

File tree

152 files changed

+156416
-2760
lines changed

Some content is hidden

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

152 files changed

+156416
-2760
lines changed

bundles/org.openhab.binding.mercedesme/README.md

+700-372
Large diffs are not rendered by default.
Binary file not shown.
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Loading
Loading
Loading
Loading

bundles/org.openhab.binding.mercedesme/pom.xml

+29
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,28 @@
1010
<version>4.2.0-SNAPSHOT</version>
1111
</parent>
1212

13+
<build>
14+
<plugins>
15+
<plugin>
16+
<groupId>org.codehaus.mojo</groupId>
17+
<artifactId>build-helper-maven-plugin</artifactId>
18+
<executions>
19+
<execution>
20+
<goals>
21+
<goal>add-source</goal>
22+
</goals>
23+
<phase>generate-sources</phase>
24+
<configuration>
25+
<sources>
26+
<source>src/3rdparty/java</source>
27+
</sources>
28+
</configuration>
29+
</execution>
30+
</executions>
31+
</plugin>
32+
</plugins>
33+
</build>
34+
1335
<dependencies>
1436
<!-- version needs to match with other projects like org.openhab.io.openhabcloud.pom.xml -->
1537
<dependency>
@@ -18,6 +40,13 @@
1840
<version>20231013</version>
1941
<scope>compile</scope>
2042
</dependency>
43+
<!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java -->
44+
<dependency>
45+
<groupId>com.google.protobuf</groupId>
46+
<artifactId>protobuf-java</artifactId>
47+
<version>4.26.1</version>
48+
<scope>compile</scope>
49+
</dependency>
2150
</dependencies>
2251

2352
<artifactId>org.openhab.binding.mercedesme</artifactId>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# How to protoc
2+
3+
- Check [mvn repository](https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java-util) which version to use
4+
- Download correct protoc compiler from [maven central](https://repo1.maven.org/maven2/com/google/protobuf/protoc/) into `PROTOC_DIR`
5+
- Call in mercedesme binding directory `PROTOC_DIR\protoc -I=proto --java_out=gen proto/*.proto`
6+
- Move generated sources including subdirs from `gen` to `3rdparty\java`
7+
- Adapt `pom.xml` with version of step 1

0 commit comments

Comments
 (0)