-
Notifications
You must be signed in to change notification settings - Fork 11
/
plugin.xml
80 lines (73 loc) · 2.82 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.akveo.cordova-vk"
version="1.0.1">
<name>cordova-vk</name>
<description>Cordova plugin for integration with vksdk</description>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<license>Apache 2.0 License</license>
<author>Akveo</author>
<keywords>cordova,phonegap,vkontakte,vksdk</keywords>
<js-module src="www/vksdk.js" name="VkSdk">
<clobbers target="VkSdk" />
</js-module>
<!-- ios -->
<platform name="ios">
<preference name="VK_APP_ID" />
<info>
You need to register VKontakte application first.
</info>
<config-file target="config.xml" parent="/*">
<feature name="VkSdk">
<param name="ios-package" value="VkSdkPlugin"/>
</feature>
</config-file>
<header-file src="src/ios/VkSdkPlugin.h"/>
<source-file src="src/ios/VkSdkPlugin.m" />
<framework src="src/ios/VKontakte.framework" custom="true"/>
<resource-file src="src/ios/VKSdkResources.bundle" />
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>$VK_APP_ID</string>
<key>CFBundleURLSchemes</key>
<array>
<string>$VK_APP_ID</string>
</array>
</dict>
</array>
</config-file>
<config-file target="*-Info.plist" parent="LSApplicationQueriesSchemes">
<array>
<string>vk</string>
<string>vk-share</string>
<string>vkauthorize</string>
</array>
</config-file>
</platform>
<!-- android -->
<platform name="android">
<info>
You should add 'android.library.reference.2=vksdk_library' to project.properties
</info>
<!-- Cordova 2.5+ -->
<config-file target="config.xml" parent="/*">
<feature name="VkSdk">
<param name="android-package" value="com.akveo.cordovavk.VkSdkPlugin"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.vk.sdk.VKOpenAuthActivity" >
</activity>
</config-file>
<source-file src="src/android/vksdk_library" target-dir="./" />
<source-file src="src/android/com/akveo/cordovavk" target-dir="src/com/akveo/cordovavk" />
</platform>
</plugin>