You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by za...@apache.org on 2015/07/23 13:18:10 UTC

[08/10] cordova-ubuntu git commit: use 1.3 policy_version for ubuntu-sdk-15.04+

use 1.3 policy_version for ubuntu-sdk-15.04+


Project: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/commit/02cd9d9c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/tree/02cd9d9c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/diff/02cd9d9c

Branch: refs/heads/master
Commit: 02cd9d9c499e31089d34e92e446a06c8fee927ce
Parents: 09c95eb
Author: Maxim Ermilov <ma...@canonical.com>
Authored: Thu Jul 23 11:12:13 2015 +0300
Committer: Maxim Ermilov <ma...@canonical.com>
Committed: Thu Jul 23 11:12:13 2015 +0300

----------------------------------------------------------------------
 bin/templates/project/cordova/lib/build.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/blob/02cd9d9c/bin/templates/project/cordova/lib/build.js
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/lib/build.js b/bin/templates/project/cordova/lib/build.js
index 9d41b07..3ed2462 100644
--- a/bin/templates/project/cordova/lib/build.js
+++ b/bin/templates/project/cordova/lib/build.js
@@ -110,7 +110,11 @@ function buildClickPackage(campoDir, ubuntuDir, nobuild, architecture, framework
         fs.writeFileSync(path.join(prefixDir, 'manifest.json'), JSON.stringify(content));
 
         content = JSON.parse(fs.readFileSync(path.join(ubuntuDir, 'apparmor.json'), {encoding: "utf8"}));
-        content.policy_version = 1.2;
+        if (framework === "ubuntu-sdk-14.10") {
+            content.policy_version = 1.2;
+        } else {
+            content.policy_version = 1.3;
+        }
         content.policy_groups.push('webview');
         fs.writeFileSync(path.join(prefixDir, 'apparmor.json'), JSON.stringify(content));
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org