-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathplugin.xml
55 lines (41 loc) · 1.74 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova.plugin.Brightness"
version="0.1.1">
<name>Brightness</name>
<author>Evgeniy Lukovsky</author>
<license>MIT</license>
<description>
This plugin gives you the ability to get and set the screen brightness
</description>
<js-module src="www/brightness.js" name="Brightness">
<clobbers target="cordova.plugins.brightness" />
</js-module>
<info>
This plugin gives you the ability to get and set the screen brightness. Also recently I have added the function for keep screen on.
</info>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Brightness">
<param name="android-package" value="org.apache.cordova.plugin.Brightness.BrightnessPlugin"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
</config-file>
<source-file src="src/android/BrightnessPlugin.java" target-dir="src/org/apache/cordova/plugin/Brightness" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="Brightness">
<param name="ios-package" value="Brightness" />
</feature>
</config-file>
<header-file src="src/ios/Brightness.h" />
<source-file src="src/ios/Brightness.m" />
<framework src="UIKit.framework" weak="true" />
</platform>
</plugin>