{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/kivy-ios/issues/226","repository_url":"https://api.github.com/repos/kivy/kivy-ios","labels_url":"https://api.github.com/repos/kivy/kivy-ios/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy-ios/issues/226/comments","events_url":"https://api.github.com/repos/kivy/kivy-ios/issues/226/events","html_url":"https://github.com/kivy/kivy-ios/issues/226","id":190007409,"number":226,"title":"Are there any ways to to decrease the size of the kivy app?","user":{"login":"mrhdias","id":589045,"avatar_url":"https://avatars.githubusercontent.com/u/589045?v=3","gravatar_id":"","url":"https://api.github.com/users/mrhdias","html_url":"https://github.com/mrhdias","followers_url":"https://api.github.com/users/mrhdias/followers","following_url":"https://api.github.com/users/mrhdias/following{/other_user}","gists_url":"https://api.github.com/users/mrhdias/gists{/gist_id}","starred_url":"https://api.github.com/users/mrhdias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrhdias/subscriptions","organizations_url":"https://api.github.com/users/mrhdias/orgs","repos_url":"https://api.github.com/users/mrhdias/repos","events_url":"https://api.github.com/users/mrhdias/events{/privacy}","received_events_url":"https://api.github.com/users/mrhdias/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-17T10:37:45Z","updated_at":"2016-11-20T23:27:06Z","closed_at":"2016-11-20T23:27:06Z","body":"Why are ios apps so big?\r\nIs there any solution to reduce the size of archive?\r\n\r\nI uncompressed the ipa file to see inside the archive:\r\n```\r\n22M fungame.ipa (The size of archive)\r\n\r\n$ unzip fungame.ipa\r\n\r\n44M Payload (uncompressed)\r\n\r\nThe biggest files on ipa archive:\r\n24M  Payload/fungame.app/fungame (This is a binary file)\r\n6.3M Payload/fungame.app/lib/python27.zip\r\n\r\nPayload/fungame.app/lib/python2.7/site-packages/kivy/tests (We need this???)\r\nPayload/fungame.app/lib/python2.7/site-packages/kivy/tools (We need this???)\r\n\r\n$ ls -ln\r\ndrwxr-xr-x  3 501  20       102 Nov 16 16:08 Payload\r\n-rw-r--r--  1 501  20      1057 Nov 16 16:09 manifest.plist\r\n-rw-r--r--  1 501  20  23009562 Nov 16 16:09 fungame.ipa\r\n$ cd Payload/fungame.app\r\n$ ls -ln\r\n-rw-r--r--  1 501  20       516 Nov 16 16:06 AppIcon29x29.png\r\n-rw-r--r--  1 501  20       898 Nov 16 16:06 AppIcon29x29@2x.png\r\n-rw-r--r--  1 501  20       898 Nov 16 16:06 AppIcon29x29@2x~ipad.png\r\n-rw-r--r--  1 501  20      1654 Nov 16 16:06 AppIcon29x29@3x.png\r\n-rw-r--r--  1 501  20       516 Nov 16 16:06 AppIcon29x29~ipad.png\r\n-rw-r--r--  1 501  20      1467 Nov 16 16:06 AppIcon40x40@2x.png\r\n-rw-r--r--  1 501  20      1467 Nov 16 16:06 AppIcon40x40@2x~ipad.png\r\n-rw-r--r--  1 501  20      2457 Nov 16 16:06 AppIcon40x40@3x.png\r\n-rw-r--r--  1 501  20       664 Nov 16 16:06 AppIcon40x40~ipad.png\r\n-rw-r--r--  1 501  20      1948 Nov 16 16:06 AppIcon50x50@2x~ipad.png\r\n-rw-r--r--  1 501  20       757 Nov 16 16:06 AppIcon50x50~ipad.png\r\n-rw-r--r--  1 501  20       871 Nov 16 16:06 AppIcon57x57.png\r\n-rw-r--r--  1 501  20      2319 Nov 16 16:06 AppIcon57x57@2x.png\r\n-rw-r--r--  1 501  20      2457 Nov 16 16:06 AppIcon60x60@2x.png\r\n-rw-r--r--  1 501  20      4361 Nov 16 16:06 AppIcon60x60@3x.png\r\n-rw-r--r--  1 501  20      3192 Nov 16 16:06 AppIcon72x72@2x~ipad.png\r\n-rw-r--r--  1 501  20      1308 Nov 16 16:06 AppIcon72x72~ipad.png\r\n-rw-r--r--  1 501  20      3496 Nov 16 16:06 AppIcon76x76@2x~ipad.png\r\n-rw-r--r--  1 501  20      1399 Nov 16 16:06 AppIcon76x76~ipad.png\r\n-rw-r--r--  1 501  20     17480 Nov 16 16:06 Default-568h@2x.png\r\n-rw-r--r--  1 501  20     22660 Nov 16 16:06 Default-667h@2x.png\r\n-rw-r--r--  1 501  20     52906 Nov 16 16:06 Default-763h@3x.png\r\n-rw-r--r--  1 501  20     17938 Nov 16 16:06 Default-Landscape.png\r\n-rw-r--r--  1 501  20     47108 Nov 16 16:06 Default-Landscape@2x.png\r\n-rw-r--r--  1 501  20     18112 Nov 16 16:06 Default-Portrait.png\r\n-rw-r--r--  1 501  20     47948 Nov 16 16:06 Default-Portrait@2x~ipad.png\r\n-rw-r--r--  1 501  20     83306 Nov 16 16:06 Default-Portrait@3x~ipad.png\r\n-rw-r--r--  1 501  20      6650 Nov 16 16:06 Default.png\r\n-rw-r--r--  1 501  20     18189 Nov 16 16:06 Default@2x.png\r\n-rw-r--r--  1 501  20     31822 Nov 16 16:06 Default@3x.png\r\n-rw-r--r--  1 501  20      1607 Nov 16 16:06 Info.plist\r\n-rw-r--r--  1 501  20         8 Nov 16 16:06 PkgInfo\r\ndrwxr-xr-x  5 501  20       170 Nov 16 16:06 YourApp\r\ndrwxr-xr-x  3 501  20       102 Nov 16 16:06 _CodeSignature\r\n-rw-r--r--  1 501  20       410 Nov 16 16:06 archived-expanded-entitlements.xcent\r\n-rw-r--r--  1 501  20      7800 Nov 16 16:08 embedded.mobileprovision\r\n-rw-r--r--  1 501  20     20678 Nov 16 16:06 icon.png\r\ndrwxr-xr-x  3 501  20       102 Nov 16 16:06 include\r\ndrwxr-xr-x  4 501  20       136 Nov 16 16:06 lib\r\n-rwxr-xr-x  1 501  20  25546656 Nov 16 16:08 fungame\r\n\r\n$ du -h YourApp       \r\n904K\tYourApp/assets/fonts\r\n2.1M\tYourApp/assets/images/panels\r\n2.3M\tYourApp/assets/images\r\n 64K\tYourApp/assets/resources/data/images\r\n 64K\tYourApp/assets/resources/data\r\n100K\tYourApp/assets/resources\r\n3.3M\tYourApp/assets\r\n  0B\tYourApp/libs/__pycache__\r\n  0B\tYourApp/libs/garden/garden.mapview/__pycache__\r\n  0B\tYourApp/libs/garden/garden.mapview/mapview/__pycache__\r\n8.0K\tYourApp/libs/garden/garden.mapview/mapview/icons\r\n 92K\tYourApp/libs/garden/garden.mapview/mapview\r\n 96K\tYourApp/libs/garden/garden.mapview\r\n 16K\tYourApp/libs/garden/garden.roulette/__pycache__\r\n 40K\tYourApp/libs/garden/garden.roulette\r\n8.0K\tYourApp/libs/garden/garden.roulettescroll/__pycache__\r\n 16K\tYourApp/libs/garden/garden.roulettescroll\r\n  0B\tYourApp/libs/garden/garden.tickline/__pycache__\r\n 40K\tYourApp/libs/garden/garden.tickline\r\n192K\tYourApp/libs/garden\r\n  0B\tYourApp/libs/pilot/__pycache__\r\n276K\tYourApp/libs/pilot\r\n472K\tYourApp/libs\r\n3.7M\tYourApp\r\n\r\n$ du -h lib\r\n100K\tlib/python2.7/config\r\n216K\tlib/python2.7/site-packages/Crypto/Cipher\r\n136K\tlib/python2.7/site-packages/Crypto/Hash\r\n 72K\tlib/python2.7/site-packages/Crypto/Protocol\r\n188K\tlib/python2.7/site-packages/Crypto/PublicKey\r\n 44K\tlib/python2.7/site-packages/Crypto/Random/Fortuna\r\n 40K\tlib/python2.7/site-packages/Crypto/Random/OSRNG\r\n128K\tlib/python2.7/site-packages/Crypto/Random\r\n384K\tlib/python2.7/site-packages/Crypto/SelfTest/Cipher\r\n116K\tlib/python2.7/site-packages/Crypto/SelfTest/Hash\r\n 44K\tlib/python2.7/site-packages/Crypto/SelfTest/Protocol\r\n140K\tlib/python2.7/site-packages/Crypto/SelfTest/PublicKey\r\n 44K\tlib/python2.7/site-packages/Crypto/SelfTest/Random/Fortuna\r\n 48K\tlib/python2.7/site-packages/Crypto/SelfTest/Random/OSRNG\r\n140K\tlib/python2.7/site-packages/Crypto/SelfTest/Random\r\n 76K\tlib/python2.7/site-packages/Crypto/SelfTest/Signature\r\n 88K\tlib/python2.7/site-packages/Crypto/SelfTest/Util\r\n1004K\tlib/python2.7/site-packages/Crypto/SelfTest\r\n 52K\tlib/python2.7/site-packages/Crypto/Signature\r\n372K\tlib/python2.7/site-packages/Crypto/Util\r\n2.1M\tlib/python2.7/site-packages/Crypto\r\n 40K\tlib/python2.7/site-packages/kivy/adapters\r\n 60K\tlib/python2.7/site-packages/kivy/core/audio\r\n 48K\tlib/python2.7/site-packages/kivy/core/camera\r\n 60K\tlib/python2.7/site-packages/kivy/core/clipboard\r\n4.0K\tlib/python2.7/site-packages/kivy/core/gl\r\n 80K\tlib/python2.7/site-packages/kivy/core/image\r\n 12K\tlib/python2.7/site-packages/kivy/core/spelling\r\n 68K\tlib/python2.7/site-packages/kivy/core/text\r\n 76K\tlib/python2.7/site-packages/kivy/core/video\r\n100K\tlib/python2.7/site-packages/kivy/core/window\r\n512K\tlib/python2.7/site-packages/kivy/core\r\n1.4M\tlib/python2.7/site-packages/kivy/data/fonts\r\n 20K\tlib/python2.7/site-packages/kivy/data/glsl\r\n 88K\tlib/python2.7/site-packages/kivy/data/images\r\n 44K\tlib/python2.7/site-packages/kivy/data/keyboards\r\n 52K\tlib/python2.7/site-packages/kivy/data/logo\r\n1.7M\tlib/python2.7/site-packages/kivy/data\r\n4.0K\tlib/python2.7/site-packages/kivy/deps\r\n 20K\tlib/python2.7/site-packages/kivy/effects\r\n8.0K\tlib/python2.7/site-packages/kivy/ext\r\n8.0K\tlib/python2.7/site-packages/kivy/extras\r\n4.0K\tlib/python2.7/site-packages/kivy/garden\r\n352K\tlib/python2.7/site-packages/kivy/graphics\r\n 28K\tlib/python2.7/site-packages/kivy/input/postproc\r\n132K\tlib/python2.7/site-packages/kivy/input/providers\r\n200K\tlib/python2.7/site-packages/kivy/input\r\n 52K\tlib/python2.7/site-packages/kivy/lang\r\n4.0K\tlib/python2.7/site-packages/kivy/lib/gstplayer\r\n 36K\tlib/python2.7/site-packages/kivy/lib/osc\r\n8.0K\tlib/python2.7/site-packages/kivy/lib/vidcore_lite\r\n 80K\tlib/python2.7/site-packages/kivy/lib\r\n316K\tlib/python2.7/site-packages/kivy/modules\r\n 16K\tlib/python2.7/site-packages/kivy/network\r\n 40K\tlib/python2.7/site-packages/kivy/storage\r\n408K\tlib/python2.7/site-packages/kivy/tests\r\n 12K\tlib/python2.7/site-packages/kivy/tools/extensions\r\n 32K\tlib/python2.7/site-packages/kivy/tools/gles_compat\r\n 20K\tlib/python2.7/site-packages/kivy/tools/highlight\r\n 20K\tlib/python2.7/site-packages/kivy/tools/packaging/pyinstaller_hooks\r\n 28K\tlib/python2.7/site-packages/kivy/tools/packaging\r\n160K\tlib/python2.7/site-packages/kivy/tools\r\n 68K\tlib/python2.7/site-packages/kivy/uix/behaviors\r\n 48K\tlib/python2.7/site-packages/kivy/uix/recycleview\r\n844K\tlib/python2.7/site-packages/kivy/uix\r\n5.0M\tlib/python2.7/site-packages/kivy\r\n 80K\tlib/python2.7/site-packages/plyer/facades\r\n 88K\tlib/python2.7/site-packages/plyer/platforms/android\r\n 56K\tlib/python2.7/site-packages/plyer/platforms/ios\r\n 40K\tlib/python2.7/site-packages/plyer/platforms/linux\r\n8.0K\tlib/python2.7/site-packages/plyer/platforms/macosx/libs\r\n 48K\tlib/python2.7/site-packages/plyer/platforms/macosx\r\n 40K\tlib/python2.7/site-packages/plyer/platforms/win/libs\r\n 72K\tlib/python2.7/site-packages/plyer/platforms/win\r\n308K\tlib/python2.7/site-packages/plyer/platforms\r\n404K\tlib/python2.7/site-packages/plyer\r\n 12K\tlib/python2.7/site-packages/pyobjus/consts\r\n216K\tlib/python2.7/site-packages/pyobjus\r\n7.8M\tlib/python2.7/site-packages\r\n7.9M\tlib/python2.7\r\n 14M\tlib\r\n```\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39318804-are-there-any-ways-to-to-decrease-the-size-of-the-kivy-app?utm_campaign=plugin&utm_content=tracker%2F9081&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F9081&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/kivy/kivy-ios/issues/comments/261814668","html_url":"https://github.com/kivy/kivy-ios/issues/226#issuecomment-261814668","issue_url":"https://api.github.com/repos/kivy/kivy-ios/issues/226","id":261814668,"user":{"login":"Zen-CODE","id":3539755,"avatar_url":"https://avatars.githubusercontent.com/u/3539755?v=3","gravatar_id":"","url":"https://api.github.com/users/Zen-CODE","html_url":"https://github.com/Zen-CODE","followers_url":"https://api.github.com/users/Zen-CODE/followers","following_url":"https://api.github.com/users/Zen-CODE/following{/other_user}","gists_url":"https://api.github.com/users/Zen-CODE/gists{/gist_id}","starred_url":"https://api.github.com/users/Zen-CODE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zen-CODE/subscriptions","organizations_url":"https://api.github.com/users/Zen-CODE/orgs","repos_url":"https://api.github.com/users/Zen-CODE/repos","events_url":"https://api.github.com/users/Zen-CODE/events{/privacy}","received_events_url":"https://api.github.com/users/Zen-CODE/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T23:27:06Z","updated_at":"2016-11-20T23:27:06Z","body":"Pleas see here: https://kivy.org/docs/guide/packaging-ios.html#customize\r\n\r\nThat suggests a few ways to reduce the size. If you can think of any others, please post here and I'll add those to the docs. (the test and tools folders you mention are about 600kb uncompressed. That is tiny).\r\n\r\nOne has to keep in mind kivy is full stack framework. Because it does not/tries not to rely on any operating system specific functions, it has to include libraries to support many features: media playback, drawing etc. That means it's always going to be bigger than a Swift/Objective-C app.\r\n\r\nSo, I'm going to close the ticket because it's not something we can do a lot about. The packaging guide suggests removing packages you don't need. Apart from that, the libraries that ship need to ship. It can't be platform independent without that...\r\n\r\nThanks.\r\n"}}
{"actor":{"display_login":"Zen-CODE"}}