Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions hooks/beforePluginInstallHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function createPluginInstalledFlag(ctx) {
}
// endregion

module.exports = function(ctx) {
module.exports = function (ctx) {
if (isInstallationAlreadyPerformed(ctx)) {
return;
}
Expand All @@ -46,7 +46,9 @@ module.exports = function(ctx) {
console.log(JSON.stringify(pluginNpmDependencies, null, 2));

var npm = (process.platform === "win32" ? "npm.cmd" : "npm");
var result = spawnSync(npm, ['install', '--production'], { cwd: './plugins/' + ctx.opts.plugin.id });

var pluginPath = path.join(ctx.opts.projectRoot, 'plugins', ctx.opts.plugin.id);
var result = spawnSync(npm, ['install', '--production'], { cwd: pluginPath, shell: true });
if (result.error) {
throw result.error;
}
Expand Down
7 changes: 6 additions & 1 deletion hooks/lib/ios/projectEntitlements.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ function domainsListEntryForHost(host) {
* @return {String} absolute path to entitlements file
*/
function pathToEntitlementsFile() {
return path.join(getProjectRoot(), 'platforms/ios/', getProjectName());
const projectRoot = context.opts.projectRoot;
const platformPath = path.join(projectRoot, 'platforms', 'ios');
const cordova_ios = require('cordova-ios');
const iosProject = new cordova_ios('ios', platformPath);
const infoPlistPath = path.join(iosProject.locations.xcodeCordovaProj);
return infoPlistPath;
}

/**
Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@
"android"
],
"dependencies": {
"mkpath": ">=1.0.0",
"xml2js": ">=0.4",
"rimraf": ">=2.4",
"node-version-compare": ">=1.0.1",
"plist": ">=1.2.0"
"mkpath": "^1.0.0",
"plist": "^3.1.0",
"rimraf": "^6.1.2",
"xml2js": "^0.6.2"
},
"author": "Nikolay Demyankov for Nordnet Bank AB",
"license": "MIT",
"bugs": {
"url": "https://github.com/gedysintraware/cordova-universal-links-plugin/issues"
}
}
}