Skip to content

Commit

Permalink
[MercedesMe] Switch to Mercedes App SDK (openhab#15628)
Browse files Browse the repository at this point in the history
* add protocol buffer definitions
* oauth rework
* websocket introduction

Signed-off-by: Bernd Weymann <[email protected]>
  • Loading branch information
weymann authored Jun 4, 2024
1 parent c9864d6 commit 09a22e5
Show file tree
Hide file tree
Showing 152 changed files with 156,416 additions and 2,760 deletions.
1,072 changes: 700 additions & 372 deletions bundles/org.openhab.binding.mercedesme/README.md

Large diffs are not rendered by default.

Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions bundles/org.openhab.binding.mercedesme/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,28 @@
<version>4.2.0-SNAPSHOT</version>
</parent>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>add-source</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<sources>
<source>src/3rdparty/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<!-- version needs to match with other projects like org.openhab.io.openhabcloud.pom.xml -->
<dependency>
Expand All @@ -18,6 +40,13 @@
<version>20231013</version>
<scope>compile</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java -->
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>4.26.1</version>
<scope>compile</scope>
</dependency>
</dependencies>

<artifactId>org.openhab.binding.mercedesme</artifactId>
Expand Down
7 changes: 7 additions & 0 deletions bundles/org.openhab.binding.mercedesme/proto/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# How to protoc

- Check [mvn repository](https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java-util) which version to use
- Download correct protoc compiler from [maven central](https://repo1.maven.org/maven2/com/google/protobuf/protoc/) into `PROTOC_DIR`
- Call in mercedesme binding directory `PROTOC_DIR\protoc -I=proto --java_out=gen proto/*.proto`
- Move generated sources including subdirs from `gen` to `3rdparty\java`
- Adapt `pom.xml` with version of step 1
Loading

0 comments on commit 09a22e5

Please sign in to comment.