forked from mapsplugin/cordova-plugin-googlemaps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
143 lines (122 loc) · 7.56 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?xml version='1.0' encoding='utf-8'?>
<plugin id="plugin.google.maps" version="1.2" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>phonegap-googlemaps-plugin</name>
<js-module name="phonegap-googlemaps-plugin" src="www/googlemaps-cdv-plugin.js">
<clobbers target="cordova.plugins.phonegap-googlemaps-plugin" />
</js-module>
<description>
<p>This is the unofficial plugin for Google Maps SDKs in Apache Cordova/PhoneGap!</p>
<p>Before install this plugin, you need to get Google Maps API key for both Android and iOS.</p>
</description>
<license>Apache 2.0</license>
<asset src="www/googlemaps-cdv-plugin.js" target="googlemaps-cdv-plugin.js" />
<keywords>google,maps</keywords>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<!-- android -->
<platform name="android">
<preference name="API_KEY_FOR_ANDROID" />
<info>
You need to install __Google Play Services__ from the `Android Extras` section using the Android SDK manager (run `android`).
You also need to some setup for Android.
Please visit to https://github.com/wf9a5m75/phonegap-googlemaps-plugin/wiki/Installation
</info>
<config-file target="config.xml" parent="/*">
<feature name="GoogleMaps">
<param name="android-package" value="plugin.google.maps.GoogleMaps" />
</feature>
</config-file>
<!-- plugin src files -->
<source-file src="src/android/plugin/google/maps/AsyncLicenseInfo.java" target-dir="src/plugin/google/maps" />
<source-file src="src/android/plugin/google/maps/AsyncLoadImage.java" target-dir="src/plugin/google/maps" />
<source-file src="src/android/plugin/google/maps/GoogleMaps.java" target-dir="src/plugin/google/maps" />
<source-file src="src/android/plugin/google/maps/MyPlugin.java" target-dir="src/plugin/google/maps" />
<source-file src="src/android/plugin/google/maps/MyPluginInterface.java" target-dir="src/plugin/google/maps" />
<source-file src="src/android/plugin/google/maps/PluginCircle.java" target-dir="src/plugin/google/maps" />
<source-file src="src/android/plugin/google/maps/PluginGeocoder.java" target-dir="src/plugin/google/maps" />
<source-file src="src/android/plugin/google/maps/PluginGroundOverlay.java" target-dir="src/plugin/google/maps" />
<source-file src="src/android/plugin/google/maps/PluginMap.java" target-dir="src/plugin/google/maps" />
<source-file src="src/android/plugin/google/maps/PluginMarker.java" target-dir="src/plugin/google/maps" />
<source-file src="src/android/plugin/google/maps/PluginPolygon.java" target-dir="src/plugin/google/maps" />
<source-file src="src/android/plugin/google/maps/PluginPolyline.java" target-dir="src/plugin/google/maps" />
<source-file src="src/android/plugin/google/maps/PluginTileOverlay.java" target-dir="src/plugin/google/maps" />
<source-file src="src/android/plugin/google/maps/PluginUtil.java" target-dir="src/plugin/google/maps" />
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="$API_KEY_FOR_ANDROID" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
<!-- The following two permissions are not required to use
Google Maps Android API v2, but are recommended. -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<!-- OpenGL ES version 2 -->
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
<!-- Google Play Services SDK -->
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
</config-file>
</platform>
<!-- ios -->
<platform name="ios">
<preference name="API_KEY_FOR_IOS" />
<config-file target="config.xml" parent="/*">
<feature name="GoogleMaps">
<param name="ios-package" value="GoogleMaps" />
</feature>
</config-file>
<header-file src="src/ios/GoogleMaps/Circle.h" />
<source-file src="src/ios/GoogleMaps/Circle.m" />
<header-file src="src/ios/GoogleMaps/Geocoder.h" />
<source-file src="src/ios/GoogleMaps/Geocoder.m" />
<header-file src="src/ios/GoogleMaps/GoogleMaps.h" />
<source-file src="src/ios/GoogleMaps/GoogleMaps.m" />
<header-file src="src/ios/GoogleMaps/GoogleMapsViewController.h" />
<source-file src="src/ios/GoogleMaps/GoogleMapsViewController.m" />
<header-file src="src/ios/GoogleMaps/GroundOverlay.h" />
<source-file src="src/ios/GoogleMaps/GroundOverlay.m" />
<header-file src="src/ios/GoogleMaps/Map.h" />
<source-file src="src/ios/GoogleMaps/Map.m" />
<header-file src="src/ios/GoogleMaps/Marker.h" />
<source-file src="src/ios/GoogleMaps/Marker.m" />
<header-file src="src/ios/GoogleMaps/MyPlgunProtocol.h" />
<header-file src="src/ios/GoogleMaps/PluginUtil.h" />
<source-file src="src/ios/GoogleMaps/PluginUtil.m" />
<header-file src="src/ios/GoogleMaps/Polygon.h" />
<source-file src="src/ios/GoogleMaps/Polygon.m" />
<header-file src="src/ios/GoogleMaps/Polyline.h" />
<source-file src="src/ios/GoogleMaps/Polyline.m" />
<header-file src="src/ios/GoogleMaps/TileOverlay.h" />
<source-file src="src/ios/GoogleMaps/TileOverlay.m" />
<header-file src="src/ios/GoogleMaps/NSData-Base64/NSData+Base64.h" />
<header-file src="src/ios/GoogleMaps/NSData-Base64/NSData+Base64.podspec" />
<source-file src="src/ios/GoogleMaps/NSData-Base64/NSData+Base64.m" />
<config-file target="*-Info.plist" parent="Google Maps API Key">
<string>$API_KEY_FOR_IOS</string>
</config-file>
<!-- system frameworks -->
<framework src="AVFoundation.framework" />
<framework src="CoreData.framework" />
<framework src="CoreLocation.framework" />
<framework src="CoreText.framework" />
<framework src="GLKit.framework" />
<framework src="ImageIO.framework" />
<framework src="libc++.dylib" />
<framework src="libicucore.dylib" />
<framework src="libz.dylib" />
<framework src="OpenGLES.framework" />
<framework src="QuartzCore.framework" />
<framework src="SystemConfiguration.framework" />
<framework src="GoogleMaps-iOS-SDK/GoogleMaps.framework" custom="true"/>
<resource-file src="GoogleMaps-iOS-SDK/GoogleMaps.framework/Resources/GoogleMaps.bundle"/>
</platform>
</plugin>