Skip to content

Commit

Permalink
Fix issue with compileSdkVersion vs compileSdk (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
WhosNickDoglio authored Nov 4, 2022
1 parent 1de2d16 commit e00897a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradlekotlinconverter.kts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ fun String.addEquals(): String {
val other = "multiDexEnabled|correctErrorTypes|javaMaxHeapSize|jumboMode|dimension|useSupportLibrary|kotlinCompilerExtensionVersion"
val databinding = "dataBinding|viewBinding"
val defaultConfig = "applicationId|minSdk|targetSdk|versionCode|versionName|testInstrumentationRunner|namespace"
val negativeLookAhead = "(?!\\{)[^\\s]" // Don't want '{' as next word character
val negativeLookAhead = "(?!\\{)[^Version\\s]" // Don't want '{' as next word character

val versionExp = """($compileSdk|$defaultConfig|$signing|$other|$databinding)\s*${negativeLookAhead}.*""".toRegex()

Expand Down

0 comments on commit e00897a

Please sign in to comment.