-
Notifications
You must be signed in to change notification settings - Fork 3
/
plugin.xml
177 lines (147 loc) · 9.47 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<?xml version='1.0' encoding='utf-8'?>
<plugin id="org.apache.cordova.FacebookConnect" version="0.0.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>Facebook Connect</name>
<description>Facebook connect for Cordova 3.x</description>
<repo>https://github.com/jbavari/cordova-facebook-connect.git</repo>
<license>Apache 2.0</license>
<keywords>cordova,facebook,connect</keywords>
<!-- <asset src="www/facebook_connect.js" target="facebook_connect.js" />
<asset src="www/facebook-js-sdk.js" target="facebook-js-sdk.js" /> -->
<asset src="www/angular/facebookConnect.js" target="facebookConnect.js" />
<js-module name="FacebookConnect" src="www/facebook_connect.js">
<clobbers target="FacebookConnect" />
</js-module>
<js-module name="FacebookSDK" src="www/facebook_sdk.js">
<clobbers target="FB" />
</js-module>
<!-- <js-module name="SDK" src="www/facebook_sdk.js">
<clobbers target="FB" />
</js-module> -->
<!-- android -->
<platform name="android">
<preference name="APP_ID" />
<preference name="APP_NAME" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="FacebookConnect">
<param name="android-package" value="org.apache.cordova.facebook.ConnectPlugin" />
</feature>
<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>
<!-- <source-file src="src/android/facebook/res/values/facebookconnect.xml" target-dir="res/values" /> -->
<config-file target="res/values/strings.xml" parent="/*">
<string name="fb_app_id">$APP_ID</string>
<string name="fb_app_name">$APP_NAME</string>
</config-file>
<config-file target="AndroidManifest.xml" parent="application">
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/fb_app_id"/>
<activity android:label="@string/fb_app_name" android:name="com.facebook.LoginActivity"></activity>
</config-file>
<!-- <config-file target="res/xml/config.xml" parent="plugins">
<plugin name="org.apache.cordova.facebook.Connect" value="org.apache.cordova.facebook.ConnectPlugin"/>
</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" /> -->
<!-- copy Facebook Lib project -->
<source-file src="src/android/facebook/FacebookLib" target-dir="./" />
<!-- cordova plugin src files -->
<source-file src="src/android/ConnectPlugin.java" target-dir="src/org/apache/cordova/facebook" />
</platform>
<!-- ios -->
<platform name="ios">
<!-- Cordova >= 2.3 -->
<config-file target="config.xml" parent="/*">
<feature name="FacebookConnect">
<param name="ios-package" value="FacebookConnectPlugin" />
</feature>
<!-- <plugin name="org.apache.cordova.facebook.Connect" value="FacebookConnectPlugin"/> -->
</config-file>
<preference name="APP_ID" />
<preference name="APP_NAME" />
<header-file src="src/ios/FacebookConnectPlugin.h" />
<source-file src="src/ios/FacebookConnectPlugin.m" />
<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>
<!-- release facebook 3.5.2 framework -->
<source-file src="src/ios/frameworks/FacebookSDK-3.5.2-Release.a" framework="true" />
<!-- debug facebook 3.5.2 framework -->
<!-- <source-file src="src/ios/frameworks/FacebookSDK-3.5.2-Debug.a" framework="true" /> -->
<!-- facebook header files -->
<header-file src="src/ios/headers/FBAccessTokenData.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBAppCall.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBAppLinkData.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBCacheDescriptor.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBDialogs.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBDialogsData.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBDialogsParams.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBError.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBErrorUtility.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBFrictionlessRecipientCache.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBFriendPickerViewController.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBGraphLocation.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBGraphObject.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBGraphPlace.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBGraphUser.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBInsights.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBLoginView.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBNativeDialogs.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBOpenGraphAction.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBOpenGraphActionShareDialogParams.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBOpenGraphObject.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBPlacePickerViewController.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBProfilePictureView.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBRequest.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBRequestConnection.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBSession.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBSessionTokenCachingStrategy.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBSettings.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBShareDialogParams.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBTestSession.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBUserSettingsViewController.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBViewController.h" target-dir="facebook" />
<header-file src="src/ios/headers/FBWebDialogs.h" target-dir="facebook" />
<header-file src="src/ios/headers/FacebookSDK.h" target-dir="facebook" />
<header-file src="src/ios/headers/NSError+FBError.h" target-dir="facebook" />
<!-- facebook resource bundles -->
<resource-file src="src/ios/resources/FacebookSDKResources.bundle" />
<resource-file src="src/ios/resources/FBUserSettingsViewResources.bundle" />
<!-- system frameworks -->
<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>