Skip to content

Conversation

PaulDGillis
Copy link

@PaulDGillis PaulDGillis commented Aug 25, 2018

Depends on paul_kotlin_poet or pr #16

@PaulDGillis PaulDGillis requested a review from berbschloe August 25, 2018 03:00
compileOnly "com.google.auto.service:auto-service:1.0-rc2" // don't update yet, won't auto generate code

implementation 'com.squareup:javapoet:1.9.0'
implementation 'com.squareup:kotlinpoet:1.0.0-RC1'
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't break anything? Code is still auto generated?

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, I didn't mean for any one to review this yet. I'm working on another pr that is based off this branch. For now this is just for me to have the Kotlin poet library in the project.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Pauldg7 Split the changes of "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version" "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
off of the javapoet to kotlinpoet

Copy link
Contributor

Choose a reason for hiding this comment

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

make javapoet to kotlinpoet change
a seprate PR
then code gen code will need modifications

repositories{
jcenter()
}
dependencies {
Copy link
Member

Choose a reason for hiding this comment

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

This might be needed for the code generation phase. but I have no idea.
Test things out with the example project. Change some variables around and see if the auto generation works.

classpath 'com.android.tools.build:gradle:3.1.4'
//noinspection DifferentKotlinGradleVersion
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.realm:realm-gradle-plugin:$realm_version"
Copy link
Contributor

@JamesDurham JamesDurham Sep 10, 2018

Choose a reason for hiding this comment

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

@Pauldg7
be carefull about the bumping of android tools at this time.

The cange between android studio 3.1 and 3.2 will be when you want to touch these.

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
Copy link
Contributor

@JamesDurham JamesDurham Sep 10, 2018

Choose a reason for hiding this comment

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

see comments at
annotationprocessor/build.gradle

change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants