@thathoff/cordova-plugin-universal-links 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,9 +8,6 @@ data you have specified in the projects config.xml file.
8
8
  var configParser = require('./lib/configXmlParser.js');
9
9
  var androidManifestWriter = require('./lib/android/manifestWriter.js');
10
10
  var androidWebHook = require('./lib/android/webSiteHook.js');
11
- var iosProjectEntitlements = require('./lib/ios/projectEntitlements.js');
12
- var iosAppSiteAssociationFile = require('./lib/ios/appleAppSiteAssociationFile.js');
13
- var iosProjectPreferences = require('./lib/ios/xcodePreferences.js');
14
11
  var ANDROID = 'android';
15
12
  var IOS = 'ios';
16
13
 
@@ -75,6 +72,10 @@ function activateUniversalLinksInAndroid(cordovaContext, pluginPreferences) {
75
72
  * @param {Object} pluginPreferences - plugin preferences from the config.xml file. Basically, content from <universal-links> tag.
76
73
  */
77
74
  function activateUniversalLinksInIos(cordovaContext, pluginPreferences) {
75
+ var iosProjectPreferences = require('./lib/ios/xcodePreferences.js');
76
+ var iosProjectEntitlements = require('./lib/ios/projectEntitlements.js');
77
+ var iosAppSiteAssociationFile = require('./lib/ios/appleAppSiteAssociationFile.js');
78
+
78
79
  // modify xcode project preferences
79
80
  iosProjectPreferences.enableAssociativeDomainsCapability(cordovaContext);
80
81
 
@@ -19,7 +19,7 @@ var INSTALLATION_FLAG_FILE_NAME = '.npmInstalled';
19
19
  function isInstallationAlreadyPerformed(ctx) {
20
20
  var pathToInstallFlag = path.join(ctx.opts.projectRoot, 'plugins', ctx.opts.plugin.id, INSTALLATION_FLAG_FILE_NAME);
21
21
  try {
22
- fs.accessSync(pathToInstallFlag, fs.F_OK);
22
+ fs.accessSync(pathToInstallFlag, fs.constants.F_OK);
23
23
  return true;
24
24
  } catch (err) {
25
25
  return false;
@@ -46,7 +46,7 @@ module.exports = function(ctx) {
46
46
  console.log(JSON.stringify(pluginNpmDependencies, null, 2));
47
47
 
48
48
  var npm = (process.platform === "win32" ? "npm.cmd" : "npm");
49
- var result = spawnSync(npm, ['install', '--production'], { cwd: './plugins/' + ctx.opts.plugin.id, shell: true });
49
+ var result = spawnSync(npm, ['install', '--production'], { cwd: './plugins/' + ctx.opts.plugin.id });
50
50
  if (result.error) {
51
51
  throw result.error;
52
52
  }
@@ -20,7 +20,6 @@ Additional documentation regarding apple-app-site-association file can be found
20
20
  var path = require('path');
21
21
  var mkpath = require('mkpath');
22
22
  var fs = require('fs');
23
- var rimraf = require('rimraf');
24
23
  var ConfigXmlHelper = require('../configXmlHelper.js');
25
24
  var IOS_TEAM_ID = '<YOUR_TEAM_ID_FROM_MEMBER_CENTER>';
26
25
  var ASSOCIATION_FILE_NAME = 'apple-app-site-association';
@@ -53,7 +52,7 @@ function generate(cordovaContext, pluginPreferences) {
53
52
  * Remove old files from ul_web_hooks/ios folder.
54
53
  */
55
54
  function removeOldFiles() {
56
- rimraf.sync(getWebHookDirectory());
55
+ fs.rmSync(getWebHookDirectory(), { recursive: true, force: true });
57
56
  }
58
57
 
59
58
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thathoff/cordova-plugin-universal-links",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Cordova plugin to add in your application support for Universal Links (iOS 9) and Deep Links (Android). Basically, open application through the link in the browser.",
5
5
  "cordova": {
6
6
  "id": "cordova-plugin-universal-links",
@@ -36,11 +36,12 @@
36
36
  }
37
37
  ],
38
38
  "dependencies": {
39
+ "glob": ">=7.0.0",
39
40
  "mkpath": ">=1.0.0",
40
- "xml2js": ">=0.4",
41
- "rimraf": ">=2.4",
42
41
  "node-version-compare": ">=1.0.1",
43
- "plist": ">=1.2.0"
42
+ "plist": ">=1.2.0",
43
+ "xcode": ">=3.0.0",
44
+ "xml2js": ">=0.4"
44
45
  },
45
46
  "author": "Nikolay Demyankov for Nordnet Bank AB",
46
47
  "license": "MIT",
package/plugin.xml CHANGED
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
 
3
- <plugin id="cordova-plugin-universal-links" version="0.3.6" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
+ <plugin id="cordova-plugin-universal-links" version="0.3.7" xmlns="http://apache.org/cordova/ns/plugins/1.0">
4
4
 
5
5
  <name>Universal Links Plugin</name>
6
6
  <description>