Coder Social home page Coder Social logo

Comments (7)

benjamin-bader avatar benjamin-bader commented on September 23, 2024

I'm not sure that I understand what you mean. Are you referring to the file size? If so, that will be quite easy - I'd welcome a pull request for it.

The only caveat is that the file size should go on a separate line so as not to break people's existing integrations e.g. with CI jobs.

from dexcount-gradle-plugin.

xiphirx avatar xiphirx commented on September 23, 2024

I believe a byte size of the actual code would be more beneficial here. That way auxiliary resources are left out of the picture.

from dexcount-gradle-plugin.

jaredsburrows avatar jaredsburrows commented on September 23, 2024

@benjamin-bader @xiphirx Regardless, it would be nice to show the difference that code changes make.

For instance, naturally debug version would be larger than proguarded releases. I wanna see the classes.dex or APK size difference between them.

from dexcount-gradle-plugin.

vanniktech avatar vanniktech commented on September 23, 2024

@jaredsburrows I had the same idea yesterday / today and hence I made this: https://github.com/vanniktech/gradle-android-apk-size-plugin

It'll basically just like this plugin jump into each assemble method and generate csv files for each output file and variant.

from dexcount-gradle-plugin.

jaredsburrows avatar jaredsburrows commented on September 23, 2024

@vanniktech I have added the plugin to the classpath and the dependency to the dependencies block, it is not printing out anything.

Since you do not have any instructions, I had to do gradle tasks. I found the following:

sizeDebugApk
sizeDogfoodApk
sizeReleaseApk

Can you make it like the KeepSafe plugin and always print the size of the APK?

from dexcount-gradle-plugin.

benjamin-bader avatar benjamin-bader commented on September 23, 2024

@vanniktech Thanks for sharing your plugin, it looks nice! Since it meets the needs outlined in this issue, I'm going to close it. It seems better to me to keep these functionalities separate.

from dexcount-gradle-plugin.

vanniktech avatar vanniktech commented on September 23, 2024

Thanks. I'll work on those issues later. @benjamin-bader your plugin inspired mine ;)

from dexcount-gradle-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.