-
Notifications
You must be signed in to change notification settings - Fork 12
/
plugin.xml
33 lines (27 loc) · 1.57 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-android-window-background" version="1.0.1">
<name>Android Window Background</name>
<description>Plugin to set Android window background for Cordova/Ionic applications</description>
<license>MIT</license>
<author>WINTER</author>
<keywords>cordova,ionic,android,window background,color,background,window,theme,styles.xml</keywords>
<engines>
<engine name="cordova-android" version=">=7.0.0" />
</engines>
<platform name="android">
<preference name="WINDOW_BACKGROUND_COLOR" />
<edit-config file="AndroidManifest.xml" target="/manifest/application/activity[@android:name='MainActivity']" mode="merge">
<activity android:name="MainActivity" android:theme="@style/CordovaWindowBackgroundTheme"/>
</edit-config>
<source-file src="cordova-window-background-strings.xml" target-dir="app/src/main/res/values" />
<source-file src="cordova-window-background-styles.xml" target-dir="app/src/main/res/values" />
<config-file target="app/src/main/res/values/cordova-window-background-strings.xml" parent="/*">
<color name="cordova_window_background">$WINDOW_BACKGROUND_COLOR</color>
</config-file>
<config-file target="app/src/main/res/values/cordova-window-background-styles.xml" parent="/*">
<style name="CordovaWindowBackgroundTheme" parent="@android:style/Theme.NoTitleBar">
<item name="android:windowBackground">@color/cordova_window_background</item>
</style>
</config-file>
</platform>
</plugin>