forked from OrangeAppsRu/cordova-social-vk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
101 lines (93 loc) · 3.39 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
<?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="cordova-social-vk"
version="1.0.5">
<name>SocialVk</name>
<description>Cordova plugin for VKontakte sharing</description>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<license>Apache 2.0 License</license>
<author>DrMoriarty</author>
<keywords>cordova,phonegap,vkontakte,sharing</keywords>
<js-module src="www/social-vk.js" name="SocialVk">
<clobbers target="SocialVk" />
</js-module>
<preference name="VK_APP_ID" />
<!-- ios -->
<platform name="ios">
<info>
You need to register VKontakte application first.
</info>
<config-file target="config.xml" parent="/*">
<feature name="SocialVk">
<param name="ios-package" value="SocialVk"/>
</feature>
</config-file>
<header-file src="src/ios/SocialVk.h"/>
<source-file src="src/ios/SocialVk.m" />
<source-file src="src/ios/NSData+Base64.h" />
<source-file src="src/ios/NSData+Base64.m" />
<framework src="src/ios/VKSdk.framework" custom="true"/>
<framework src="SafariServices.framework" custom="false"/>
<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$VK_APP_ID</string>
<key>CFBundleURLSchemes</key>
<array>
<string>vk$VK_APP_ID</string>
</array>
</dict>
</array>
</config-file>
<config-file target="*-Info.plist" parent="LSApplicationQueriesSchemes">
<array>
<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="SocialVk">
<param name="android-package" value="ru.trilan.socialvk.SocialVk"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.vk.sdk.VKOpenAuthActivity" >
</activity>
<activity android:name="com.vk.sdk.VKServiceActivity" >
</activity>
</config-file>
<config-file target="res/values/strings.xml" parent="/*">
<integer name="com_vk_sdk_AppId">$VK_APP_ID</integer>
</config-file>
<framework src="src/android/vksdk_library" custom="true" />
<source-file src="src/android/SocialVk.java" target-dir="src/ru/trilan/socialvk/" />
</platform>
<!-- winphone8 -->
<platform name="wp8">
<config-file target="config.xml" parent="/*">
<feature name="SocialVk">
<param name="wp-package" value="SocialVk"/>
</feature>
</config-file>
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Extensions">
<Protocol Name="vk$VK_APP_ID" NavUriFragment="encodedLaunchUri=%s" TaskID="_default" />
</config-file>
<framework src="src/wp/Newtonsoft.Json.dll" custom="true"/>
<framework src="src/wp/VK.WindowsPhone.SDK.dll" custom="true"/>
<source-file src="src/wp/SocialVk.cs"/>
</platform>
</plugin>