Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 27FFD187A8 for ; Sat, 26 Mar 2016 01:07:11 +0000 (UTC) Received: (qmail 17676 invoked by uid 500); 26 Mar 2016 01:07:10 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 17627 invoked by uid 500); 26 Mar 2016 01:07:10 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 17616 invoked by uid 99); 26 Mar 2016 01:07:10 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Mar 2016 01:07:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7A21DDFE16; Sat, 26 Mar 2016 01:07:10 +0000 (UTC) From: riknoll To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org Message-ID: Subject: [GitHub] cordova-plugin-media-capture pull request: Removing global state a... Content-Type: text/plain Date: Sat, 26 Mar 2016 01:07:10 +0000 (UTC) GitHub user riknoll opened a pull request: https://github.com/apache/cordova-plugin-media-capture/pull/59 Removing global state and fixing CB-10670 There are two parts to this PR. The first is to fix Marshmallow permissions (CB-10670). `captureImage()` was not requesting `READ_EXTERNAL_STORAGE` and both `captureImage()` and `captureVideo()` needed the fix that was recently done in the camera plugin for the `CAMERA` permission (https://github.com/apache/cordova-plugin-camera/pull/179). The second was to remove the global state being maintained in the plugin. This caused a lot of issues when async calls to the plugin overlap. It is included in this PR because most of them are related to async Android calls like requesting permissions and launching external Activities (see also https://github.com/apache/cordova-android/pull/285). I'm planning on doing a similar fix for the file plugin soon. You can merge this pull request into a Git repository by running: $ git pull https://github.com/MSOpenTech/cordova-plugin-media-capture CB-10670refactor Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-plugin-media-capture/pull/59.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #59 ---- commit 3f1e3366daf2fe9cb4c4195468a27eee5714bd98 Author: Richard Knoll Date: 2016-03-21T22:21:30Z CB-10670 android: Fixing Marshmallow permissions for image and video capture commit 6511db0af87806ad32abdcacfcb78619c60a8d6d Author: Richard Knoll Date: 2016-03-23T18:28:58Z Refactor and fixing support for multiple Activity Requests commit df0f9a66ac9393745d8d9dad927548504368c725 Author: Richard Knoll Date: 2016-03-26T00:51:01Z Documenting capture error ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org