-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
258 lines (225 loc) · 11.4 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<?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-plugin-firebaseui-auth" version="3.0.0">
<name>Firebase UI Authentication</name>
<description>Adds support for Firebase Authentication to your Cordova/PhoneGap apps.</description>
<license>Apache 2.0</license>
<keywords>firebase,cordova,authentication</keywords>
<author>Richard Windley</author>
<repo>https://github.com/ReallySmallSoftware/cordova-plugin-firebaseui-auth.git</repo>
<issue>https://github.com/ReallySmallSoftware/cordova-plugin-firebaseui-auth/issues</issue>
<engines>
<engine name="cordova" version=">=7.0.0" />
<engine name="cordova-android" version=">=8.0.0" />
<engine name="cordova-plugman" version=">=4.2.0" />
<engine name="cordova-ios" version=">=5.0.0" />
</engines>
<preference name="FACEBOOK_APPLICATION_ID" default="tbr"/>
<preference name="FACEBOOK_DISPLAY_NAME" default="tbr"/>
<dependency id="cordova-plugin-android-fragmentactivity"/>
<platform name="browser">
<js-module src="www/browser/firebaseUIAuthPlugin.js" name="FirebaseUIAuth">
<clobbers target="FirebaseUIAuth"/>
</js-module>
</platform>
<platform name="ios">
<js-module src="www/firebaseUIAuthPlugin.js" name="FirebaseUIAuth">
<clobbers target="FirebaseUIAuth"/>
</js-module>
<preference name="REVERSED_CLIENT_ID" default="tbs"/>
<config-file target="config.xml" parent="/*">
<feature name="FirebaseUIAuth">
<param name="ios-package" value="FirebaseUIAuthPlugin" onload="true"/>
</feature>
</config-file>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>REVERSED_CLIENT_ID</string>
<key>CFBundleURLSchemes</key>
<array>
<string>$REVERSED_CLIENT_ID</string>
</array>
</dict>
</array>
</config-file>
<config-file target="*-Debug.plist" parent="com.apple.developer.applesignin">
<array>
<string>Default</string>
</array>
</config-file>
<config-file target="*-Release.plist" parent="com.apple.developer.applesignin">
<array>
<string>Default</string>
</array>
</config-file>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string></string>
<key>CFBundleURLSchemes</key>
<array>
<string>fb$FACEBOOK_APPLICATION_ID</string>
</array>
</dict>
</array>
</config-file>
<config-file target="*-Info.plist" parent="FacebookAppID">
<string>$FACEBOOK_APPLICATION_ID</string>
</config-file>
<config-file target="*-Info.plist" parent="FacebookDisplayName">
<string>$FACEBOOK_DISPLAY_NAME</string>
</config-file>
<config-file target="*-Info.plist" parent="LSApplicationQueriesSchemes">
<array>
<string>fbapi</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextensions</string>
</array>
</config-file>
<header-file src="src/ios/FirebaseUIAuthPlugin.h"/>
<source-file src="src/ios/FirebaseUIAuthPlugin.m"/>
<podspec>
<config>
<source url="https://github.com/CocoaPods/Specs.git"/>
</config>
<pods use-frameworks="true">
<pod name="FirebaseUI/Auth" />
<pod name="FirebaseUI/Google" />
<pod name="FirebaseUI/Facebook" />
<pod name="FirebaseUI/OAuth" />
<pod name="FirebaseUI/Email" />
</pods>
</podspec>
</platform>
<platform name="android">
<js-module src="www/firebaseUIAuthPlugin.js" name="FirebaseUIAuth">
<clobbers target="FirebaseUIAuth"/>
</js-module>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="FirebaseUIAuth">
<param name="android-package" value="uk.co.reallysmall.cordova.plugin.firebase.ui.auth.FirebaseUIAuthPlugin"/>
<param name="onload" value="true"/>
</feature>
</config-file>
<preference name="ANDROID_FIREBASE_AUTH_VERSION" default="19.3.1"/>
<preference name="ANDROID_PLAY_SERVICES_AUTH_VERSION" default="18.0.0"/>
<preference name="ANDROID_FIREBASEUI_VERSION" default="6.2.0"/>
<preference name="ANDROID_FACEBOOK_SDK_VERSION" default="6.5.1"/>
<preference name="COLOR_PRIMARY" default="#ffffff"/>
<preference name="COLOR_DARK_PRIMARY" default="#555555"/>
<preference name="COLOR_LIGHT_PRIMARY" default="#aaaaaa"/>
<preference name="COLOR_ACCENT" default="#7C4DFF"/>
<preference name="COLOR_SECONDARY" default="#FFC107"/>
<preference name="COLOR_CONTROL" default="#ffffff"/>
<preference name="COLOR_BACKGROUND" default="#000000"/>
<framework src="com.firebaseui:firebase-ui-auth:$ANDROID_FIREBASEUI_VERSION"/>
<framework src="com.facebook.android:facebook-android-sdk:$ANDROID_FACEBOOK_SDK_VERSION"/>
<framework src="com.google.android.gms:play-services-auth:$ANDROID_PLAY_SERVICES_AUTH_VERSION"/>
<framework src="com.google.firebase:firebase-auth:$ANDROID_FIREBASE_AUTH_VERSION"/>
<source-file src="src/android/uk/co/reallysmall/cordova/plugin/firebase/ui/auth/FirebaseUIAuthPlugin.java" target-dir="src/uk/co/reallysmall/cordova/plugin/firebase/ui/auth/"/>
<hook type="before_plugin_install" src="scripts/android/beforePluginInstall.js"/>
<config-file target="res/values/strings.xml" parent="/*">
<string name="facebook_application_id">$FACEBOOK_APPLICATION_ID</string>
<string name="facebook_login_protocol_scheme">fb$FACEBOOK_APPLICATION_ID</string>
</config-file>
<config-file target="res/values/color.xml" parent="/*">
<color name="firebaseUiColorPrimary">$COLOR_PRIMARY</color>
<color name="firebaseUiColorPrimaryDark">$COLOR_DARK_PRIMARY</color>
<color name="firebaseUiColorPrimaryLight">$COLOR_LIGHT_PRIMARY</color>
<color name="firebaseUiColorAccent">$COLOR_ACCENT</color>
<color name="firebaseUiColorSecondary">$COLOR_SECONDARY</color>
<color name="firebaseUiColorControl">$COLOR_CONTROL</color>
<color name="firebaseUiColorBackground">$COLOR_BACKGROUND</color>
</config-file>
<config-file target="res/values/styles.xml" parent="/*">
<style name="FirebaseUILogonTheme" parent="FirebaseUI">
<item name="colorPrimary">@color/firebaseUiColorPrimary</item>
<item name="colorPrimaryDark">@color/firebaseUiColorPrimaryDark</item>
<item name="colorAccent">@color/firebaseUiColorAccent</item>
<item name="colorButtonNormal">@color/firebaseUiColorAccent</item>
<item name="colorControlNormal">@color/firebaseUiColorControl</item>
<item name="colorControlActivated">@color/firebaseUiColorControl</item>
<item name="colorControlHighlight">@color/firebaseUiColorControl</item>
<item name="android:textColor">@color/firebaseUiColorControl</item>
<item name="android:textColorPrimary">@color/firebaseUiColorControl</item>
<item name="android:textColorSecondary">@color/firebaseUiColorControl</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:textColorHint">@color/firebaseUiColorControl</item>
<item name="android:background">@color/firebaseUiColorBackground</item>
<item name="android:windowBackground">@color/firebaseUiColorBackground</item>
<item name="android:colorBackground">@color/firebaseUiColorBackground</item>
</style>
<style name="FirebaseUI.Text">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:fontFamily">sans-serif</item>
<item name="android:textColor">@color/firebaseUiColorControl</item>
</style>
<style name="FirebaseUI.Text.Link">
<item name="android:textColor">@color/firebaseUiColorSecondary</item>
</style>
<style name="FirebaseUI.AuthMethodPicker.Logo">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">center</item>
<item name="android:padding">24dp</item>
</style>
</config-file>
<config-file target="app/src/main/res/values/strings.xml" parent="/*">
<string name="facebook_application_id">$FACEBOOK_APPLICATION_ID</string>
<string name="facebook_login_protocol_scheme">fb$FACEBOOK_APPLICATION_ID</string>
</config-file>
<config-file target="app/src/main/res/values/color.xml" parent="/*">
<color name="firebaseUiColorPrimary">$COLOR_PRIMARY</color>
<color name="firebaseUiColorPrimaryDark">$COLOR_DARK_PRIMARY</color>
<color name="firebaseUiColorPrimaryLight">$COLOR_LIGHT_PRIMARY</color>
<color name="firebaseUiColorAccent">$COLOR_ACCENT</color>
<color name="firebaseUiColorSecondary">$COLOR_SECONDARY</color>
<color name="firebaseUiColorControl">$COLOR_CONTROL</color>
<color name="firebaseUiColorBackground">$COLOR_BACKGROUND</color>
</config-file>
<config-file target="app/src/main/res/values/styles.xml" parent="/*">
<style name="FirebaseUILogonTheme" parent="FirebaseUI">
<item name="colorPrimary">@color/firebaseUiColorPrimary</item>
<item name="colorPrimaryDark">@color/firebaseUiColorPrimaryDark</item>
<item name="colorAccent">@color/firebaseUiColorAccent</item>
<item name="colorButtonNormal">@color/firebaseUiColorAccent</item>
<item name="colorControlNormal">@color/firebaseUiColorControl</item>
<item name="colorControlActivated">@color/firebaseUiColorControl</item>
<item name="colorControlHighlight">@color/firebaseUiColorControl</item>
<item name="android:textColor">@color/firebaseUiColorControl</item>
<item name="android:textColorPrimary">@color/firebaseUiColorControl</item>
<item name="android:textColorSecondary">@color/firebaseUiColorControl</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:textColorHint">@color/firebaseUiColorControl</item>
<item name="android:background">@color/firebaseUiColorBackground</item>
<item name="android:windowBackground">@color/firebaseUiColorBackground</item>
<item name="android:colorBackground">@color/firebaseUiColorBackground</item>
</style>
<style name="FirebaseUI.Text">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:fontFamily">sans-serif</item>
<item name="android:textColor">@color/firebaseUiColorControl</item>
</style>
<style name="FirebaseUI.Text.Link">
<item name="android:textColor">@color/firebaseUiColorSecondary</item>
</style>
<style name="FirebaseUI.AuthMethodPicker.Logo">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">center</item>
<item name="android:padding">24dp</item>
</style>
</config-file>
</platform>
</plugin>