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

Customize GodotFireBase

Ramesh Ravone edited this page Jun 3, 2017 · 6 revisions

Building and Compiling

$ cd [GODOT-ROOT]/modules/FireBase/

copy your google-services.json file to [GODOT-ROOT]/platform/android/java/ and edit file modules/FireBase/config.py at line 17

env.android_add_default_config("applicationId 'com.your.appid'")

replay com.your.appid with you android application id.

Now to remove some features from GodotFireBase module, edit modules/FireBase/godot-firebase-config.json and set false to it like shown below, which removes FireBase Authentication and Invites.

{
"Analytics"      : true,
"AdMob"		 : true,
"Auth"           : false,
"Invites"	 : false,
"RemoteConfig"	 : true,
"Notification"	 : true,
"Storage"	 : true,

"Auth"		 : {
			"Google" : true,

			"Facebook" : true,
			"FacebookAppID" : "1234566789875"
		   },

"Ads"		 : {
			"BannerAd" : true,
			"BannerGravity" : "BOTTOM",
			"BannerAdID" : "",

			"InterstitialAd" : true,
			"InterstitialAdID" : "",

			"RewardedVideoAd" : true,
			"RewardedVideoAdID" : ""
		   }

}

And to generate project files run $ python3 setup.py which will generate our new project files, Now you can follow godot's Export to Android docs to create .apk template file.

Clone this wiki locally