Skip to content

Commit

Permalink
[androiddebugbridge] Use core channel updates (#554)
Browse files Browse the repository at this point in the history
* [androiddebugbridge] Use core channel updates

Signed-off-by: Jan N. Klug <[email protected]>
  • Loading branch information
J-N-K authored Jan 1, 2024
1 parent 6e3dd4c commit 6dad51a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
6 changes: 0 additions & 6 deletions bundles/org.smarthomej.binding.androiddebugbridge/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@
<name>SmartHome/J Add-ons :: Bundles :: Android Debug Bridge Binding</name>

<dependencies>
<dependency>
<groupId>org.smarthomej.addons.bundles</groupId>
<artifactId>org.smarthomej.commons</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.tananaev</groupId>
<artifactId>adblib</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<features name="org.smarthomej.binding.androiddebugbridge-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">
<feature name="smarthomej-binding-androiddebugbridge" description="Android Debug Bridge Binding" version="${project.version}">
<feature>openhab-runtime-base</feature>
<bundle dependency="true">mvn:org.smarthomej.addons.bundles/org.smarthomej.commons/${project.version}</bundle>
<bundle start-level="80">mvn:org.smarthomej.addons.bundles/org.smarthomej.binding.androiddebugbridge/${project.version}</bundle>
</feature>
</features>
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
import org.openhab.core.thing.Thing;
import org.openhab.core.thing.ThingStatus;
import org.openhab.core.thing.ThingStatusDetail;
import org.openhab.core.thing.binding.BaseThingHandler;
import org.openhab.core.types.Command;
import org.openhab.core.types.CommandOption;
import org.openhab.core.types.RefreshType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.smarthomej.binding.androiddebugbridge.internal.AndroidDebugBridgeDevice.VolumeInfo;
import org.smarthomej.commons.UpdatingBaseThingHandler;

import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
Expand All @@ -56,7 +56,7 @@
* @author Miguel Álvarez - Initial contribution
*/
@NonNullByDefault
public class AndroidDebugBridgeHandler extends UpdatingBaseThingHandler {
public class AndroidDebugBridgeHandler extends BaseThingHandler {

public static final String KEY_EVENT_PLAY = "126";
public static final String KEY_EVENT_PAUSE = "127";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<update:update-descriptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:update="https://openhab.org/schemas/update-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/update-description/v1.0.0 https://openhab.org/schemas/update-description-1.0.0.xsd">

<thing-type uid="androiddebugbridge:android">
<instruction-set targetVersion="1">
<add-channel id="start-intent">
<type>androiddebugbridge:start-intent-channel</type>
</add-channel>
</instruction-set>
</thing-type>

</update:update-descriptions>

This file was deleted.

0 comments on commit 6dad51a

Please sign in to comment.