@thathoff/cordova-plugin-universal-links 0.3.3 → 0.3.5
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.
- package/hooks/lib/ios/projectEntitlements.js +10 -3
- package/package.json +1 -1
- package/plugin.xml +1 -1
|
@@ -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(
|
|
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
|
/**
|
|
@@ -144,8 +151,8 @@ function domainsListEntryForHost(host) {
|
|
|
144
151
|
* @param {String} buildType "Debug" or "Release"
|
|
145
152
|
* @return {String} absolute path to entitlements file
|
|
146
153
|
*/
|
|
147
|
-
function pathToEntitlementsFile(
|
|
148
|
-
return path.join(getProjectRoot(), 'platforms', 'ios', getProjectName(), '
|
|
154
|
+
function pathToEntitlementsFile() {
|
|
155
|
+
return path.join(getProjectRoot(), 'platforms', 'ios', getProjectName(), 'Resources', getProjectName() + '.entitlements');
|
|
149
156
|
}
|
|
150
157
|
|
|
151
158
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thathoff/cordova-plugin-universal-links",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
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.
|
|
3
|
+
<plugin id="cordova-plugin-universal-links" version="0.3.5" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
4
4
|
|
|
5
5
|
<name>Universal Links Plugin</name>
|
|
6
6
|
<description>
|