I’m trying to integrate Firebase into Framework7
In the creation of the proyect into Firebase console it said i must add some code in 2 build.gradle files; i’ve find some build.gradle files in my project, not only 2… so i don’t know where files are the ones to add these code-lines:
I’ve these folder and files:
C:\myAPP\cordova\platforms\android\build.gradle
C:\myAPP\cordova\platforms\android\app\build.gradle
C:\myAPP\cordova\platforms\android\CordovaLib\build.gradle
C:\myAPP\cordova\node_modules\cordova-android\bin\templates\project\build.gradle
C:\myAPP\cordova\node_modules\cordova-android\bin\templates\project\app\build.gradle
C:\myAPP\cordova\node_modules\cordova-android\framework\build.gradle
C:\myAPP\cordova\node_modules\cordova-android\bin\templates\cordova\lib\plugin-build.gradle
C:\myAPP\cordova\platforms\android\cordova\lib\plugin-build.gradle
In the firebase proyect configuration it said i must add these lines:
/*
Code to add in build.gradle proyect level (<proyect>/build.gradle):
*/
buildscript {
repositories {
// Check that you have the following line (if not, add it):
google() // Google's Maven repository
}
dependencies {
...
// Add this line
classpath 'com.google.gms:google-services:4.3.4'
}
}
allprojects {
...
repositories {
// Check that you have the following line (if not, add it):
google() // Google's Maven repository
...
}
}
/*
Code to add in build.gradle app level (<proyect>/<app-module>/build.gradle):
*/
apply plugin: 'com.android.application'
// Add this line
apply plugin: 'com.google.gms.google-services'
dependencies {
// Import the Firebase BoM
implementation platform('com.google.firebase:firebase-bom:26.2.0')
// Add the dependencies for the desired Firebase products
// https://firebase.google.com/docs/android/setup#available-libraries
}
I’ve added the google-services.json inside myAPP folder as said by firebase console
I’ve navigate throw the forum post without finding the answer… i’ve try the npm install --save firebase command but it send me errors
Thanks in advance…