Skip to content

Commit

Permalink
Fix #16.
Browse files Browse the repository at this point in the history
  • Loading branch information
bernaferrari committed Mar 18, 2020
1 parent bb4d76f commit bc771d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions expected_build_gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ dependencies {
}
val testing = "1.0.2"
implementation(rootProject.deps.androidPagingComponent)
implementation(project(":customer-api"))
kapt(project(":epoxy-processor"))
implementation(":epoxy-annotations")
val ANDROIDX_APPCOMPAT = "1.0.0"
Expand Down
3 changes: 1 addition & 2 deletions gradlekotlinconverter.kts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ fun String.convertDependencies(): String {
val gradleKeyword = gradleKeywords.find(substring.value)?.value

// implementation ':epoxy-annotations' becomes 'epoxy-annotations'
val isolated = substring.value.replace(gradleKeywords, "").trim()
val isolated = substring.value.replaceFirst(gradleKeywords, "").trim()

// can't be && for the kapt project(':epoxy-processor') scenario, where there is a ) on the last element.
if (isolated != "" && (isolated.first() != '(' || isolated.last { it != ' ' } != ')')) {
Expand All @@ -164,7 +164,6 @@ fun String.convertDependencies(): String {
}
}


// signingConfig signingConfigs.release
// becomes
// signingConfig = signingConfigs.getByName("release")
Expand Down
1 change: 1 addition & 0 deletions test_build_gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dependencies {
}
val testing = "1.0.2"
implementation rootProject.deps.androidPagingComponent
implementation project(':customer-api')
kapt project(':epoxy-processor')
implementation ':epoxy-annotations'
def ANDROIDX_APPCOMPAT = '1.0.0'
Expand Down

0 comments on commit bc771d9

Please sign in to comment.