refreshVersions icon indicating copy to clipboard operation
refreshVersions copied to clipboard

Migration modifies version numbers in buildSrc/src/main/kotlin/Build.kt

Open 1gravity opened this issue 3 years ago • 0 comments

🐛 Describe the bug

I have a file Build.kt in buildSrc with some version numbers:

object Build {
    const val buildToolsVersion = "33.0.0"
    const val compileSdkVersion = 33
    const val minSdkVersion = 21
    const val targetSdkVersion = 33
    const val versionName = "2.5.0"
}

The migration changes this to:

object Build {
    const val buildToolsVersion = "_"
    const val compileSdkVersion = 33
    const val minSdkVersion = 21
    const val targetSdkVersion = 33
    const val versionName = "_"
}

⚠️ Current behavior

The migration changes some versions in the Build.kt file.

✅ Expected behavior

The migration should not change the versions in the Build.kt file.

💣 Steps to reproduce

Create a Build.kt file in buildSrc/src/main/kotlin an copy above code, then run the migration.

1gravity avatar Oct 08 '22 01:10 1gravity