During chapter 1 you explain that using the propagate-config-files script is the easiest and fastest way to copy the IDE folder (.idea / .vscode) and the firebase config to the other directories so that the configuration is the same for each chapter and project.
However, the google-services.json file is copied to the android/app folder (as you explained and Google developer console suggested to put it here) but the script is looking in android/app/src folder.
Does it matter if it’s in the src folder? Will the app still run if it’s there? I’ve always had it in android/app folder so I had to modify the script slightly to get it to run successfully.
@paulio84 you’re completely right! Thanks for diagnosing this.
For fixing this issue, please open the propagate-config-files.sh file at the root folder.
Then, change line 58 to: WANTED_SUBFOLDER_3='android/app/google-services.json'
Finally, change line 129 to: "/google-services.json$"
This will be fixed in the second edition of the book thanks to you.
You can try these few suggestions to fix the problem: Check the permissions of the remote servers. Make sure that you have the necessary permissions to access the remote servers and copy the files to the desired location. Verify the file path. Double-check that the file path is correct and that the files are located in the correct directory. Debug your script. Use debugging tools to identify where your script is failing. You can use print statements, logging, and debugging tools to help you diagnose the issue. Consider using a configuration management tool: If you are managing multiple servers, consider using a configuration management tool like Ansible or Puppet to automate the process of propagating config files. These tools are designed to manage the configuration of multiple servers and can save you time and effort. I hope these suggestions help you resolve your issue.
Productivity tracking program (description)