@@ -2730,28 +2730,28 @@ function read (opts, cb) {
27302730 \***********************************/
27312731/***/ ( function ( module , exports ) {
27322732
2733- module . exports = function ( module ) {
2734- if ( ! module . webpackPolyfill ) {
2735- module . deprecate = function ( ) { } ;
2736- module . paths = [ ] ;
2737- // module.parent = undefined by default
2738- if ( ! module . children ) module . children = [ ] ;
2739- Object . defineProperty ( module , "loaded" , {
2740- enumerable : true ,
2741- get : function ( ) {
2742- return module . l ;
2743- }
2744- } ) ;
2745- Object . defineProperty ( module , "id" , {
2746- enumerable : true ,
2747- get : function ( ) {
2748- return module . i ;
2749- }
2750- } ) ;
2751- module . webpackPolyfill = 1 ;
2752- }
2753- return module ;
2754- } ;
2733+ module . exports = function ( module ) {
2734+ if ( ! module . webpackPolyfill ) {
2735+ module . deprecate = function ( ) { } ;
2736+ module . paths = [ ] ;
2737+ // module.parent = undefined by default
2738+ if ( ! module . children ) module . children = [ ] ;
2739+ Object . defineProperty ( module , "loaded" , {
2740+ enumerable : true ,
2741+ get : function ( ) {
2742+ return module . l ;
2743+ }
2744+ } ) ;
2745+ Object . defineProperty ( module , "id" , {
2746+ enumerable : true ,
2747+ get : function ( ) {
2748+ return module . i ;
2749+ }
2750+ } ) ;
2751+ module . webpackPolyfill = 1 ;
2752+ }
2753+ return module ;
2754+ } ;
27552755
27562756
27572757/***/ } ) ,
@@ -2832,6 +2832,9 @@ function readConfig() {
28322832 config = { } ;
28332833 }
28342834}
2835+ function isInteractive ( ) {
2836+ return process . stdin && process . stdin . isTTY && process . stdout && process . stdout . isTTY ;
2837+ }
28352838
28362839// workaround for https://github.com/NativeScript/nativescript-cli/issues/2521 (2.5.0 only)
28372840var nativeScriptVersion = "" ;
@@ -2860,6 +2863,8 @@ if (process.argv.indexOf("config") === -1 && fs.existsSync(pluginConfigPath)) {
28602863 console . log ( "***** in the node_modules/nativescript-plugin-firebase folder *****" ) ;
28612864 console . log ( "*******************************************************************" ) ;
28622865 console . log ( "*******************************************************************" ) ;
2866+ } else if ( ! isInteractive ( ) ) {
2867+ console . log ( "No existing " + pluginConfigFile + " config file found and terminal is not interactive! Default configuration will be used." ) ;
28632868} else {
28642869 console . log ( "No existing " + pluginConfigFile + " config file found, so let's configure the Firebase plugin!" ) ;
28652870 prompt . start ( ) ;
@@ -3069,7 +3074,7 @@ dependencies {
30693074
30703075 // for converting Java objects to JS
30713076 compile "com.google.code.gson:gson:2.8.+"
3072-
3077+
30733078 // for reading google-services.json and configuration
30743079 def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : '10.2.+'
30753080 compile "com.google.android.gms:play-services-base:$googlePlayServicesVersion"
@@ -3154,7 +3159,7 @@ var fs = require("fs");
31543159module.exports = function() {
31553160
31563161 console.log("Configure firebase");
3157- var buildGradlePath = path.join(__dirname, "..", "..", "platforms", "android", "build.gradle");
3162+ var buildGradlePath = path.join(__dirname, "..", "..", "platforms", "android", "build.gradle");
31583163 if (fs.existsSync(buildGradlePath)) {
31593164 var buildGradleContent = fs.readFileSync(buildGradlePath).toString();
31603165
0 commit comments