-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathplugin.xml
More file actions
47 lines (41 loc) · 1.71 KB
/
Copy pathplugin.xml
File metadata and controls
47 lines (41 loc) · 1.71 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-keep-awake" version="0.0.2">
<name>Cordova Plugin Keep Awake</name>
<description>keep awakeing</description>
<engines>
<engine name="cordova-android" version=">=7.1.0" />
</engines>
<js-module src="www/KeepAwake.js" name='KeepAwake' >
<clobbers target="KeepAwake" />
</js-module>
<!-- Android -->
<platform name="android" kotlin="1.3.60">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="KeepAwake">
<param name="android-package" value="jp.rabee.CDVKeepAwake"/>
<param name="onload" value="true" />
</feature>
</config-file>
<!-- soruce -->
<source-file src="src/android/CDVKeepAwake.kt" target-dir="app/src/main/kotlin/jp/rabee"/>
<!--gradle file-->
<framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" />
<!--for support kotlin-->
<hook type="after_platform_add" src="scripts/android/copy_build_extras.js" />
<hook type="after_plugin_add" src="scripts/android/copy_build_extras.js" />
</platform>
<!-- iOS -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="KeepAwake">
<param name="onload" value="true" />
<param name="ios-package" value="CDVKeepAwake" />
</feature>
<preference name="deployment-target" value="10.0" />
</config-file>
<source-file src="src/ios/CDVKeepAwake.swift" />
<source-file src="src/ios/CDVKeepAwake-Bridging-Header.h" />
<dependency id="cordova-plugin-add-swift-support" version="2.0.2"/>
<preference name="UseSwiftLanguageVersion" default="4" />
</platform>
</plugin>