var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.injectPluginXmlValuesSync=exports.parseValuesStringsSync=void 0;var _path=_interopRequireDefault(require("path"));
var _os=_interopRequireDefault(require("os"));
var _fs=_interopRequireDefault(require("fs"));
var _net=_interopRequireDefault(require("net"));
var _chalk=_interopRequireDefault(require("chalk"));
var _shelljs=_interopRequireDefault(require("shelljs"));
var _child_process=_interopRequireDefault(require("child_process"));
var _inquirer=_interopRequireDefault(require("inquirer"));
var _common=require("../../common");



















var _projectParser=require("../../projectTools/projectParser");
var _fileutils=require("../../systemTools/fileutils");
var _pluginTools=require("../../pluginTools");

var parseValuesStringsSync=function parseValuesStringsSync(c,platform){
var appFolder=(0,_common.getAppFolder)(c,platform);
var stringsPath='app/src/main/res/values/strings.xml';
(0,_common.writeCleanFile)((0,_common.getBuildFilePath)(c,platform,stringsPath),_path.default.join(appFolder,stringsPath),[
{pattern:'{{APP_TITLE}}',override:(0,_common.getAppTitle)(c,platform)}]);

};exports.parseValuesStringsSync=parseValuesStringsSync;

var injectPluginXmlValuesSync=function injectPluginXmlValuesSync(c,plugin,key,pkg){
var className=pkg?pkg.split('.').pop():null;
var packageParams='';
if(plugin.packageParams){
packageParams=plugin.packageParams.join(',');
}

var pathFixed=plugin.path?""+plugin.path:"node_modules/"+key+"/android";
var modulePath="../../"+pathFixed;
};exports.injectPluginXmlValuesSync=injectPluginXmlValuesSync;