This is the updated version of godot-android-module-firebase for the new Godot (3.2.2) Android plugin system (v1).
For the general documentation look there.
downloads
directory both Firebase.release.aar and Firebase.release.gdpa and copy them to [GODOT-PROJECT]/android/plugins/
downloads
directory godot-firebase-config.json and copy it to [GODOT-PROJECT]/android/build/assets
(create the directory if necessary) and edit it to match your settings (especially AdMob App ID and ad unit IDs)[GODOT-PROJECT]/android/build/
[GODOT-PROJECT]/android/build/build.gradle
:
classpath 'com.google.gms:google-services:4.3.3'
above the line //CHUNK_BUILDSCRIPT_DEPENDENCIES_BEGIN
apply plugin: 'com.google.gms.google-services'
above the line //CHUNK_GLOBAL_BEGIN
buildTypes.all {
and add to this block: resValue "string", "server_client_id", "project-123456..."
where project-123456...
is the public-facing name of your Firebase projectEdit [GODOT-PROJECT]/android/build/AndroidManifest.xml
:
add the following above the line <!--CHUNK_APPLICATION_BEGIN-->
and do not forget to set your AdMob App Id
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-ADMOB_APP_ID"/>
[GODOT-PROJECT]/android/build/config.gradle
and set minSdk
to 21 (otherwise a gradle build error occurs: Number of method references cannot exceed 64K)That should be it!
After checking out this project open Android Studio and start an empty Android project (with no activity, minimum SDK 21). Then select menu File > New > Import module and import this project as a module. In the Android Studio's terminal you can then run:
When finished the .aar for both debug and release can be found here: build/outputs/aar