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

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.
@@ -51,13 +51,20 @@ function generateEntitlements(cordovaContext, pluginPreferences) {
51
51
  */
52
52
  function saveContentToEntitlementsFile(content, buildType) {
53
53
  var plistContent = plist.build(content);
54
- var filePath = pathToEntitlementsFile(buildType);
54
+ var filePath = pathToEntitlementsFile();
55
55
 
56
56
  // ensure that file exists
57
57
  mkpath.sync(path.dirname(filePath));
58
58
 
59
59
  // save it's content
60
60
  fs.writeFileSync(filePath, plistContent, 'utf8');
61
+
62
+ // cordova-ios 8+ uses App/ as the project source dir, so also write there
63
+ var appResourcesPath = path.join(getProjectRoot(), 'platforms', 'ios', 'App', 'Resources', getProjectName() + '.entitlements');
64
+ if (appResourcesPath !== filePath) {
65
+ mkpath.sync(path.dirname(appResourcesPath));
66
+ fs.writeFileSync(appResourcesPath, plistContent, 'utf8');
67
+ }
61
68
  }
62
69
 
63
70
  /**
@@ -12,7 +12,7 @@ var ConfigXmlHelper = require('../configXmlHelper.js');
12
12
  const xcode = require('xcode');
13
13
  const fileSystem = require('fs');
14
14
  const glob = require('glob');
15
- var IOS_DEPLOYMENT_TARGET = '8.0';
15
+ var IOS_DEPLOYMENT_TARGET = '13.0';
16
16
  var COMMENT_KEY = /_comment$/;
17
17
  var context;
18
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thathoff/cordova-plugin-universal-links",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
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",
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.4" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
+ <plugin id="cordova-plugin-universal-links" version="0.3.6" xmlns="http://apache.org/cordova/ns/plugins/1.0">
4
4
 
5
5
  <name>Universal Links Plugin</name>
6
6
  <description>