Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[androiddebugbridge] Use core channel updates #554

Merged
merged 2 commits into from
Jan 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading