-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin.xml
87 lines (73 loc) · 3.27 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-pinterest" version="1.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-pinterest</name>
<js-module name="Pinterest" src="www/Pinterest.js">
<clobbers target="cordova.plugins.Pinterest" />
</js-module>
<preference name="APP_ID" default="" />
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Pinterest">
<param name="android-package" value="com.zyramedia.cordova.pinterest.Pinterest" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application/activity">
<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:scheme="pdk$APP_ID" />
</intent-filter>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data android:name="com.zyramedia.cordova.pinterest.APP_ID" android:value="\ $APP_ID" />
</config-file>
<source-file src="src/android/Pinterest.java" target-dir="src/com/zyramedia/cordova/pinterest" />
<resource-file src="src/android/pdk.jar" target="libs/pdk.jar" />
<framework src="src/android/Pinterest.gradle" custom="true" type="gradleReference" />
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="Pinterest">
<param name="ios-package" value="Pinterest" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleURLName</key>
<string></string>
<key>CFBundleURLSchemes</key>
<array>
<string>pdk$APP_ID</string>
</array>
</dict>
</array>
</config-file>
<config-file target="*-Info.plist" parent="PinterestAppId">
<string>$APP_ID</string>
</config-file>
<config-file target="*-Info.plist" parent="NSAppTransportSecurity">
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>pinit</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
</dict>
</dict>
</config-file>
<config-file target="*-Info.plist" parent="LSApplicationQueriesSchemes">
<array>
<string>pinterestsdk.v1</string>
</array>
</config-file>
<header-file src="src/ios/Pinterest.h" />
<source-file src="src/ios/Pinterest.m" />
<framework src="PinterestSDK" type="podspec" spec="~> 1.0.2" />
</platform>
</plugin>