6 ms·
Google Play supports splitting APKs on density. Its a little bit more work but can cut down the binary size if you have significant assets.
by salman89 11y ago
Google Play supports splitting APKs on density. Its a little bit more work but can cut down the binary size if you have significant assets.
- creshal 11y ago> Its a little bit more work That's probably the understatement of the day. The Play developer console is such a pain in the ass to work with that I'd rather not.
- RyanZAG 11y agoAgreed, it's terrible. It's amazing there is no plugin for Gradle that does it all for you, including splitting the app for different dpi and arch. Is there a way and it just isn't publicized? AFAIK Google Play does have an API..
- bane 11y agoWell, they should just be doing it for you on the back-end. In fact, all you should have to do is upload an APK with all high-res assets and google should downsample them as appropriate for the downloading device. But they don't so...
- rugbydev 11y agoWhile a technical, low effort solution would be desirable, Google modifying a package after signing is not a desirable solution.
- bane 11y agoWell, your signing of the package would just be a signature to Google that it was indeed you who uploaded it. Google would then sign the new packages as themselves and the Play store could only download and install Google signed packages.
- RyanZAG 11y agoAndroid package security (who can send intents to who) is based off of signatures and it's not really possible or desirable to change that. However, a build script to handle it all for you during upload would be a great way to solve it. The API for this seems to lack the features that you would need though [1]. It doesn't appear to let you upload apps for only certain devices - unless you would specify it in the manifest of the app somehow? Also amusing - the API says "Do not supply a request body with this method", yet obviously you'd have to supply a request body - the app itself! I have a feeling this is not a well-used API. [1] https://developers.google.com/android-publisher/api-ref/edits/apks/upload https://developers.google.com/android-publisher/api-ref/edit...
- creshal 11y ago> Also amusing - the API says "Do not supply a request body with this method", yet obviously you'd have to supply a request body - the app itself! I have a feeling this is not a well-used API. Or Google just doesn't give a fuck. There's various bugs with uploading expansion files that are documented from day one and still unfixed.
- Navarr 11y agoDidn't they recently release an API for the developer console? I imagine you could now write some gradle code to do most of it automatically...