{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/android-runtime/issues/529","repository_url":"https://api.github.com/repos/NativeScript/android-runtime","labels_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/529/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/529/comments","events_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/529/events","html_url":"https://github.com/NativeScript/android-runtime/issues/529","id":169857337,"number":529,"title":"Optimize default apk size ","user":{"login":"blagoev","id":3962801,"avatar_url":"https://avatars.githubusercontent.com/u/3962801?v=3","gravatar_id":"","url":"https://api.github.com/users/blagoev","html_url":"https://github.com/blagoev","followers_url":"https://api.github.com/users/blagoev/followers","following_url":"https://api.github.com/users/blagoev/following{/other_user}","gists_url":"https://api.github.com/users/blagoev/gists{/gist_id}","starred_url":"https://api.github.com/users/blagoev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blagoev/subscriptions","organizations_url":"https://api.github.com/users/blagoev/orgs","repos_url":"https://api.github.com/users/blagoev/repos","events_url":"https://api.github.com/users/blagoev/events{/privacy}","received_events_url":"https://api.github.com/users/blagoev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-08T07:15:54Z","updated_at":"2016-08-08T07:19:37Z","closed_at":null,"body":"PLAYED WITH THE APK SIZE AND HERE ARE THE RESULTS\r\nThe result apk size for 3 platforms armv7, armx64, x86 is now 9MB (down from 12)\r\nIf we bundle only x86 and armv7 apk size is now 6.2 MB (down from 8.5MB)\r\nFurther optimizations are possible if we are willing to sacrifice some startup performance:\r\nFor 3 platforms size can be around 6.6MB\r\nFor 2 platforms size can be around 4.7MB\r\nNote: By default we can package only 2 platforms which will result of working applications on 32bit and 64bit devices. Only when the user wants (which is rarely needed) a true x64 app we can package the 64bit libs.\r\nPackaging android apps with only 32bit native binaries is one liner.\r\nBTW: we are not doing the most C++ optimizations possible when building the runtime now we are doing -O0. If we switch the -O3 flag we get somewhat bigger native libraries results in about 500KB apk increase on all variants\r\n\r\n\r\nThere is a pull request for these changes here: https://github.com/NativeScript/android-runtime/pull/522\r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/android-runtime/issues/comments/238159369","html_url":"https://github.com/NativeScript/android-runtime/issues/529#issuecomment-238159369","issue_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/529","id":238159369,"user":{"login":"blagoev","id":3962801,"avatar_url":"https://avatars.githubusercontent.com/u/3962801?v=3","gravatar_id":"","url":"https://api.github.com/users/blagoev","html_url":"https://github.com/blagoev","followers_url":"https://api.github.com/users/blagoev/followers","following_url":"https://api.github.com/users/blagoev/following{/other_user}","gists_url":"https://api.github.com/users/blagoev/gists{/gist_id}","starred_url":"https://api.github.com/users/blagoev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blagoev/subscriptions","organizations_url":"https://api.github.com/users/blagoev/orgs","repos_url":"https://api.github.com/users/blagoev/repos","events_url":"https://api.github.com/users/blagoev/events{/privacy}","received_events_url":"https://api.github.com/users/blagoev/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T07:19:37Z","updated_at":"2016-08-08T07:19:37Z","body":"ping @NativeScript/android-runtime "}}
{"actor":{"display_login":"blagoev"}}