Custom plugin for react-native-batch needs google-services.json

I am trying to develop a custom plugin to add GitHub - bamlab/react-native-batch-push: React Native integration of push notifications SDK to my expo application.
You can find it there : GitHub - bamlab/react-native-batch-push at expo

It seems to work well when I run expo prebuild. The whole /android folder seems to match with another project, but when I try to test it with expo run-android the build failed with this message :

> Configure project :expo-structured-headers
Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide ( to start working with View Binding ( and the 'kotlin-parcelize' plugin.

> Task :app:processDebugGoogleServices FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it.
   Searched Location:

I configured Firebase in my app.json file, but without any success.

My guess is that in my plugin I add this line in the app/build.gradle file :
apply plugin: ''

but I have no idea how to copy/paste my google-services file to the right place with expo plugin, neither how to give the firebase config in app.json to the google plugin.

Any idea ?

We recommend that packages use the built-in googleServices key, react-native-firebase plugin does this already. So you can simply document that projects use