<?xml version="1.0" encoding="UTF-8"?>
<!--
 - Copyright (C) 2019-2021 ConnectorIO Sp. z o.o.
 -
 - Licensed under the Apache License, Version 2.0 (the "License");
 - you may not use this file except in compliance with the License.
 - You may obtain a copy of the License at
 -
 -     http://www.apache.org/licenses/LICENSE-2.0
 -
 - Unless required by applicable law or agreed to in writing, software
 - distributed under the License is distributed on an "AS IS" BASIS,
 - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 - See the License for the specific language governing permissions and
 - limitations under the License.
 -
 - SPDX-License-Identifier: Apache-2.0
 -->
<features name="co7io-binding-canopen-3.4.0-SNAPSHOT" xmlns="http://karaf.apache.org/xmlns/features/v1.6.0">

  <repository>mvn:org.connectorio.addons/org.connectorio.addons.feature.plc4x/3.4.0-SNAPSHOT/xml/features</repository>

  <feature name="openhab-binding-co7io-can" description="openHAB CAN Binding" version="3.4.0-SNAPSHOT">
    <feature>co7io-binding-can</feature>
  </feature>

  <feature name="dbus" description="DBus transport" version="3.4.0-SNAPSHOT">
    <feature prerequisite="true">wrap</feature>
    <bundle>mvn:org.ow2.asm/asm/7.3.1</bundle>

    <bundle>mvn:com.github.jnr/jnr-unixsocket/0.33</bundle>
    <bundle>mvn:com.github.jnr/jnr-constants/0.9.15</bundle>
    <bundle>mvn:com.github.jnr/jnr-enxio/0.28</bundle>
    <bundle>mvn:com.github.jnr/jnr-ffi/2.1.15</bundle>
    <bundle>mvn:com.github.jnr/jnr-posix/3.0.58</bundle>
    <bundle>wrap:mvn:com.github.jnr/jnr-a64asm/1.0.0</bundle>
    <bundle>wrap:mvn:com.github.jnr/jnr-x86asm/1.0.2</bundle>
    <bundle>mvn:com.github.jnr/jffi/1.2.23/jar/complete</bundle>
    <bundle>wrap:mvn:com.github.jnr/jffi/1.2.23/jar/native</bundle>
    <bundle>wrap:mvn:com.github.hypfvieh/dbus-java/3.2.3</bundle>
    <bundle>wrap:mvn:com.github.hypfvieh/java-utils/1.0.6</bundle>
  </feature>

  <feature name="co7io-binding-can" description="CAN Binding" version="3.4.0-SNAPSHOT">
    <feature>openhab-runtime-base</feature>
    <feature>dbus</feature>
    <bundle start-level="80">mvn:org.connectorio.addons/org.connectorio.addons.binding.can/3.4.0-SNAPSHOT</bundle>
  </feature>


  <feature name="openhab-binding-co7io-canopen" description="openHAB CANopen Binding" version="3.4.0-SNAPSHOT">
    <feature>co7io-binding-plc4x-canopen</feature>
  </feature>

  <feature name="co7io-binding-canopen" description="CANopen Binding" version="3.4.0-SNAPSHOT">
    <feature>openhab-runtime-base</feature>
    <feature>plc4j-canopen-driver</feature>
    <feature>co7io-binding-plc4x</feature>
    <feature>co7io-binding-can</feature>
    <feature>co7io-plc4j-decorator-phase</feature>
    <feature>co7io-plc4j-decorator-retry</feature>
    <feature>co7io-plc4j-decorator-throttle</feature>
    <bundle start-level="80">mvn:org.connectorio.addons/org.connectorio.addons.binding.canopen/3.4.0-SNAPSHOT</bundle>
  </feature>

  <feature name="openhab-binding-co7io-canopen-ta" description="openHAB Technische Alternative Binding" version="3.4.0-SNAPSHOT">
    <feature>co7io-binding-canopen-ta</feature>
  </feature>

  <feature name="co7io-binding-canopen-ta" description="Technische Alternative Binding" version="3.4.0-SNAPSHOT">
    <feature>co7io-binding-canopen</feature>
    <bundle start-level="80">mvn:org.connectorio.addons/org.connectorio.addons.binding.canopen.ta/3.4.0-SNAPSHOT</bundle>
  </feature>

</features>
