Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A41D01096D for ; Thu, 25 Jul 2013 08:31:50 +0000 (UTC) Received: (qmail 79542 invoked by uid 500); 25 Jul 2013 08:31:50 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 79377 invoked by uid 500); 25 Jul 2013 08:31:50 -0000 Mailing-List: contact issues-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 issues@cordova.apache.org Received: (qmail 79200 invoked by uid 99); 25 Jul 2013 08:31:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jul 2013 08:31:49 +0000 Date: Thu, 25 Jul 2013 08:31:49 +0000 (UTC) From: "Jan Becicka (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CB-4387) "cordova build" - bad handling of resources (icons, splash screens) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-4387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13719298#comment-13719298 ] Jan Becicka edited comment on CB-4387 at 7/25/13 8:31 AM: ---------------------------------------------------------- Thanks Filip. Now I see why "cordova" app is much bigger. Their icons and splash screens are simply bigger. Anyway assets/www/res folder issue still remains. My confusion about phonegap vs cordova is bigger and bigger. Try to create sample app using phonegap and build it using "phonegap local build android" You end up with assets/www/phonegap.js and assets/www/cordova.js in resulting apk. And these 2 files seems to be identical. I really don't understand it. was (Author: jbecicka2): Thanks Filip. Now I see why "cordova" app is much bigger. Their icons and splash screens are simply bigger. Anyway assets/www/res folder issue still remains. > "cordova build" - bad handling of resources (icons, splash screens) > ------------------------------------------------------------------- > > Key: CB-4387 > URL: https://issues.apache.org/jira/browse/CB-4387 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Affects Versions: 3.0.0 > Reporter: Jan Becicka > Assignee: Filip Maj > Priority: Blocker > > Steps to reproduce: > > cordova create pgtest com.example.hello "App" > > cd pgtest > > cordova platform add android > > cordova build android > Resulting app has almost 8MB. The problem is, that "www/res" folder, which contains icons and splashscreens is completely copied into assets/www. So the resulting app contains splash screens for all possible mobile platforms, which is completely useless. Res folder should not be copied at all, because right place for resources is res/drawable. > BTW I tried the same commands with phonegap. Resulting app is significantly smaller (1.7MB) but it also contains unnecessary resources in www/res. > Still not understand what is the difference between "phonegap local build" and "cordova build" -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira