Skip to content

Commit 41ba114

Browse files
committed
fix(android): Fix versionName being removed (fixes #2)
1 parent 49ad9ab commit 41ba114

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,13 @@ class BuildGradleManager extends BaseFileManager {
136136
const nameExp = /versionName ('.*'|".*")/
137137

138138
const current = matchFirst(nameExp, currentFile)
139+
const newVersionName = current.replace(quotes, next)
139140

140141
this.content = currentFile.replace(
141142
nameExp,
142143
// Here we try to prevent quotes style...
143144
// which may be unnecessary, but who knows?
144-
current.replace(quotes, next)
145+
`versionName ${newVersionName}`
145146
)
146147

147148
return { current, next }

0 commit comments

Comments
 (0)