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

Support Task Configuration Avoidance #1445

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stephanenicolas
Copy link
Contributor

Solves issue #1440. The change is limited.

  • delay the creation of the processResourcesTask used in the generateR2 task.
  • the generate R2 task itself still has to be created (because AGP doesn't allow to pass it as a task provider, I created a ticket for that).

@@ -1,2 +1 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="butterknife"/>
<manifest package="butterknife.core"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was a side effect of upgrading the AGP version, it looks like single word package names are not allowed anymore. But I don't think it has any impact.

Copy link
Owner

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What is the impact of the change of the manifest ?

@stephanenicolas stephanenicolas force-pushed the sni/issue-1440-use-lazy-tasks branch from 9913d77 to 4387cf1 Compare February 9, 2019 23:52
@@ -6,15 +6,14 @@ buildscript {
'compileSdk': 28,

'androidTools': '26.2.0',
'kotlin': '1.2.71',

'kotlin': '1.3.11',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this version of kotlin is not the latest, but it is recommended in AS 3.3.0 that goes with AGP 3.3.0

@stephanenicolas
Copy link
Contributor Author

The PR has been rebased against current master, I squashed my commits, it should now get green. The kotlin version better matches Android Studio.

@stephanenicolas
Copy link
Contributor Author

stephanenicolas commented Feb 10, 2019

I just realized I was missing an obsolete call. I fixed it in a second commit.
I couldn't figure out exactly how to test it.

Please test it properly or let me know how to make sure the original behavior works fine.

@stephanenicolas
Copy link
Contributor Author

I've tested the second commit too and all seems to be working pretty well.

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.

2 participants