Skip to content
This repository was archived by the owner on Jul 1, 2022. It is now read-only.

Commit ab41d65

Browse files
committed
Twitter authentication
1 parent 73349f5 commit ab41d65

14 files changed

Lines changed: 748 additions & 211 deletions

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Godot_FireBase is a firebase integration for godot android;
1111
1212
> Analytics
1313
14-
> Authentication [W.I.P] Google, Facebook
14+
> Authentication [W.I.P] Google, Facebook, Twitter
1515
1616
> Firebase Notification
1717
@@ -28,6 +28,8 @@ env.android_add_default_config("applicationId 'com.your.appid'")
2828
```
2929
replay `com.your.appid` with you android application id.
3030

31+
For customizing the module go [here](https://github.com/FrogSquare/GodotFireBase/wiki/Customize-GodotFireBase)
32+
3133
# Initialize FireBase
3234
Edit engine.cfg and add
3335
```
@@ -54,9 +56,10 @@ GodotFireBase config file, By default every feature is disabled.
5456
"Notification" : true,
5557
"Storage" : true,
5658
57-
"Auth" :
59+
"AuthConf" :
5860
{
5961
"Google" : true,
62+
"Twitter" : true,
6063
"Facebook" : true,
6164
"FacebookAppId" : "1234566789875"
6265
},
@@ -119,10 +122,12 @@ firebase.authConfig("'Google':true,'Facebook':true") // Configure Auth service
119122
120123
firebase.google_sign_in() // Firebase connect to google.
121124
firebase.facebook_sign_in() // Firebase connect to facebook.
125+
firebase.twitter_sign_in() // Firebase connect to twitter.
122126
firebase.anonymous_sign_in() // Firebase connect anonymously.
123127
124128
firebase.google_sign_out() // Firebase disconnect from google.
125129
firebase.facebook_sign_out() // Firebase disconnect from facebook.
130+
firebase.twitter_sign_out() // Firebase disconnect from twitter.
126131
firebase.anonymous_sign_out() // Firebase disconnect anonymously.
127132
128133
var gUserDetails = firebase.get_google_user() // returns name, email_id, photo_uri

android/AndroidManifestChunk.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
<!-- Notification -->
23
<service android:name="org.godotengine.godot.MessagingService">
34
<intent-filter>
45
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
@@ -17,13 +18,17 @@
1718
</intent-filter>
1819

1920
</service>
21+
<!-- Notification -->
2022

23+
<!-- Storage -->
2124
<service android:name="org.godotengine.godot.storage.DownloadService"
2225
android:exported="false"/>
2326

2427
<service android:name="org.godotengine.godot.storage.UploadService"
2528
android:exported="false"/>
29+
<!-- Storage -->
2630

31+
<!-- Auth -->
2732
<!-- Set facebook Application ID -->
2833
<meta-data android:name="com.facebook.sdk.ApplicationId"
2934
android:value="@string/facebook_app_id"/>
@@ -32,7 +37,9 @@
3237
<activity android:name="com.facebook.FacebookActivity"
3338
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
3439
android:label="@string/godot_project_name_string" />
40+
<!-- Auth -->
3541

42+
<!-- Notification -->
3643
<!-- Set custom default icon.
3744
This is used when no icon is set for incoming notification messages.
3845
See README(https://goo.gl/l4GJaQ) for more. -->
@@ -48,4 +55,5 @@
4855
<meta-data
4956
android:name="com.google.firebase.messaging.default_notification_color"
5057
android:resource="@color/colorAccent" />
58+
<!-- Notification -->
5159

android/Authentication.java

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)