Skip to content

Commit

Permalink
Merge pull request #14 from manosbatsis/master
Browse files Browse the repository at this point in the history
Fix compile error from bad spacing in long lines to `apply`
  • Loading branch information
juanchosaravia authored Sep 14, 2020
2 parents cdcd842 + 5c054e6 commit 6dee713
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private fun createWithFun(
return FunSpec.builder("with${paramName.capitalize()}")
.addParameter(paramName, param.typeName)
.returns(builderClassName)
.addStatement("return this.apply { this.$paramName = $paramName}")
.addStatement("return this.apply·{ this.$paramName·=·$paramName}")
}

private fun createPropertySpec(
Expand Down Expand Up @@ -206,7 +206,7 @@ private fun createCollectionData(
).build()
)
.returns(builderClassName)
.addStatement("this.$paramName = $collectionClassNameValue().apply { $BLOCK_FUN_NAME() }.$collectionFieldName")
.addStatement("this.$paramName·= $collectionClassNameValue().apply·{ $BLOCK_FUN_NAME() }.$collectionFieldName")
.addStatement("return this")
.build()

Expand Down
2 changes: 1 addition & 1 deletion release-bintray.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ext {
libraryVersion = '0.0.10'
libraryVersion = '0.0.11'

def groupName = "io.github.juanchosaravia.autodsl"
bintrayRepo = 'autodsl'
Expand Down
2 changes: 1 addition & 1 deletion samples/android-autodsl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

buildscript {
ext.kotlin_version = '1.3.72'
ext.autodsl_version = '0.0.10'
ext.autodsl_version = '0.0.11'
repositories {
google()
jcenter()
Expand Down

0 comments on commit 6dee713

Please sign in to comment.