-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin.xml
93 lines (84 loc) · 3.31 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
<?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-ok"
version="1.1.6">
<name>SocialOK</name>
<description>Cordova plugin for Odnoklassniki sharing</description>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<license>Apache 2.0 License</license>
<author>DrMoriarty</author>
<keywords>cordova,phonegap,odnoklassniki,sharing</keywords>
<js-module src="www/social-ok.js" name="SocialOk">
<clobbers target="SocialOk" />
</js-module>
<preference name="OK_APP_ID" />
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="SocialOk">
<param name="ios-package" value="SocialOk"/>
</feature>
</config-file>
<header-file src="src/ios/SocialOk.h"/>
<source-file src="src/ios/SocialOk.m" />
<header-file src="src/ios/OKSDK.h"/>
<source-file src="src/ios/OKSDK.m" />
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>ok$OK_APP_ID</string>
<key>CFBundleURLSchemes</key>
<array>
<string>ok$OK_APP_ID</string>
</array>
</dict>
</array>
</config-file>
<config-file target="*-Info.plist" parent="LSApplicationQueriesSchemes">
<array>
<string>ok$OK_APP_ID</string>
<string>okauth</string>
</array>
</config-file>
</platform>
<!-- android -->
<platform name="android">
<!-- Cordova 2.5+ -->
<config-file target="config.xml" parent="/*">
<feature name="SocialOk">
<param name="android-package" value="ru.trilan.socialok.SocialOk"/>
</feature>
</config-file>
<framework src="src/android/odnoklassniki-android-sdk" custom="true" />
<source-file src="src/android/SocialOk.java" target-dir="src/ru/trilan/socialok/" />
<source-file src="src/android/JsonHelper.java" target-dir="src/ru/trilan/socialok/" />
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity
android:name="ru.ok.android.sdk.OkAuthActivity"
android:launchMode="singleTop"
android:configChanges="orientation">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="ok$OK_APP_ID"
android:scheme="okauth" />
</intent-filter>
</activity>
<activity android:name="ru.ok.android.sdk.OkPostingActivity">
</activity>
<activity android:name="ru.ok.android.sdk.OkAppSuggestActivity">
</activity>
<activity android:name="ru.ok.android.sdk.OkAppInviteActivity">
</activity>
</config-file>
</platform>
</plugin>