Titanium JIRA Archive
Appcelerator Community (AC)

[AC-125] Android: APK built with scons-built SDK is double the size of APK built with continuous integration SDK

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2015-11-04T07:34:58.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsandroid, scons
ReporterAlex Bernier
AssigneeMostafizur Rahman
Created2015-05-13T00:41:32.000+0000
Updated2015-11-04T07:34:58.000+0000

Description

When I build my Android app with a continuous integration build, 4.0.0.RC2, I get an APK of 21.5mb. When I build the Titanium SDK from source, my APK is 43.3mb. I'm using the following command to build the Titanium SDK for Android:
scons build_jsca=0 android=1 android_sdk=/Users/me/Library/android-sdk-macosx
That's a big APK, and too big for us to be able to use an APK built with an SDK built from source in the Play Store. Any ideas what I could be doing wrong, or what could be causing this? Same exact app source, built after just changing the SDK.

Comments

  1. Ingo Muschenetz 2015-05-18

    [~athorne] An APK is just a .zip file. Can you unzip the two and do a directory comparison to see?
  2. Alex Bernier 2015-05-19

    Ah. Silly me, [~ingo]! The difference is the continuous integration SDK removes the assets/Resources/iphone directory and the scons-built SDK leaves it there. I'm using Appcelerator Studio to package for Play Store, BTW.

JSON Source