-
Notifications
You must be signed in to change notification settings - Fork 51
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
Extracting source/resources required for the GradleRunner tests #477
Conversation
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.
Your version is way more readable 👍
'''.stripIndent() | ||
} | ||
|
||
static String strings() { |
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.
I find this method name a bit confusing
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.
done, changed to getXmlStrings
@@ -0,0 +1,13 @@ | |||
package org.gradle.android.writer | |||
|
|||
class Kotlin { |
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.
I dislike the name Kotlin
as a class name. I'm thinking it might be better to group these code writing classes to something like CodeSnippets
. Then we can call CodeSnippets.getKotlinDataClass()
and CodeSnippets.getJavaClass()
. WDYT?
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.
sounds good.
Grouped all sources/resources inCodeSnippets
c101f75
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.
LGTM
@@ -1,5 +1,6 @@ | |||
package org.gradle.android | |||
|
|||
|
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.
empty blank line
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.
done ffca293
SimpleAndroid class is getting complex, and with more use cases to cover the class is getting hard to maintain.
Before starting the rework of the class(#460) we need to clean up the current class.
This PR extracts classes/resources used in the "Simple" projects run under the Gradle Runner tests