forked from Wizcorp/phonegap-facebook-plugin
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathplugin.xml
163 lines (137 loc) · 9.58 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.phonegap.plugins.facebookconnect"
version="0.3.8">
<name>Facebook Connect</name>
<description>
<p>This is the official plugin for Facebook in Apache Cordova/PhoneGap!</p>
<p>The Facebook plugin for Apache Cordova allows you to use the same JavaScript code in your
Cordova application as you use in your web application. However, unlike in the browser, the
Cordova application will use the native Facebook app to perform Single Sign On for the user.
If this is not possible then the sign on will degrade gracefully using the standard dialog
based authentication.</p>
</description>
<license>Apache 2.0</license>
<js-module src="www/pg-plugin-fb-connect.js" name="cdv.fb">
<merges target="CDV.FB" />
</js-module>
<js-module src="www/facebook-connect-debug.js" name="fb">
<merges target="FB" />
</js-module>
<config-file target="config.xml" parent="/*">
<access origin="https://m.facebook.com" />
<access origin="https://graph.facebook.com" />
<access origin="https://api.facebook.com" />
<access origin="https://*.fbcdn.net" />
<access origin="https://*.akamaihd.net" />
</config-file>
<engines>
<engine name="cordova" version=">=3.1.0" />
</engines>
<preference name="APP_ID" />
<preference name="APP_NAME" />
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="plugins">
<feature name="FacebookConnect">
<param name="com.phonegap.plugins.FacebookConnect" value="com.phonegap.plugins.FacebookConnectPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<!-- res files -->
<source-file src="src/android/facebook/res/drawable/close.png" target-dir="res/drawable" />
<source-file src="src/android/facebook/res/drawable/facebook_icon.png" target-dir="res/drawable" />
<source-file src="src/android/facebook/res/drawable-hdpi/close.png" target-dir="res/drawable-hdpi" />
<source-file src="src/android/facebook/res/drawable-hdpi/facebook_icon.png" target-dir="res/drawable-hdpi" />
<source-file src="src/android/facebook/res/drawable-ldpi/close.png" target-dir="res/drawable-ldpi" />
<source-file src="src/android/facebook/res/drawable-ldpi/facebook_icon.png" target-dir="res/drawable-ldpi" />
<source-file src="src/android/facebook/res/drawable-xhdpi/close.png" target-dir="res/drawable-xhdpi" />
<!-- cordova plugin src files -->
<source-file src="src/android/ConnectPlugin.java" target-dir="src/org/apache/cordova/facebook" />
<!-- facebook src files -->
<source-file src="src/android/facebook/AsyncFacebookRunner.java" target-dir="src/com/facebook/android" />
<source-file src="src/android/facebook/DialogError.java" target-dir="src/com/facebook/android" />
<source-file src="src/android/facebook/Facebook.java" target-dir="src/com/facebook/android" />
<source-file src="src/android/facebook/FacebookError.java" target-dir="src/com/facebook/android" />
<source-file src="src/android/facebook/FbDialog.java" target-dir="src/com/facebook/android" />
<source-file src="src/android/facebook/Util.java" target-dir="src/com/facebook/android" />
</platform>
<!-- ios -->
<platform name="ios">
<!-- Cordova >= 3.0 -->
<config-file target="config.xml" parent="/*">
<feature name="FacebookConnect">
<param name="ios-package" value="FacebookConnectPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="FacebookAppID">
<string>$APP_ID</string>
</config-file>
<config-file target="*-Info.plist" parent="FacebookDisplayName">
<string>$APP_NAME</string>
</config-file>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb$APP_ID</string>
</array>
</dict>
</array>
</config-file>
<!-- Plugin specific files -->
<header-file src="src/ios/FacebookConnectPlugin.h" />
<source-file src="src/ios/FacebookConnectPlugin.m" />
<!-- release facebook 3.8 framework>
<source-file src="src/ios/FacebookSDK.framework" framework="true" /-->
<framework src="CoreGraphics.framework" />
<!-- facebook header files >
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FacebookSDK.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBAccessTokenData.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBAppCall.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBAppEvents.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBAppLinkData.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBCacheDescriptor.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBDialogs.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBDialogsData.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBDialogsParams.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBError.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBErrorUtility.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBFrictionlessRecipientCache.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBFriendPickerViewController.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBGraphLocation.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBGraphObject.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBGraphPlace.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBGraphUser.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBInsights.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBLoginView.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBNativeDialogs.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphAction.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphActionShareDialogParams.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphObject.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBPlacePickerViewController.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBProfilePictureView.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBRequest.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBRequestConnection.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBSession.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBSessionTokenCachingStrategy.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBSettings.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBShareDialogParams.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBTestSession.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBUserSettingsViewController.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBViewController.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/FBWebDialogs.h" target-dir="facebook" />
<header-file src="src/ios/FacebookSDK.framework/Versions/A/Headers/NSError+FBError.h" target-dir="facebook" /-->
<!-- facebook resource bundles>
<resource-file src="src/ios/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle" /-->
<!-- system frameworks ARE THESE STILL REQUIRED? -->
<framework src="libsqlite3.dylib" />
<framework src="Social.framework" weak="true" />
<framework src="Accounts.framework" weak="true" />
<framework src="AdSupport.framework" weak="true" />
<framework src="Security.framework" weak="true" />
</platform>
</plugin>