Skip to content
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

Merged
merged 4 commits into from
Jul 10, 2020
Merged

Add AGP 4.1 support #305

merged 4 commits into from
Jul 10, 2020

Conversation

benjamin-bader
Copy link
Collaborator

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

@@ -41,41 +44,6 @@ final class DexMethodCountPluginSpec extends Specification {
manifestFile.write(MANIFEST_FILE_TEXT)
}

def 'unsupported project project'() {
Copy link
Collaborator Author

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@benjamin-bader benjamin-bader marked this pull request as ready for review July 10, 2020 05:27
@benjamin-bader benjamin-bader merged commit 91585d1 into master Jul 10, 2020
@benjamin-bader benjamin-bader deleted the agp-4.1 branch July 10, 2020 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Properly support AGP 4.1
2 participants