Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0B1EF200B5E for ; Wed, 27 Jul 2016 01:25:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 09963160AA5; Tue, 26 Jul 2016 23:25:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 512F4160AA4 for ; Wed, 27 Jul 2016 01:25:10 +0200 (CEST) Received: (qmail 2721 invoked by uid 500); 26 Jul 2016 23:25:09 -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 2709 invoked by uid 99); 26 Jul 2016 23:25:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2016 23:25:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id AC8D5CC386 for ; Tue, 26 Jul 2016 23:25:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.932 X-Spam-Level: * X-Spam-Status: No, score=1.932 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=pontoget-com-br.20150623.gappssmtp.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9yY735KVBQnZ for ; Tue, 26 Jul 2016 23:25:06 +0000 (UTC) Received: from mail-it0-f47.google.com (mail-it0-f47.google.com [209.85.214.47]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id F1B425F474 for ; Tue, 26 Jul 2016 23:25:05 +0000 (UTC) Received: by mail-it0-f47.google.com with SMTP id f6so20764681ith.0 for ; Tue, 26 Jul 2016 16:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pontoget-com-br.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=oCcU7V+HGrZ4VFaNmI0EN1Wn5qOnfYXgMMm4x/iMH6Y=; b=NZImf7F+o88i0GDb1P2b09L2p+QPQV/Z1EZhFdxh/WG0jLMoGtbb2Mz/hm0uf3/APb y0exu5xPT++pwAZBrmtUtZom+s7SCiRncionjcwPBh5zp8m3v+ig5P89L5YT8mvtax1/ k//TnmCJvVwaxfqPcchtyFznUCYtpYYM4Po+RE41Fc3OMWCj9C3bZbClYx/wLHGGlvbu oKKdRaQLhOWd+wlZh190+NsBnDu9Y5tqJr+J1DKCzOI7Way51H0nYDYmOyU+Ql4wTb4p EbT0SHO0GBtQddaZRYvc9cvLYj1AdPEUYDB0Htz6AjjaeiAejjVTTfBWmcVWvdzNYAha drXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=oCcU7V+HGrZ4VFaNmI0EN1Wn5qOnfYXgMMm4x/iMH6Y=; b=GLf9l5CD0r84vaez2NcApA953stE3PMS1+jXJXn7w8US0SMZush6OfFgePG+gK0aKH YQj8ajJrifNwJCkkDxbXkQKi+Q373M2Dr+CGjkkzKVvI8MOvO5RWhRFUEdEBaoY2RNH7 JtBKtWHvSTY1kBcN7k0MsloM5dFwfAm1c/h1yYUgE3SQbm0LVF7RaIZPnY8LJ4bg6u8Z smbQkjmz33TeFPdL6Ojjj4IbcJ6afTj9K+6Ug6DPDuRTaUo16keYjMaerD6GinIuk2Yd j9BZ7BuV/A5YmE6DVrs99tSazt+gYmMF44/qkk8g1wXqJHrDKlc0UYmCf8bbJ8CtPO/U 8Akg== X-Gm-Message-State: AEkoouuk4lIcZSHnJWQ3DrALNlU8ByLDeZ9Bqa3Y21daZlxgdrEv20gXdQJr047dTksfr9P05j9ySgfq180I7g== X-Received: by 10.36.112.11 with SMTP id f11mr16394451itc.57.1469575504802; Tue, 26 Jul 2016 16:25:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.20.132 with HTTP; Tue, 26 Jul 2016 16:24:45 -0700 (PDT) X-Originating-IP: [189.112.39.108] In-Reply-To: References: From: =?UTF-8?Q?Frederico_Galv=C3=A3o?= Date: Tue, 26 Jul 2016 20:24:45 -0300 Message-ID: Subject: Re: [Android] FileProvider Hell To: dev Content-Type: multipart/alternative; boundary=001a113f6ff2ef4d6f05389235e2 archived-at: Tue, 26 Jul 2016 23:25:11 -0000 --001a113f6ff2ef4d6f05389235e2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Most serious cordova/phonegap plugins I know already make use of some form of "*com.android.support:**", I would say that even though it's a bad thing to make cordova-android depend on it by default, it won't be a problem in practice. 2016-07-26 15:54 GMT-03:00 julio cesar sanchez : > Ah, I didn't understand that part, I thought they were using their own > content provider. > > Yes, camera plugin will need a rewrite, but I don't think we have another > choice > > El martes, 26 de julio de 2016, Joe Bowser escribi=C3= =B3: > > > The FileProvider class is provided by the Android Compat library. If w= e > > don't use Android Compat, we'd have to write the provider, and > re-inventing > > the wheel is worse than having to use the FileProvider. It's looking > more > > and more like we're going to have to completely re-write Camera because > > it's dependent on real file locations instead of the garbage that Googl= e > is > > making us use. > > > > On Tue, Jul 26, 2016 at 11:35 AM, julio cesar sanchez < > > jcesarmobile@gmail.com > wrote: > > > > > The blog talks about "fixing" it using a content provider, how can it > be > > > fixed with android-compat? > > > > > > > > > El martes, 26 de julio de 2016, Joe Bowser > > escribi=C3=B3: > > > > > > > Hey > > > > > > > > It looks like we're hit by this change in Android, which makes it s= o > > that > > > > we can no longer use file providers. There's an easy fix, but it's > > not a > > > > pretty one. We're going to have to add Android-Compat as a > dependency > > > for > > > > Cordova. This is really bad, and could cause a lot of things to > screw > > up > > > > horribly when it comes to third party plugins that also use this as= a > > > > dependency. > > > > > > > > > > > > > > > > > > https://inthecheesefactory.com/blog/how-to-share-access-to-file-with-file= provider-on-android-nougat/en > > > > > > > > A part of me is temped to think that the Android team did this on > > purpose > > > > to try and break Cordova, since content providers and content URIs > > aren't > > > > even remotely valid uses of the web and we've been dealing with > broken > > > > content providers ever since we started. I personally hate this, b= ut > > > it's > > > > the only way we can move forward at all. > > > > > > > > Anyone have any thoughts on this? > > > > > > > > Joe > > > > > > > > > > --=20 *Frederico Galv=C3=A3o* Diretor de Tecnologia PontoGet Inova=C3=A7=C3=A3o Web ( +55(62) 8131-5720 * www.pontoget.com.br --001a113f6ff2ef4d6f05389235e2--