cordova-plugin-fcm-with-dependecy-updated
Version:
Google Firebase Cloud Messaging Cordova Push Plugin fork with dependecy updated
45 lines (41 loc) • 1.3 kB
JavaScript
;
var helpers = require('./helpers');
var APP_NAME = helpers.getValueFromXml(
'config.xml',
'name',
'app name was not found on config.xml'
);
var IOS_DIR = 'platforms/ios';
var ANDROID_DIR = 'platforms/android';
exports.PLATFORM = {
IOS: {
label: 'ios',
dir: IOS_DIR,
googleServiceDestinations: [
IOS_DIR + '/' + APP_NAME + '/Resources/GoogleService-Info.plist',
IOS_DIR + '/' + APP_NAME + '/Resources/Resources/GoogleService-Info.plist'
],
googleServiceSources: [
'GoogleService-Info.plist',
IOS_DIR + '/www/GoogleService-Info.plist',
'www/GoogleService-Info.plist'
]
},
ANDROID: {
label: 'android',
dir: ANDROID_DIR,
googleServiceDestinations: [
ANDROID_DIR + '/google-services.json',
ANDROID_DIR + '/app/google-services.json'
],
googleServiceSources: [
ANDROID_DIR + '/google-services.json',
ANDROID_DIR + '/assets/www/google-services.json',
'www/google-services.json',
'google-services.json'
],
stringsXmls: [
ANDROID_DIR + '/app/build/generated/res/google-services/debug/values/values.xml'
]
}
};