-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.7 ignores renamed flavour output name #181
Comments
dexcount 0.7 cannot handle renamed variant output files. KeepSafe/dexcount-gradle-plugin#181
Good to know - thanks for the report! |
You shouldn't do it like that. There's an archieveBasename property which you can use. |
That's true, and the linked script will fail hard on upgrade to Android Studio 3, but in the meantime this is something we can likely fix very easily. Be that as it may, |
same issue of 0.7.0 . 😭 |
Can I really use archivesBasename to modify the output of a single build type (and not for all build types together)? And why do you think that renaming the output will no longer work at all in android-gradle 3.0? Reading https://developer.android.com/studio/preview/features/new-android-plugin-migration.html#variant_api I would expect that our build script just needs to use all() instead of each(), since the given example is very similar to what we do. Or did I miss something here? I will experiment a bit with the given example code and the 3.0 plugin, to maybe find a workaround on our side. |
Because your script invokes I think I must have misunderstood your use case; I haven't ever tried that with |
This commit refactors the task into an abstract base and two concrete implementations, one for AGP 2 and one for AGP 3. This removes the dual-optional-input model. The legacy task is not incremental, and just holds a reference to the BaseVariantOutput, the way it used to. The modern task remains incremental. Fixes #181
FYI, I've just released version 0.7.1, which fixes this issue. |
@benjamin-bader great job, 0.7.1 works perfect. 👍 😄 |
We rename the output file in one flavour, see lines 202 and following of this build script. This worked well up to 0.6.4. Since 0.7.0, the dexcount invocation looks for the original (non renamed) output file, thereby breaking the build:
The text was updated successfully, but these errors were encountered: