<!--
/**
 * Copyright (c) Codice Foundation
 *
 * This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either
 * version 3 of the License, or any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License is distributed along with this program and can be found at
 * <http://www.gnu.org/licenses/lgpl.html>.
 *
 **/
 -->

<features name="intrigue-ui-app-5.2.34"
          xmlns="http://karaf.apache.org/xmlns/features/v1.3.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 http://karaf.apache.org/xmlns/features/v1.3.0">
    <repository>mvn:org.ops4j.pax.web/pax-web-features/8.0.33/xml/features</repository>
    <repository>mvn:com.connexta.jsonrpc/jsonrpc-features/0.10.5/xml/features</repository>
    <repository>mvn:org.codice.ddf.search/ui-frontend/5.2.34/xml/features</repository>
    <repository>mvn:ddf.features/apps/2.29.33/xml/features</repository>

    <feature name="catalog-ui-search-api" version="5.2.34"
             description="API for interacting with Catalog UI">
        <bundle>mvn:org.codice.ddf.search/catalog-ui-search-api/5.2.34</bundle>
    </feature>

    <feature name="boolean-search" version="5.2.34" description="App for boolean search">
        <bundle>mvn:org.codice.ddf.search/boolean-search-application/5.2.34</bundle>
    </feature>

    <feature name="catalog-ui" version="5.2.34" description="Catalog UI">
        <feature>pax-web-jetty</feature>
        <feature>pax-web-jetty-websockets</feature>
        <feature>spatial-app</feature>
        <feature>offline-gazetteer</feature>
        <feature>camel-http</feature>
        <feature>resource-bundle-locator</feature>
        <feature>platform-usng4j</feature>
        <feature>platform-configuration</feature>
        <feature>persistence-core</feature>
        <!-- Email feature resides in here-->
        <feature>security-core-services</feature>
        <feature>catalog-ui-search-api</feature>
        <feature>javalin</feature>

        <!-- rpc-api dependencies -->
        <feature>jsonrpc-2.25</feature>
        <bundle>mvn:ddf.persistence.core/persistence-core-api/2.29.33</bundle>
        <bundle>mvn:ddf.persistence.core/persistence-core-impl/2.29.33</bundle>

        <configfile finalname="${ddf.etc}/org.codice.ddf.catalog.ui.config" override="false">
            mvn:org.codice.ddf.search/intrigue-ui-app/5.2.34/properties/catalog-ui-config
        </configfile>

        <configfile finalname="${ddf.etc}/org.codice.ddf.catalog.ui.theme.config" override="false">
            mvn:org.codice.ddf.search/intrigue-ui-app/5.2.34/properties/catalog-ui-theme-config
        </configfile>

        <configfile finalname="${ddf.etc}/org.codice.ddf.catalog.ui.attribute.hidden.config" override="false">
            mvn:org.codice.ddf.search/intrigue-ui-app/5.2.34/properties/catalog-ui-attribute-hidden-config
        </configfile>

        <configfile finalname="${ddf.etc}/i18n/IntrigueBundle/IntrigueBundle_en.properties" override="false">
            mvn:org.codice.ddf.search/intrigue-ui-app/5.2.34/config/intrigue-bundle-config
        </configfile>

        <configfile finalname="${ddf.etc}/definitions/ui-preferences-injector.json" override="false">
            mvn:org.codice.ddf.search/intrigue-ui-app/5.2.34/config/ui-preferences-injector
        </configfile>

        <bundle>mvn:ddf.catalog.transformer/catalog-transformer-propertyjson-metacard/2.29.33</bundle>
        <bundle>mvn:org.codice.ddf.search/catalog-ui-search/5.2.34</bundle>
        <bundle>mvn:org.codice.ddf.search/catalog-ui-oauth/5.2.34</bundle>
        <bundle>mvn:org.codice.ddf.search/catalog-ui-enumeration/5.2.34</bundle>
        <bundle>mvn:com.google.code.gson/gson/2.13.2</bundle>
        <bundle>mvn:org.codice.ddf.search/catalog-ui-splitter/5.2.34</bundle>
        <bundle>mvn:org.codice.ddf.search/catalog-ui-websockets/5.2.34</bundle>
        <bundle>mvn:org.apache.commons/commons-math3/3.6.1</bundle>
        <bundle>mvn:org.codice.ddf.search/audit-api/5.2.34</bundle>
        <bundle>mvn:org.codice.ddf.search/audit-application/5.2.34</bundle>
        <bundle>mvn:org.codice.ddf.search/audit-logging/5.2.34</bundle>
        <bundle>mvn:org.codice.ddf.search/catalog-plugin-highlight/5.2.34</bundle>
        <bundle>mvn:org.codice.ddf.search/deprecatable-enumeration-api/5.2.34</bundle>

        <feature>boolean-search</feature>
    </feature>

    <feature name="javalin" version="5.2.34" description="Javalin Web Framework">
        <feature prerequisite="true">wrap</feature>
        <bundle>wrap:mvn:org.checkerframework/checker-qual/2.0.0$Bundle-Name=checker-qual&amp;Bundle-SymbolicName=checker-qual&amp;Bundle-Version=2.0.0&amp;Export-Package=org.checkerframework.checker.nullness.qual;version="2.0.0"</bundle>
        <bundle>mvn:org.jetbrains.kotlin/kotlin-osgi-bundle/1.3.71</bundle>
        <bundle>mvn:org.codice.thirdparty/javalin/3.11.2_1</bundle>
        <bundle>mvn:org.codice.ddf.search/javalin-utils/5.2.34</bundle>
    </feature>

    <feature name="catalog-ui-app" version="5.2.34"
             description="The Search UI is an application that not only provides results in a html format but also provides a convenient, simple querying user interface.\nThe left pane of the Search UI contains basic fields to query the Catalog and other Sources. The right pane consists of a map.\nIt includes both the Catalog UI (3d globe) and Simple Search UI (text page) versions.">
        <feature>catalog-app</feature>
        <feature>catalog-versioning-plugin</feature>
        <feature>catalog-core-validator</feature>
        <feature>catalog-ui</feature>
    </feature>

    <feature name="ddf-ui" version="5.2.34" description="This will install all needed ddf-ui applications." start-level="1">

        <!-- DDF Apps -->
        <feature>admin-app</feature>
        <feature>platform-app</feature>
        <feature>catalog-core-definitionparser</feature>
        <feature>catalog-app</feature>
        <feature>spatial-app</feature>
        <feature>search-ui-app</feature>
        <feature>catalog-solr-app</feature>

        <!-- DDF-ui apps -->
        <feature>jsonrpc-2.25</feature>
        <feature>catalog-ui-app</feature>
        <feature>ui-frontend</feature>

    </feature>

</features>
