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 2014/05/20 08:27:31 UTC

[1/2] git commit: CB-5416 - Adding support for auto-managing permissions

Repository: cordova-plugin-contacts
Updated Branches:
  refs/heads/master fd0c02e66 -> 6b19488e7


CB-5416 - Adding support for auto-managing permissions


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/commit/7334e066
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/7334e066
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/7334e066

Branch: refs/heads/master
Commit: 7334e066f1c68ab08263e845d47cc37d9699a710
Parents: 19445dc
Author: Rodrigo Silveira <ro...@outlook.com>
Authored: Tue Apr 22 14:25:31 2014 -0400
Committer: Rodrigo Silveira <ro...@outlook.com>
Committed: Thu May 1 15:24:43 2014 -0700

----------------------------------------------------------------------
 doc/index.md | 16 ----------------
 plugin.xml   |  7 +++----
 2 files changed, 3 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/7334e066/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index 83f5a30..17a4b17 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -42,22 +42,6 @@ contact data.  For more information, please see the Privacy Guide.
 
     cordova plugin add org.apache.cordova.contacts
 
-### Firefox OS Quirks
-
-Create __www/manifest.webapp__ as described in 
-[Manifest Docs](https://developer.mozilla.org/en-US/Apps/Developing/Manifest).
-Add relevant permisions.
-There is also a need to change the webapp type to "privileged"  - [Manifest Docs](https://developer.mozilla.org/en-US/Apps/Developing/Manifest#type).
-__WARNING__: All privileged apps enforce [Content Security Policy](https://developer.mozilla.org/en-US/Apps/CSP) which forbids inline script. Initialize your application in another way.
-
-	"type": "privileged",
-	"permissions": {
-		"contacts": {
-			"access": "readwrite",
-			"description": "Describe why there is a need for such permission"
-		}
-	}
-
 ## navigator.contacts
 
 ### Methods

http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/7334e066/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 676ffd5..878a656 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -198,10 +198,9 @@
     <!-- firefoxos -->
     <platform name="firefoxos">
         <config-file target="config.xml" parent="/*">
-            <feature name="Contacts">
-                <param name="firefoxos-package" value="Contacts" />
-            </feature>
-        </config-file>                                         
+            <permission name="contacts" access="readwrite" description="Required for accessing address book."
+                        privileged="true"/>
+        </config-file>
         <js-module src="src/firefoxos/ContactsProxy.js" name="ContactsProxy">
             <runs />
         </js-module>


[2/2] git commit: Merge remote-tracking branch 'mozilla/auto-permission'

Posted by za...@apache.org.
Merge remote-tracking branch 'mozilla/auto-permission'


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/commit/6b19488e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/6b19488e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/6b19488e

Branch: refs/heads/master
Commit: 6b19488e776a9b60a22409c4d2fe013bfd6bab14
Parents: fd0c02e 7334e06
Author: Piotr Zalewa <pi...@zalewa.info>
Authored: Tue May 20 08:26:44 2014 +0200
Committer: Piotr Zalewa <pi...@zalewa.info>
Committed: Tue May 20 08:26:44 2014 +0200

----------------------------------------------------------------------
 doc/index.md | 16 ----------------
 plugin.xml   |  7 +++----
 2 files changed, 3 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/6b19488e/doc/index.md
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/6b19488e/plugin.xml
----------------------------------------------------------------------