File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33const fs = require ( 'fs' ) ;
44
5- const ANDROID_PLATFORM = 'platforms/android' ;
5+ const APP_MODULE = 'platforms/android/app ' ;
66const GOOGLE_SERVICES_JSON = 'google-services.json' ;
77
88if ( ! fs . existsSync ( GOOGLE_SERVICES_JSON ) ) {
99 throw new Error (
1010 'No "google-services.json" file found in /cordova.' +
1111 'Required by plugin "tabris-plugin-firebase" (Android).' ) ;
1212} else {
13- if ( fs . existsSync ( ANDROID_PLATFORM ) && fs . statSync ( ANDROID_PLATFORM ) . isDirectory ( ) ) {
13+ if ( fs . existsSync ( APP_MODULE ) && fs . statSync ( APP_MODULE ) . isDirectory ( ) ) {
1414 fs . createReadStream ( GOOGLE_SERVICES_JSON )
15- . pipe ( fs . createWriteStream ( `${ ANDROID_PLATFORM } /${ GOOGLE_SERVICES_JSON } ` ) ) ;
15+ . pipe ( fs . createWriteStream ( `${ APP_MODULE } /${ GOOGLE_SERVICES_JSON } ` ) ) ;
1616 }
1717}
You can’t perform that action at this time.
0 commit comments