You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/09/06 07:11:48 UTC

[1/6] git commit: [CB-4432] copyright notice change

Updated Branches:
  refs/heads/dev f33e00083 -> 8c77ddb86


[CB-4432] copyright notice change


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

Branch: refs/heads/dev
Commit: a0406b0b1e8b2c6cd59d149db5a1b737787069a5
Parents: e5b70d9
Author: lorinbeer <lo...@adobe.com>
Authored: Tue Aug 20 13:55:43 2013 -0700
Committer: lorinbeer <lo...@adobe.com>
Committed: Tue Aug 20 13:55:59 2013 -0700

----------------------------------------------------------------------
 src/blackberry10/index.js | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/a0406b0b/src/blackberry10/index.js
----------------------------------------------------------------------
diff --git a/src/blackberry10/index.js b/src/blackberry10/index.js
index 922f049..9a5ebf3 100644
--- a/src/blackberry10/index.js
+++ b/src/blackberry10/index.js
@@ -1,18 +1,23 @@
 /*
- * Copyright 2010-2011 Research In Motion Limited.
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
 var PictureSourceType = {
         PHOTOLIBRARY : 0,    // Choose image from picture library (same as SAVEDPHOTOALBUM for Android)
         CAMERA : 1,          // Take picture from camera


[4/6] git commit: Merge branch 'master' into dev

Posted by ag...@apache.org.
Merge branch 'master' into dev


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/763e6f0e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/763e6f0e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/763e6f0e

Branch: refs/heads/dev
Commit: 763e6f0e9a0f996e57b1979d1127a12a8dc14aa3
Parents: 1f22a17 fa52e35
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Sep 6 00:15:45 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Sep 6 00:15:45 2013 -0400

----------------------------------------------------------------------
 src/android/CameraLauncher.java | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/763e6f0e/src/android/CameraLauncher.java
----------------------------------------------------------------------


[6/6] git commit: [CB-4752] Incremented plugin version on dev branch.

Posted by ag...@apache.org.
[CB-4752] Incremented plugin version on dev branch.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/8c77ddb8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/8c77ddb8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/8c77ddb8

Branch: refs/heads/dev
Commit: 8c77ddb86424e128e463b690e2dd10974a8a852e
Parents: a9546c4
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Sep 6 00:58:21 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Sep 6 00:58:21 2013 -0400

----------------------------------------------------------------------
 plugin.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/8c77ddb8/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 18d08e9..dcc7910 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -3,7 +3,7 @@
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="org.apache.cordova.core.camera"
-    version="0.2.1">
+    version="0.2.2-dev">
     <name>Camera</name>
     <description>Cordova Camera Plugin</description>
     <license>Apache 2.0</license>


[2/6] git commit: No longer causes a stack trace, but it doesn't cause the error to be called.

Posted by ag...@apache.org.
No longer causes a stack trace, but it doesn't cause the error to be called.


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

Branch: refs/heads/dev
Commit: fa52e35c420a17952283cfb8d8c2d194eed8f70e
Parents: a0406b0
Author: Joe Bowser <bo...@apache.org>
Authored: Wed Aug 21 15:39:43 2013 -0700
Committer: Joe Bowser <bo...@apache.org>
Committed: Wed Aug 21 15:40:25 2013 -0700

----------------------------------------------------------------------
 src/android/CameraLauncher.java | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/fa52e35c/src/android/CameraLauncher.java
----------------------------------------------------------------------
diff --git a/src/android/CameraLauncher.java b/src/android/CameraLauncher.java
index bd50a63..b7454ce 100755
--- a/src/android/CameraLauncher.java
+++ b/src/android/CameraLauncher.java
@@ -76,7 +76,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
     private static final String GET_PICTURE = "Get Picture";
     private static final String GET_VIDEO = "Get Video";
     private static final String GET_All = "Get All";
-
+    
     private static final String LOG_TAG = "CameraLauncher";
 
     private int mQuality;                   // Compression quality hint (0-100: 0=low quality & high compression, 100=compress of max quality)
@@ -153,15 +153,26 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
                 this.targetHeight = -1;
             }
 
-            if (srcType == CAMERA) {
-                this.takePicture(destType, encodingType);
+             try {
+                if (srcType == CAMERA) {
+                    this.takePicture(destType, encodingType);
+                }
+                else if ((srcType == PHOTOLIBRARY) || (srcType == SAVEDPHOTOALBUM)) {
+                    this.getImage(srcType, destType);
+                }
             }
-            else if ((srcType == PHOTOLIBRARY) || (srcType == SAVEDPHOTOALBUM)) {
-                this.getImage(srcType, destType);
+            catch (IllegalArgumentException e)
+            {
+                callbackContext.error("Illegal Argument Exception");
+                PluginResult r = new PluginResult(PluginResult.Status.ERROR);
+                callbackContext.sendPluginResult(r);
+                return true;
             }
+             
             PluginResult r = new PluginResult(PluginResult.Status.NO_RESULT);
             r.setKeepCallback(true);
             callbackContext.sendPluginResult(r);
+            
             return true;
         }
         return false;


[5/6] git commit: Merge branch 'dev' of https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera into dev

Posted by ag...@apache.org.
Merge branch 'dev' of https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera into dev


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

Branch: refs/heads/dev
Commit: a9546c4f49a5fffd72bcfe30c3aa21ad8c9fe73f
Parents: 763e6f0 f33e000
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Sep 6 00:22:17 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Sep 6 00:22:17 2013 -0400

----------------------------------------------------------------------
 src/android/CameraLauncher.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------



[3/6] git commit: [CB-4752] Updated version and changelog

Posted by ag...@apache.org.
[CB-4752] Updated version and changelog


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/1f22a17f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/1f22a17f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/1f22a17f

Branch: refs/heads/dev
Commit: 1f22a17f27e6eb11723e6aec09711dd28abbe63f
Parents: 382e942
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Sep 5 23:55:26 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Sep 5 23:59:46 2013 -0400

----------------------------------------------------------------------
 CHANGELOG.md | 25 +++++++++++++++++++++++++
 plugin.xml   |  2 +-
 2 files changed, 26 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/1f22a17f/CHANGELOG.md
----------------------------------------------------------------------
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..bae12ec
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,25 @@
+<!--
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+# http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+-->
+# Release Notes
+
+### 0.2.1 (Sept 5, 2013)
+* [CB-4656] Don't add line-breaks to base64-encoded images (Fixes type=DataURI)
+* [CB-4432] copyright notice change

http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/1f22a17f/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 671fa19..18d08e9 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -3,7 +3,7 @@
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="org.apache.cordova.core.camera"
-    version="0.2.0">
+    version="0.2.1">
     <name>Camera</name>
     <description>Cordova Camera Plugin</description>
     <license>Apache 2.0</license>