UNPKG

cordova-plugin-brightness

Version:
53 lines (38 loc) 1.58 kB
<?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.5"> <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> <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>