Comments (7)
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.
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.
@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.
@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.
@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.
@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.
Thanks. I'll work on those issues later. @benjamin-bader your plugin inspired mine ;)
from dexcount-gradle-plugin.
Related Issues (20)
- Split DexCountTask into package-tree-producing and stdout-printing tasks
- Add a high-fidelity serialized format for PackageTree HOT 1
- Github CI actions
- Serialized PackageTree is too big on disk HOT 2
- Document new minimum Gradle version
- Document new minimum AGP version
- Move DexMethodCountPluginSpec to integrationTest sources
- Crash when running in Android Studio 4.0.1
- The new count* tasks do not upload the Proguard mapping file to Crashlytics HOT 1
- Build fails with AS 4.2-Canary HOT 4
- [AGP 4.2+] java.lang.NoSuchMethodError: 'void com.android.build.api.dsl.ApplicationExtension.onVariantProperties(kotlin.jvm.functions.Function1)' HOT 12
- Convert to Java, use Worker API HOT 4
- Release version with AGP 7.0 support. HOT 5
- Plugin Extensions property getters clash with fields when used in Groovy HOT 2
- Build failure with 3.x.x HOT 5
- I have an error: "Cannot convert relative path summary.csv to an absolute file. " HOT 6
- Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'OutputFormat' for extension 'dexcount' of type com.getkeepsafe.dexcount.DexCountExtension. HOT 8
- [Feature Request] Allow Dexcount Gradle plugin to be configured from "plugins" DSL HOT 4
- Consider dropping support for AGP < 4.1 HOT 1
- OutputFormat configuration not clear defined in the documentation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dexcount-gradle-plugin.