-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.xml
More file actions
50 lines (40 loc) · 1.83 KB
/
plugin.xml
File metadata and controls
50 lines (40 loc) · 1.83 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
48
49
50
<?xml version='1.0' encoding='utf-8'?>
<plugin id="com.danishin.geolocation" version="0.0.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>Geolocation</name>
<description>Cordova plugin for geolocation service - fetch coordinate</description>
<license>Apache 2.0</license>
<author>Daniel Shin</author>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<platform name="android">
<js-module src="www/android/geolocation.js" name="geolocation">
<merges target="cordova.plugins.geolocation" />
</js-module>
<config-file parent="/*" target="res/xml/config.xml">
<feature name="Geolocation">
<param name="android-package" value="com.danishin.geolocation.Geolocation" />
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-feature android:name="android.hardware.location.gps" />
</config-file>
<source-file src="src/android/Geolocation.java" target-dir="src/com/danishin/geolocation/" />
<framework src="com.google.android.gms:play-services-location:+" />
</platform>
<platform name="ios">
<js-module src="www/ios/geolocation.js" name="geolocation">
<merges target="cordova.plugins.geolocation" />
</js-module>
<config-file target="config.xml" parent="/*">
<feature name="Geolocation">
<param name="ios-package" value="CDVLocation"/>
</feature>
</config-file>
<header-file src="src/ios/CDVLocation.h" />
<source-file src="src/ios/CDVLocation.m" />
<framework src="CoreLocation.framework" />
</platform>
</plugin>