# Cordova

Konfiguracja projektu Cordova.

{% code title="config.xml" lineNumbers="true" %}

```xml
<?xml version='1.0' encoding='utf-8'?>
<widget id="pl.optimalit.playlistmaker" version="0.0.3" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>Playlist Maker</name>
    <description>Aplikacja do zarządzania playlistami w czasie liturgii w parafii Rzymskokatolickiej pw.św.ap. Piotra i Pawła w Skoczowie</description>
    <icon src="res/icon/ikona.png" />
    <author email="kontakt@optimalit.pl">
        Krzysztof Mendroch, OptimalIT
    </author>
    <content src="index.html" />

    // Vertical view lock
    <preference name="Orientation" value="portrait"/>
    
    <platform name="android">
        <preference name="android-minSdkVersion" value="24"/>
        <preference name="android-targetSdkVersion" value="32"/>

        // Localization of splash screen
        <preference name="AndroidWindowSplashScreenAnimatedIcon" value="res/screen/android/splashscreen.xml" />
        // Background color between the splash screen and the loaded application
        <preference name="AndroidWindowSplashScreenBackground" value="#1b7290" />

        <preference name="BackgroundColor" value="#1b7290" />
        // Status Bar Background Color
        <preference name="StatusBarBackgroundColor" value="#1b7290" />
        // Display mode of the Status Bar
        <preference name="StatusBarOverlaysWebView" value="false" />
    </platform>
    <platform name="ios">
        <allow-navigation href="*" />
        <allow-intent href="itms:*"/>
        <allow-intent href="itms-apps:*"/>
    </platform>
    <access origin="*"/>
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
</widget>
```

{% endcode %}
