Closed myood closed 3 years ago
Hi,
all your manual additions should be before or after the.. _BEGIN /_END stuff (CHUNK_BUILDSCRIPT_DEPENDENCIES_BEGIN, etc). These lines are "left overs" from the previous (deprecated) build system. (At least they are not documented for the new v1 plugin build system.)
I hope this was helpful.
Yes, did the trick! Thanks!
Your instructions are correct, only these legacy
parts a little misleading. A little improvement for consideration - maybe you could emphasize putting them above a little more with explanation to ignore _BEGIN/_END stuff?
Correct sed
invocation, for the record:
sed "/^\/\/CHUNK_BUILDSCRIPT_DEPENDENCIES_BEGIN.*/i classpath 'com.google.gms:google-services:4.3.3'" -i android/build/build.gradle
sed "/^\/\/CHUNK_GLOBAL_BEGIN.*/i apply plugin: 'com.google.gms.google-services'" -i android/build/build.gradle
Cool :-)
Hey,
I've forked your project, removed everything except analytics and authentication, rebuild it and exported my godot project. The export itself succeeds, but the app crashes on startup:
Note: google-services and firebase plugin json files are included in the export per instructions
I followed all the steps in your instruciton, especially adding dep to google-services and applying google-services plugin in android/build/build.gradle:
This results in:
Not sure if it's relevant, but after successful export, the apply plugin google-services is missing from build.gradle (along with some other stuff too):
I've run out of ideas. Does this ring a bell? What should I double-check next?