-
Notifications
You must be signed in to change notification settings - Fork 253
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
Add AGP 4.1 support #305
Add AGP 4.1 support #305
Conversation
@@ -41,41 +44,6 @@ final class DexMethodCountPluginSpec extends Specification { | |||
manifestFile.write(MANIFEST_FILE_TEXT) | |||
} | |||
|
|||
def 'unsupported project project'() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed because the AGP 4.1 implementation doesn't have this constraint, and in our current test setup that's the plugin version used in these tests.
When #304 lands, we should re-add this check for AGP 4.0 and below.
@@ -1,5 +1,5 @@ | |||
GROUP=com.getkeepsafe.dexcount | |||
VERSION_NAME=1.0.4-SNAPSHOT | |||
VERSION_NAME=2.0.0-SNAPSHOT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
This absurdly-large PR adds essentially a brand-new plugin implementation using the new APIs introduced in AGP 4.1.0. For various reasons this requires breaking back-compat in terms of the names and locations of output files on older AGP versions. (tl;dr: not possible to replicate the exact layout in the new API, and it's better to have a consistent format rather than vary it based on AGP version).
Fixes #301