UNPKG

react-native-bridge-firebase

Version:

Can easy to use Analytics/Crash/Config/Message of Firebase on ReactNative

19 lines (15 loc) 649 B
const fs = require('fs'); const glob = require("glob"); const path = require('path'); const ignoreFolders = { ignore: ["node_modules/**", "**/build/**"] }; const appBuildGradlePath = path.join("android", "app", "build.gradle"); fs.writeFileSync(appBuildGradlePath, fs .readFileSync(appBuildGradlePath, 'utf8') .replace(/.+com.google.firebase:firebase-core.+\n?/, '') .replace(/\n?.*apply plugin: 'com.google.gms.google-services'\n?/, '') ); const buildGradlePath = path.join("android", "build.gradle"); fs.writeFileSync(buildGradlePath, fs .readFileSync(buildGradlePath, 'utf8') .replace(/.*com.google.gms:google-services.+\n?/, '') );