Skip to content

Commit

Permalink
Added support for kotlin gradle scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Arslan Charyyev committed Oct 27, 2022
1 parent e615b7f commit c7a2976
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ci-tools",
"version": "1.2.0",
"version": "1.2.1",
"description": "CLI tools for CI environments, powered by Node.js",
"bin": "dist/main.js",
"author": "inkl team",
Expand Down
2 changes: 1 addition & 1 deletion src/update_version_code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export async function updateVersionCode(
await replaceInFile({
files: gradleFile,
from: new RegExp('versionCode.+'),
to: `versionCode ${newVersionCode}`
to: `versionCode ${gradleFile.endsWith(".kts") ? "= " : ""} ${newVersionCode}`
})
}

0 comments on commit c7a2976

Please sign in to comment.